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

Ilia Mirkin imirkin at alum.mit.edu
Wed Dec 16 09:28:12 PST 2015


On Wed, Dec 16, 2015 at 6:52 AM, Marek Olšák <maraeo at gmail.com> 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 = XXXX (Z)
> Z24S8 = XXXX (Z)
> X24S8 = YYYY (S)
> X8Z24 = YYYY (Z)
> S8Z24 = YYYY (Z)
> S8X24 = XXXX (S)
> Z32_S8X24 = XXXX (Z)
> X32_S8X24 = YYYY (S)

FWIW nouveau also does basically this, except that alpha gets a 1.0
for some reason.


More information about the mesa-dev mailing list