st/mesa: add ARB_texture_stencil8 support (v4)
authorDave Airlie <airlied@gmail.com>
Sun, 5 Apr 2015 04:45:25 +0000 (14:45 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Apr 2015 00:11:27 +0000 (10:11 +1000)
commit6cc49c4ce1dcb06528bfa2d6e650c26721355ae1
treed1c2afe40a0b4d334d769735f614b07d84a2b52a
parent782e71cc078308dddd5d6f9505bff0cb8e67f455
st/mesa: add ARB_texture_stencil8 support (v4)

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)

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_format.c