mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
zink: uncap ssbo size
since the transition to UINT pipe cap, this no longer needs to be restricted to appease gallium fixes #7103 cc: mesa-stable Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18144>
This commit is contained in:
parent
e122d95d73
commit
96be036a6b
1 changed files with 2 additions and 2 deletions
|
|
@ -820,8 +820,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_MAX_SHADER_BUFFER_SIZE_UINT:
|
||||
/* 1<<27 is required by VK spec */
|
||||
assert(screen->info.props.limits.maxStorageBufferRange >= 1 << 27);
|
||||
/* but Gallium can't handle values that are too big, so clamp to VK spec minimum */
|
||||
return MIN2(get_smallest_buffer_heap(screen), 1 << 27);
|
||||
/* clamp to VK spec minimum */
|
||||
return MIN2(get_smallest_buffer_heap(screen), screen->info.props.limits.maxStorageBufferRange);
|
||||
|
||||
case PIPE_CAP_FS_COORD_ORIGIN_UPPER_LEFT:
|
||||
case PIPE_CAP_FS_COORD_PIXEL_CENTER_HALF_INTEGER:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue