From: Tapani Pälli Date: Wed, 26 Feb 2020 08:30:42 +0000 (+0200) Subject: mesa/st: toggle EXT_texture_norm16 based on format support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de4eb9a3bb9fb073a5bf5cc157918bfa0f62b394;p=mesa.git mesa/st: toggle EXT_texture_norm16 based on format support Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2556 Fixes: 7f467d4f738 ("mesa: GL_EXT_texture_norm16 extension plumbing") Signed-off-by: Tapani Pälli Acked-by: Lionel Landwerlin Reviewed-by: Alejandro Piñeiro Tested-by: Marge Bot Part-of: --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 446c9b5a618..3fdfe745793 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -826,6 +826,11 @@ void st_init_extensions(struct pipe_screen *screen, { PIPE_FORMAT_R8_UNORM, PIPE_FORMAT_R8G8_UNORM } }, + { { o(EXT_texture_norm16) }, + { PIPE_FORMAT_R16_UNORM, + PIPE_FORMAT_R16G16_UNORM, + PIPE_FORMAT_R16G16B16A16_UNORM } }, + { { o(EXT_render_snorm) }, { PIPE_FORMAT_R8_SNORM, PIPE_FORMAT_R8G8_SNORM, @@ -968,6 +973,13 @@ void st_init_extensions(struct pipe_screen *screen, { PIPE_FORMAT_ATC_RGB, PIPE_FORMAT_ATC_RGBA_EXPLICIT, PIPE_FORMAT_ATC_RGBA_INTERPOLATED } }, + + { { o(EXT_texture_norm16) }, + { PIPE_FORMAT_R16G16B16_UNORM, + PIPE_FORMAT_R16_SNORM, + PIPE_FORMAT_R16G16_SNORM, + PIPE_FORMAT_R16G16B16_SNORM, + PIPE_FORMAT_R16G16B16A16_SNORM } }, }; /* Required: vertex fetch support. */