Skip to content

zink: set conformant ubo/ssbo size limits

Mike Blumenkrantz requested to merge zmike/mesa:zink-bo_limits into master

the vulkan spec only says that these sizes must be >0 and imposes no other limitations on sizes, nor is there any mechanism by which to detect a driver's hardcoded max size

u_screen sets ssbo max size to 1<<27 (and weird clamping occurs above that), while 1<<31 seems to be a reasonable maximum for ubos based on reading some vk driver values

fixes KHR-GL46.shader_storage_buffer_object.basic-max

Merge request reports