From d58f7a24d1be7b8b50ebdc0c1c3ce26bd65317a5 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 5 Aug 2024 10:38:35 +0200 Subject: [PATCH] v3d: do not expose EXT_float_blend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This extension is all about exposing blending with 32-bit floating point formats, which V3D doesn't support at all so we should not be exposing it. Reviewed-by: Alejandro PiƱeiro Part-of: --- src/gallium/drivers/v3d/v3d_screen.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index 1316a76ee87..a457d9329d8 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -635,6 +635,14 @@ v3d_screen_is_format_supported(struct pipe_screen *pscreen, return false; } + /* We do not support EXT_float_blend (blending with 32F formats)*/ + if ((usage & PIPE_BIND_BLENDABLE) && + (format == PIPE_FORMAT_R32G32B32A32_FLOAT || + format == PIPE_FORMAT_R32G32_FLOAT || + format == PIPE_FORMAT_R32_FLOAT)) { + return false; + } + if ((usage & PIPE_BIND_SAMPLER_VIEW) && !v3d_tex_format_supported(&screen->devinfo, format)) { return false;