st/mesa: add ARB_texture_stencil8 support (v4)

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [gmail.com] - 22 April 2015 19:11 UTC

if we support stencil texturing, enable texture_stencil8 there is no requirement to support native S8 for this, the texture can be converted to x24s8 fine.

v2: fold fixes from Marek in: a) put S8 last in the list b) fix renderable to always test for d/s renderable fixup the texture case to use a stencil only format for picking the format for the texture view.
v3: hit fallback for getteximage
v4: put s8 back in front, it shouldn't get picked now (Ilia)

6cc49c4 st/mesa: add ARB_texture_stencil8 support (v4)
src/mesa/state_tracker/st_atom_texture.c | 14 ++++++++++----
src/mesa/state_tracker/st_cb_texture.c | 2 +-
src/mesa/state_tracker/st_extensions.c | 3 +++
src/mesa/state_tracker/st_format.c | 19 ++++++++-----------
4 files changed, 22 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share