anv: Increase maxUniformBufferRange to 2^30 when not using the sampler
The limit here is from the RENDER_SURFACE_STATE height/width/depth fields - it's 2^30 for ISL_FORMAT_RAW buffers, and 2^27 otherwise. anv_isl_format_for_descriptor_type() uses ISL_FORMAT_R32G32B32A32_FLOAT for uniform buffers when compiler->indirect_ubos_use_sampler is set (Icelake and earlier), but ISL_FORMAT_RAW when it isn't (Tigerlake+). So we can increase the limit on Tigerlake and later. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14892>
This commit is contained in:
parent
49f4f1ec22
commit
c7a357787f
|
@ -1826,7 +1826,7 @@ void anv_GetPhysicalDeviceProperties(
|
|||
.maxImageDimensionCube = (1 << 14),
|
||||
.maxImageArrayLayers = (1 << 11),
|
||||
.maxTexelBufferElements = 128 * 1024 * 1024,
|
||||
.maxUniformBufferRange = (1ul << 27),
|
||||
.maxUniformBufferRange = pdevice->compiler->indirect_ubos_use_sampler ? (1u << 27) : (1u << 30),
|
||||
.maxStorageBufferRange = pdevice->isl_dev.max_buffer_size,
|
||||
.maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE,
|
||||
.maxMemoryAllocationCount = UINT32_MAX,
|
||||
|
|
Loading…
Reference in New Issue