Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-21 Thread Roland Scheidegger
Am 21.12.2015 um 20:59 schrieb Jose Fonseca: > On 16/12/15 16:18, Roland Scheidegger wrote: >> Am 16.12.2015 um 12:52 schrieb Marek Olšák: >>> This is not well defined in gallium, but r600g and radeonsi use these >>> default swizzles for depth and stencil surfaces and it's probably the >>> only

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-21 Thread Ilia Mirkin
On Dec 21, 2015 6:10 PM, "Roland Scheidegger" wrote: > > Am 21.12.2015 um 20:59 schrieb Jose Fonseca: > > On 16/12/15 16:18, Roland Scheidegger wrote: > >> Am 16.12.2015 um 12:52 schrieb Marek Olšák: > >>> This is not well defined in gallium, but r600g and radeonsi use these >

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-21 Thread Roland Scheidegger
Am 22.12.2015 um 02:56 schrieb Marek Olšák: > On Tue, Dec 22, 2015 at 12:10 AM, Roland Scheidegger > wrote: >> Am 21.12.2015 um 20:59 schrieb Jose Fonseca: >>> On 16/12/15 16:18, Roland Scheidegger wrote: Am 16.12.2015 um 12:52 schrieb Marek Olšák: > This is not well

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-21 Thread Ilia Mirkin
On Dec 21, 2015 8:57 PM, "Marek Olšák" wrote: > > On Tue, Dec 22, 2015 at 12:10 AM, Roland Scheidegger wrote: > > Am 21.12.2015 um 20:59 schrieb Jose Fonseca: > >> On 16/12/15 16:18, Roland Scheidegger wrote: > >>> Am 16.12.2015 um 12:52 schrieb Marek Olšák:

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-21 Thread Marek Olšák
On Tue, Dec 22, 2015 at 12:10 AM, Roland Scheidegger wrote: > Am 21.12.2015 um 20:59 schrieb Jose Fonseca: >> On 16/12/15 16:18, Roland Scheidegger wrote: >>> Am 16.12.2015 um 12:52 schrieb Marek Olšák: This is not well defined in gallium, but r600g and radeonsi use these

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-16 Thread Roland Scheidegger
Am 16.12.2015 um 17:39 schrieb Marek Olšák: > On Wed, Dec 16, 2015 at 5:18 PM, Roland Scheidegger > wrote: >> Am 16.12.2015 um 12:52 schrieb Marek Olšák: >>> This is not well defined in gallium, but r600g and radeonsi use these >>> default swizzles for depth and stencil

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-16 Thread Ilia Mirkin
On Wed, Dec 16, 2015 at 6:52 AM, Marek Olšák wrote: > This is not well defined in gallium, but r600g and radeonsi use these > default swizzles for depth and stencil surfaces and it's probably the > only reasonable thing to do: > > Format = Default swizzle > Z24X8 = (Z) >

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-16 Thread Marek Olšák
This is not well defined in gallium, but r600g and radeonsi use these default swizzles for depth and stencil surfaces and it's probably the only reasonable thing to do: Format = Default swizzle Z24X8 = (Z) Z24S8 = (Z) X24S8 = (S) X8Z24 = (Z) S8Z24 = (Z) S8X24 = (S)

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-16 Thread Roland Scheidegger
Am 16.12.2015 um 12:52 schrieb Marek Olšák: > This is not well defined in gallium, but r600g and radeonsi use these > default swizzles for depth and stencil surfaces and it's probably the > only reasonable thing to do: > > Format = Default swizzle > Z24X8 = (Z) > Z24S8 = (Z) > X24S8 =

Re: [Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-16 Thread Marek Olšák
On Wed, Dec 16, 2015 at 5:18 PM, Roland Scheidegger wrote: > Am 16.12.2015 um 12:52 schrieb Marek Olšák: >> This is not well defined in gallium, but r600g and radeonsi use these >> default swizzles for depth and stencil surfaces and it's probably the >> only reasonable thing

[Mesa-dev] [PATCH] gallivm: add a horrible hack for stencil texturing with border

2015-12-15 Thread sroland
From: Roland Scheidegger mesa/st doesn't give us a useful swizzle when stencil texturing. Moreover, it's not even obvious what the swizzle actually should be - the channel which is used for the fetch (Y) is not the same as the one which must be used for the border component