mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -370,9 +370,7 @@ panfrost_shader_compile(struct panfrost_context *ctx,
|
||||||
if (outputs_written)
|
if (outputs_written)
|
||||||
*outputs_written = s->info.outputs_written;
|
*outputs_written = s->info.outputs_written;
|
||||||
|
|
||||||
/* Separate as primary uniform count is truncated. Sysvals are prefix
|
state->uniform_count = program->uniform_cutoff;
|
||||||
* uniforms */
|
|
||||||
state->uniform_count = MIN2(s->num_uniforms + program->sysval_count, program->uniform_cutoff);
|
|
||||||
state->work_reg_count = program->work_register_count;
|
state->work_reg_count = program->work_register_count;
|
||||||
|
|
||||||
if (pan_is_bifrost(dev))
|
if (pan_is_bifrost(dev))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue