mesa/st: do not require render-target support for texture-only exts

These extensions only enable texturing support for these formats, so we
don't need to require them to be renderable.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26870>
This commit is contained in:
Erik Faye-Lund
2024-01-03 11:11:49 +01:00
committed by Marge Bot
parent 5c42d6c62f
commit ee8ac6a7a2

View File

@@ -877,12 +877,6 @@ void st_init_extensions(struct pipe_screen *screen,
/* Required: render target and sampler support */
static const struct st_extension_format_mapping rendertarget_mapping[] = {
{ { o(OES_texture_float) },
{ PIPE_FORMAT_R32G32B32A32_FLOAT } },
{ { o(OES_texture_half_float) },
{ PIPE_FORMAT_R16G16B16A16_FLOAT } },
{ { o(ARB_texture_rgb10_a2ui) },
{ PIPE_FORMAT_R10G10B10A2_UINT,
PIPE_FORMAT_B10G10R10A2_UINT },
@@ -940,6 +934,12 @@ void st_init_extensions(struct pipe_screen *screen,
/* Required: sampler support */
static const struct st_extension_format_mapping texture_mapping[] = {
{ { o(OES_texture_float) },
{ PIPE_FORMAT_R32G32B32A32_FLOAT } },
{ { o(OES_texture_half_float) },
{ PIPE_FORMAT_R16G16B16A16_FLOAT } },
{ { o(ARB_texture_compression_rgtc) },
{ PIPE_FORMAT_RGTC1_UNORM,
PIPE_FORMAT_RGTC1_SNORM,