mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
zink: do not report SSBOs as halfway supported
We don't support SSBOs yet, as we don't expose the PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT-cap. But the gallium state-tracker's limit-calculation gets confused by this half-way support, and ends up thinking we can support atomics, which we don't support yet either. So let's not confuse the state-tracker here, and let's introduce this again when SSBOs are actually supported. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7113>
This commit is contained in:
parent
044d213086
commit
77c1b01508
1 changed files with 1 additions and 2 deletions
|
|
@ -460,8 +460,7 @@ zink_get_shader_param(struct pipe_screen *pscreen,
|
|||
return 32; /* arbitrary */
|
||||
|
||||
case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
|
||||
/* TODO: this limitation is dumb, and will need some fixes in mesa */
|
||||
return MIN2(screen->info.props.limits.maxPerStageDescriptorStorageBuffers, PIPE_MAX_SHADER_BUFFERS);
|
||||
return 0;
|
||||
|
||||
case PIPE_SHADER_CAP_SUPPORTED_IRS:
|
||||
return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_TGSI);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue