i965: Enable ARB_texture_stencil8 and OES_texture_stencil8 on Gen8+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Mar 2016 09:58:13 +0000 (01:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Apr 2016 04:32:35 +0000 (21:32 -0700)
commitfd9a7d8f30e8a4f73c7973a9d4e59082ecb5c1bf
tree8d81962736165e12da8a9dbbe34d361fbb3440af
parent12c43a355c6a8812319dea661480488ed198ed06
i965: Enable ARB_texture_stencil8 and OES_texture_stencil8 on Gen8+.

Stencil texturing is required by ES 3.1.  Apparently we never actually
turned it on.  Do that now.  Also turn on the desktop extension.

Fixes nine dEQP-GLES31.functional tests:

stencil_texturing.format.stencil_index8_2d
texture.border_clamp.formats.stencil_index8.nearest_size_pot
texture.border_clamp.formats.stencil_index8.nearest_size_npot
texture.border_clamp.formats.stencil_index8.gather_size_pot
texture.border_clamp.formats.stencil_index8.gather_size_npot
texture.border_clamp.unused_channels.stencil_index8
state_query.internal_format.renderbuffer.stencil_index8_samples
state_query.internal_format.texture_2d_multisample.stencil_index8_samples
state_query.internal_format.texture_2d_multisample_array.stencil_index8_samples

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/intel_extensions.c