lavapipe: don't emit blit src/dst for subsampled formats.
authorDave Airlie <airlied@redhat.com>
Tue, 26 Sep 2023 02:55:21 +0000 (12:55 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 04:37:06 +0000 (04:37 +0000)
Fixes dEQP-VK.api.info.format_properties.b8g8r8g8_422_unorm

Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25609>

src/gallium/frontends/lavapipe/lvp_formats.c

index 14d05d0343a7c23e347df9ab4fb43657d45ab0e5..dd5fde6470a768df721dda48f4541a8eee187952 100644 (file)
@@ -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 &&