panfrost: Don't truncate uniform_count
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 7 Feb 2021 16:05:28 +0000 (11:05 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Feb 2021 17:24:37 +0000 (17:24 +0000)
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>

src/gallium/drivers/panfrost/pan_assemble.c

index 31d262cb0393d5fb391c4386b3707813ec8fed95..38614d2c62d9399e397bb50c2f1a7422f4583286 100644 (file)
@@ -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))