lavapipe: block yuv formats from getting blit feature flags

this is illegal

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589>
This commit is contained in:
Mike Blumenkrantz
2023-08-09 15:23:28 -04:00
committed by Marge Bot
parent 9e2f95eae3
commit cee494aafd
@@ -183,6 +183,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_yuv(pformat) &&
pformat != PIPE_FORMAT_R10G10B10A2_SNORM &&
pformat != PIPE_FORMAT_B10G10R10A2_SNORM &&
pformat != PIPE_FORMAT_B10G10R10A2_UNORM) {