pan/bi: Include UBO index for sysval reads
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 20 Mar 2020 15:38:21 +0000 (11:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 22 Mar 2020 03:32:35 +0000 (03:32 +0000)
Trivially zero.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>

src/panfrost/bifrost/bifrost_compile.c

index a1040eb6f0f3aea053a045a98adc1e2ac1ec7fff..6cd97b92ba396764ef2448a8e0c1a088b37d84cd 100644 (file)
@@ -230,7 +230,7 @@ bi_emit_sysval(bi_context *ctx, nir_instr *instr,
         bi_instruction load = {
                 .type = BI_LOAD_UNIFORM,
                 .writemask = (1 << (nr_components * 4)) - 1,
-                .src = { BIR_INDEX_CONSTANT},
+                .src = { BIR_INDEX_CONSTANT, BIR_INDEX_ZERO },
                 .constant = { (uniform * 16) + offset },
                 .dest = bir_dest_index(&nir_dest),
                 .dest_type = nir_type_uint32, /* TODO */