mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
anv: require rendering support for blit destination feature
This fixes some new cts tests that exercise blitting
between compressed and uncompressed formats.
Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10830>
(cherry picked from commit 72fd126070)
This commit is contained in:
parent
ffdbd58d58
commit
33d52db1f0
2 changed files with 5 additions and 2 deletions
|
|
@ -229,7 +229,7 @@
|
|||
"description": "anv: require rendering support for blit destination feature",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -645,9 +645,12 @@ anv_get_image_format_features(const struct gen_device_info *devinfo,
|
|||
|
||||
if (flags) {
|
||||
flags |= VK_FORMAT_FEATURE_BLIT_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_BLIT_DST_BIT |
|
||||
VK_FORMAT_FEATURE_TRANSFER_SRC_BIT |
|
||||
VK_FORMAT_FEATURE_TRANSFER_DST_BIT;
|
||||
|
||||
/* Blit destination requires rendering support. */
|
||||
if (isl_format_supports_rendering(devinfo, plane_format.isl_format))
|
||||
flags |= VK_FORMAT_FEATURE_BLIT_DST_BIT;
|
||||
}
|
||||
|
||||
/* XXX: We handle 3-channel formats by switching them out for RGBX or
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue