Skip to content

anv: Increase maxUniformBufferRange to 2^30 when not using the sampler

Kenneth Graunke requested to merge kwg/mesa:anv-max-uniform-buffer-range into main

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.

+@llandwerlin +@lfelipe

Merge request reports