mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
ee1c5ffe7e
commit
115101f0d2
2 changed files with 3 additions and 3 deletions
|
|
@ -436,7 +436,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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -162,8 +162,8 @@ lvp_physical_device_get_format_properties(struct lvp_physical_device *physical_d
|
|||
if (pformat == PIPE_FORMAT_B5G6R5_UNORM)
|
||||
features |= VK_FORMAT_FEATURE_2_BLIT_SRC_BIT | VK_FORMAT_FEATURE_2_BLIT_DST_BIT;
|
||||
if ((pformat != PIPE_FORMAT_R9G9B9E5_FLOAT) && util_format_get_nr_components(pformat) != 3 &&
|
||||
pformat != PIPE_FORMAT_R10G10B10A2_SNORM && pformat != PIPE_FORMAT_B10G10R10A2_SNORM &&
|
||||
pformat != PIPE_FORMAT_B10G10R10A2_UNORM) {
|
||||
!util_format_is_yuv(pformat) && pformat != PIPE_FORMAT_R10G10B10A2_SNORM &&
|
||||
pformat != PIPE_FORMAT_B10G10R10A2_SNORM && pformat != PIPE_FORMAT_B10G10R10A2_UNORM) {
|
||||
features |= VK_FORMAT_FEATURE_2_BLIT_SRC_BIT | VK_FORMAT_FEATURE_2_BLIT_DST_BIT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue