Commit 162df1f7 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

zink: query driver for ubo size/counts

parent c297ccaa
......@@ -369,8 +369,10 @@ zink_get_shader_param(struct pipe_screen *pscreen,
PIPE_MAX_SAMPLERS);
case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
return screen->props.limits.maxUniformBufferRange;
case PIPE_SHADER_CAP_MAX_CONST_BUFFERS:
return INT_MAX; /* unsure */
return screen->props.limits.maxPerStageDescriptorUniformBuffers;
case PIPE_SHADER_CAP_MAX_TEMPS:
return INT_MAX;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment