summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-01-18 09:28:47 +0100
committerNicolai Hähnle <[email protected]>2017-01-19 15:02:57 +0100
commit3cd092c41508dde2e6259f09df1736911a828548 (patch)
tree4ba7a92af5c804e98c1bb0553dd94978ff7040ea /m4
parent905961452ad3e7e29745dad78d70b2973377982b (diff)
radeonsi: fix texture gather on stencil textures
At least on VI, texture gather doesn't work with a 24_8 data format, so use 8_8_8_8 and a modified swizzle instead. A bit of background: When creating a GL_STENCIL_INDEX8 texture, we select the X24S8 pipe format because we don't support stencil-only render targets properly. With mip-mapping this can lead to a setup where the tiling is incompatible with stencil texturing, and a flushed stencil texture is used. For the flushed stencil, a literal X24S8 is used because there were issues with an 8bpp DB->CB copy. Longer term, it would be good if we could get away from these workarounds, i.e. properly support an S8 format for stencil-only rendering and flushed stencil. Since stencil texturing is somewhat rare, it's not a high priority. Fixes GL45-CTS.texture_cube_map_array.sampling. Cc: 17.0 <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Acked-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions