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>
(cherry picked from commit cee494aafd)
This commit is contained in:
Mike Blumenkrantz 2023-08-09 15:23:28 -04:00 committed by Dylan Baker
parent db50924867
commit cd5e0498c5
2 changed files with 2 additions and 1 deletions

View file

@ -8944,7 +8944,7 @@
"description": "lavapipe: block yuv formats from getting blit feature flags",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -174,6 +174,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) {