mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
zink: partially enable SSBO pipe cap
this enables atomic counters Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8330>
This commit is contained in:
parent
2bfa998960
commit
322a3d4fb0
1 changed files with 2 additions and 1 deletions
|
|
@ -528,7 +528,8 @@ zink_get_shader_param(struct pipe_screen *pscreen,
|
||||||
return 32; /* arbitrary */
|
return 32; /* arbitrary */
|
||||||
|
|
||||||
case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
|
case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
|
||||||
return 0;
|
/* TODO: this limitation is dumb, and will need some fixes in mesa */
|
||||||
|
return MIN2(screen->info.props.limits.maxPerStageDescriptorStorageBuffers, PIPE_MAX_SHADER_BUFFERS);
|
||||||
|
|
||||||
case PIPE_SHADER_CAP_SUPPORTED_IRS:
|
case PIPE_SHADER_CAP_SUPPORTED_IRS:
|
||||||
return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_TGSI);
|
return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_TGSI);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue