mesa/st: fix formats required for EXT_texture_norm16
authorTapani Pälli <tapani.palli@intel.com>
Thu, 27 Feb 2020 08:33:33 +0000 (10:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Mar 2020 10:53:44 +0000 (10:53 +0000)
Earlier commit did not take in to account that lists required for
rendering and texturing are parsed separately. This commit simply
removes formats added to the other list.

Fixes: de4eb9a3bb9 ("mesa/st: toggle EXT_texture_norm16 based on format support")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3961>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3961>

src/mesa/state_tracker/st_extensions.c

index 3fdfe745793ee1695098570486e56a334a36933b..2d946b5a358694ebf783e23c5764b798f660a78f 100644 (file)
@@ -973,13 +973,6 @@ 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. */