nvk: Add a separate #define for SSBO alignment

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-03-30 17:40:35 -05:00 committed by Marge Bot
parent 06c798f39b
commit 7810c9171e
2 changed files with 2 additions and 1 deletions

View file

@ -110,7 +110,7 @@ nvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
.minMemoryMapAlignment = 64,
.minUniformBufferOffsetAlignment = NVK_MIN_UBO_ALIGNMENT,
.minTexelBufferOffsetAlignment = NVK_MIN_UBO_ALIGNMENT,
.minStorageBufferOffsetAlignment = NVK_MIN_UBO_ALIGNMENT,
.minStorageBufferOffsetAlignment = NVK_MIN_SSBO_ALIGNMENT,
.maxVertexInputAttributeOffset = 2047,
.maxVertexInputAttributes = 32,
.maxVertexInputBindingStride = 2048,

View file

@ -21,6 +21,7 @@
#define NVK_MAX_PUSH_SIZE 128
#define NVK_MAX_DYNAMIC_BUFFERS 64
#define NVK_MAX_RTS 8
#define NVK_MIN_SSBO_ALIGNMENT 64
#define NVK_MIN_UBO_ALIGNMENT 64
#define NVK_MAX_VIEWPORTS 16
#define NVK_MAX_DESCRIPTOR_SIZE 16