From 69a08fd9b229ee9e859bfca5f4f9052c84714f98 Mon Sep 17 00:00:00 2001 From: Rebecca Mckeever Date: Fri, 28 Feb 2025 14:36:59 -0800 Subject: [PATCH] panvk: Support shaderImageGatherExtended Signed-off-by: Rebecca Mckeever Reviewed-by: Boris Brezillon Part-of: --- docs/relnotes/new_features.txt | 1 + src/panfrost/vulkan/panvk_physical_device.c | 1 + src/panfrost/vulkan/panvk_vX_shader.c | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 2e28911b971..c44659e898f 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -26,3 +26,4 @@ KHR_blend_equation_advanced on v3d KHR_blend_equation_advanced_coherent on v3d KHR_partial_update on etnaviv VK_KHR_line_rasterization on panvk +shaderImageGatherExtended on panvk diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index 1bbcd55721e..5e953ef242e 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -297,6 +297,7 @@ get_features(const struct panvk_physical_device *device, .textureCompressionETC2 = true, .textureCompressionASTC_LDR = true, .fragmentStoresAndAtomics = arch >= 10, + .shaderImageGatherExtended = true, .shaderStorageImageExtendedFormats = true, .shaderUniformBufferArrayDynamicIndexing = true, .shaderSampledImageArrayDynamicIndexing = true, diff --git a/src/panfrost/vulkan/panvk_vX_shader.c b/src/panfrost/vulkan/panvk_vX_shader.c index 6cf65ef23d6..c2476e31ae4 100644 --- a/src/panfrost/vulkan/panvk_vX_shader.c +++ b/src/panfrost/vulkan/panvk_vX_shader.c @@ -361,6 +361,7 @@ panvk_preprocess_nir(UNUSED struct vk_physical_device *vk_pdev, nir_lower_tex_options lower_tex_options = { .lower_txs_lod = true, .lower_txp = ~0, + .lower_tg4_offsets = true, .lower_txd_cube_map = true, .lower_invalid_implicit_lod = true, };