Module: Mesa
Branch: main
Commit: d1622204b59a261329098a5557e8629c168fcd81
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1622204b59a261329098a5557e8629c168fcd81

Author: Dave Airlie <[email protected]>
Date:   Tue Sep 26 12:55:21 2023 +1000

lavapipe: don't emit blit src/dst for subsampled formats.

Fixes dEQP-VK.api.info.format_properties.b8g8r8g8_422_unorm

Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25609>

---

 src/gallium/frontends/lavapipe/lvp_formats.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/frontends/lavapipe/lvp_formats.c 
b/src/gallium/frontends/lavapipe/lvp_formats.c
index 14d05d0343a..dd5fde6470a 100644
--- a/src/gallium/frontends/lavapipe/lvp_formats.c
+++ b/src/gallium/frontends/lavapipe/lvp_formats.c
@@ -184,6 +184,7 @@ lvp_physical_device_get_format_properties(struct 
lvp_physical_device *physical_d
    }
    if ((pformat != PIPE_FORMAT_R9G9B9E5_FLOAT) &&
        util_format_get_nr_components(pformat) != 3 &&
+       !util_format_is_subsampled_422(pformat) &&
        !util_format_is_yuv(pformat) &&
        pformat != PIPE_FORMAT_R10G10B10A2_SNORM &&
        pformat != PIPE_FORMAT_B10G10R10A2_SNORM &&

Reply via email to