v3d: do not expose EXT_float_blend

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 <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30512>
This commit is contained in:
Iago Toral Quiroga
2024-08-05 10:38:35 +02:00
committed by Marge Bot
parent 0413e1f7dc
commit d58f7a24d1

View File

@@ -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;