summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar Rundgren <oskar.rundgren@imgtec.com>2023-05-07 19:02:54 +0100
committerMarge Bot <emma+marge@anholt.net>2023-05-17 08:18:26 +0000
commit41fbe9fe8eccbf7936ef8392adea2512680ecfde (patch)
tree0fb2a6ce9bd213b8a2b0b5c9ce4b25167f7a465f
parent59ba5cc2d15bb65e9a55d06fe278ae199175c1c3 (diff)
downloadmesa-41fbe9fe8eccbf7936ef8392adea2512680ecfde.tar.gz
pvr: Transfer block compressed with 3d twiddled layout
Block compressed formats with 3d twiddled memory layout not supported. Signed-off-by: Oskar Rundgren <oskar.rundgren@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22958>
-rw-r--r--src/imagination/vulkan/pvr_formats.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imagination/vulkan/pvr_formats.c b/src/imagination/vulkan/pvr_formats.c
index e6ca6685002..37efc6d9ae6 100644
--- a/src/imagination/vulkan/pvr_formats.c
+++ b/src/imagination/vulkan/pvr_formats.c
@@ -730,6 +730,12 @@ pvr_get_image_format_properties(struct pvr_physical_device *pdevice,
result = vk_error(pdevice, VK_ERROR_FORMAT_NOT_SUPPORTED);
goto err_unsupported_format;
}
+
+ /* Block compressed with 3D layout not supported */
+ if (vk_format_is_block_compressed(info->format)) {
+ result = vk_error(pdevice, VK_ERROR_FORMAT_NOT_SUPPORTED);
+ goto err_unsupported_format;
+ }
}
if (info->usage & render_usage) {