mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 10:30:26 +01:00
panvk: let the mod handler handle DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED
There are additional conditions that must be met before DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED can be used. These conditions are verified by the handler of this modifier, but not panvk_image_can_use_mod. Let's call the handler of this modifier so it can finally decide whether this modifier can be used. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38986>
This commit is contained in:
parent
8661cb12e2
commit
5279eb7dfc
1 changed files with 2 additions and 2 deletions
|
|
@ -270,8 +270,8 @@ panvk_image_can_use_mod(struct panvk_image *image,
|
|||
* sampled/storage image, frag_coord patching for color attachments). Let's
|
||||
* keep things simple for now and make all compressed images that
|
||||
* have VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT set linear. */
|
||||
return !(image->vk.create_flags &
|
||||
VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT);
|
||||
if (image->vk.create_flags & VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Defer the rest of the checks to the mod handler. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue