v3dv: define V3D_MAX_BUFFER_RANGE

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10970>
This commit is contained in:
Iago Toral Quiroga 2021-05-25 09:48:39 +02:00 committed by Marge Bot
parent 9984ebf173
commit f7ce44b6e5
2 changed files with 4 additions and 2 deletions

View file

@ -62,4 +62,6 @@
#define V3D_MAX_POINT_SIZE 512.0f
#define V3D_MAX_LINE_WIDTH 32
#define V3D_MAX_BUFFER_RANGE (1 << 27)
#endif /* V3D_LIMITS_H */

View file

@ -1081,8 +1081,8 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
.maxImageDimensionCube = 4096,
.maxImageArrayLayers = 2048,
.maxTexelBufferElements = (1ul << 28),
.maxUniformBufferRange = (1ul << 27),
.maxStorageBufferRange = (1ul << 27),
.maxUniformBufferRange = V3D_MAX_BUFFER_RANGE,
.maxStorageBufferRange = V3D_MAX_BUFFER_RANGE,
.maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE,
.maxMemoryAllocationCount = mem_size / page_size,
.maxSamplerAllocationCount = 64 * 1024,