mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 11:50:23 +01: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
db50924867
commit
cd5e0498c5
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue