Will fix INSTR_INVALID_OPERAND faults when we push other UBOs.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8973>
if (outputs_written)
*outputs_written = s->info.outputs_written;
- /* Separate as primary uniform count is truncated. Sysvals are prefix
- * uniforms */
- state->uniform_count = MIN2(s->num_uniforms + program->sysval_count, program->uniform_cutoff);
+ state->uniform_count = program->uniform_cutoff;
state->work_reg_count = program->work_register_count;
if (pan_is_bifrost(dev))