mesa: Only expose GLES's EXT_texture_type_2_10_10_10_REV if supported in HW.
authorEric Anholt <eric@anholt.net>
Mon, 1 May 2017 16:51:01 +0000 (09:51 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 10 Oct 2017 16:31:29 +0000 (09:31 -0700)
commitcee5585da7e8a164952347c8dbf72844cad85d9d
tree1b9e11ebc0732343a58bcec916ff0a8781fe1d7b
parentcbb532429b68ce0e401413bdcc75a2f122786302
mesa: Only expose GLES's EXT_texture_type_2_10_10_10_REV if supported in HW.

Previously, we were downconverting to 8888 automatically if the hardware
didn't suport it.  However, with the advent of
GL_OES_required_internalformat, we have to actually store the
internalformats we advertise support for.  And, it seems rather
disingenuous to advertise the extension if we don't actually support it.

v2: Throw an error when using the format on ES2 without the extension present.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/main/extensions_table.h
src/mesa/main/glformats.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c