summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2020-11-16 12:52:58 +0100
committerMarge Bot <eric+marge@anholt.net>2021-02-02 00:43:56 +0000
commit58e52326254e6967018354bf678fc7fa7c0eee53 (patch)
treec943bb05733079d5cc996e3ddfa9037d13f941f1
parent7f7da82dbb7839593f454d92e57b0aff15b65a07 (diff)
radv: Enable DRM format modifiers on GFX9+.
Reviewed-By: Chad Versace <chad@kiwitree.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7667>
-rw-r--r--docs/relnotes/new_features.txt1
-rw-r--r--src/amd/vulkan/radv_extensions.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index e08d5eeeeca..81c7f81a135 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -14,3 +14,4 @@ Panfrost t760+ exposes GL 3.1 (including on Bifrost)
Sparse memory support on RADV
Rapid packed math (16bit-vectorization) on RADV
VK_KHR_workgroup_memory_explicit_layout on Intel, RADV
+DRM format modifiers for AMD.
diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py
index 6b6c8cd2212..f618dd9e2d7 100644
--- a/src/amd/vulkan/radv_extensions.py
+++ b/src/amd/vulkan/radv_extensions.py
@@ -139,7 +139,7 @@ EXTENSIONS = [
Extension('VK_EXT_external_memory_host', 1, 'device->rad_info.has_userptr'),
Extension('VK_EXT_global_priority', 2, 'device->rad_info.has_ctx_priority'),
Extension('VK_EXT_host_query_reset', 1, True),
- Extension('VK_EXT_image_drm_format_modifier', 1, False),
+ Extension('VK_EXT_image_drm_format_modifier', 1, 'device->rad_info.chip_class >= GFX9'),
Extension('VK_EXT_image_robustness', 1, True),
Extension('VK_EXT_index_type_uint8', 1, 'device->rad_info.chip_class >= GFX8'),
Extension('VK_EXT_inline_uniform_block', 1, True),