mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
nvk: Don't advertise tiling on non-power-of-two formats
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
60f41aca47
commit
2a2076b0d2
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ nvk_get_image_format_features(struct nvk_physical_device *pdevice,
|
|||
if (!nil_format_supports_texturing(pdevice->dev, p_format))
|
||||
return 0;
|
||||
|
||||
/* You can't tile a non-power-of-two */
|
||||
if (!util_is_power_of_two_nonzero(util_format_get_blocksize(p_format)))
|
||||
return 0;
|
||||
|
||||
features |= VK_FORMAT_FEATURE_2_TRANSFER_SRC_BIT;
|
||||
features |= VK_FORMAT_FEATURE_2_TRANSFER_DST_BIT;
|
||||
features |= VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue