aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/vulkan/radv_constants.h')
-rw-r--r--src/amd/vulkan/radv_constants.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_constants.h b/src/amd/vulkan/radv_constants.h
index a42984e83c6..b494e5c71e7 100644
--- a/src/amd/vulkan/radv_constants.h
+++ b/src/amd/vulkan/radv_constants.h
@@ -81,8 +81,10 @@
*/
#define RADV_MAX_PER_SET_DESCRIPTORS ((1ull << 31 ) / 96)
-/* Our buffer size fields allow only this much */
-#define RADV_MAX_MEMORY_ALLOCATION_SIZE 0xFFFFFFFFull
+/* Our buffer size fields allow only 2**32 - 1. We round that down to a multiple
+ * of 4 bytes so we can align buffer sizes up.
+ */
+#define RADV_MAX_MEMORY_ALLOCATION_SIZE 0xFFFFFFFCull
/* Number of invocations in each subgroup. */
#define RADV_SUBGROUP_SIZE 64