diff options
author | Eric Anholt <[email protected]> | 2017-05-01 09:51:01 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-10 09:31:29 -0700 |
commit | cee5585da7e8a164952347c8dbf72844cad85d9d (patch) | |
tree | 1b9e11ebc0732343a58bcec916ff0a8781fe1d7b /src/mesa/state_tracker | |
parent | cbb532429b68ce0e401413bdcc75a2f122786302 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index c3c7d6f9f8b..1fbae9234e5 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -774,6 +774,11 @@ void st_init_extensions(struct pipe_screen *screen, PIPE_FORMAT_B8G8R8A8_SRGB }, GL_TRUE }, /* at least one format must be supported */ + { { o(EXT_texture_type_2_10_10_10_REV) }, + { PIPE_FORMAT_R10G10B10A2_UNORM, + PIPE_FORMAT_B10G10R10A2_UNORM }, + GL_TRUE }, /* at least one format must be supported */ + { { o(ATI_texture_compression_3dc) }, { PIPE_FORMAT_LATC2_UNORM } }, |