panfrost: Don't truncate uniform_count
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>
This commit is contained in:
parent
db7e2dce1c
commit
ed810eb0a0
|
@ -370,9 +370,7 @@ panfrost_shader_compile(struct panfrost_context *ctx,
|
|||
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))
|
||||
|
|
Loading…
Reference in New Issue