Module: Mesa
Branch: main
Commit: 1dd1c9d610dbe0fffd8708977afc0aa88d4a457c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1dd1c9d610dbe0fffd8708977afc0aa88d4a457c

Author: Vlad Schiller <[email protected]>
Date:   Thu Nov  2 08:08:01 2023 +0000

pvr: Fix VK_EXT_texel_buffer_alignment

In the commit that enabled the extension, I forgot to add the required
properties, which made some tests to fail.

Fixes: 649ebbb0fb7 ("pvr: Implement VK_EXT_texel_buffer_alignment")
Signed-off-by: Vlad Schiller <[email protected]>
Reviewed-by: Frank Binns <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26002>

---

 src/imagination/vulkan/pvr_device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/imagination/vulkan/pvr_device.c 
b/src/imagination/vulkan/pvr_device.c
index 4b94d20254d..d598cb8a8a7 100644
--- a/src/imagination/vulkan/pvr_device.c
+++ b/src/imagination/vulkan/pvr_device.c
@@ -591,6 +591,12 @@ static bool pvr_physical_device_get_properties(
 
       /* Vulkan 1.2 / VK_KHR_timeline_semaphore */
       .maxTimelineSemaphoreValueDifference = UINT64_MAX,
+
+      /* Vulkan 1.3 / VK_EXT_texel_buffer_alignment */
+      .storageTexelBufferOffsetAlignmentBytes = 16,
+      .storageTexelBufferOffsetSingleTexelAlignment = true,
+      .uniformTexelBufferOffsetAlignmentBytes = 16,
+      .uniformTexelBufferOffsetSingleTexelAlignment = false,
    };
 
    snprintf(properties->deviceName,

Reply via email to