From: Alyssa Rosenzweig Date: Fri, 20 Mar 2020 15:38:21 +0000 (-0400) Subject: pan/bi: Include UBO index for sysval reads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bb16138b658ea7eb5dfaf023463ae78f173de0e;p=mesa.git pan/bi: Include UBO index for sysval reads Trivially zero. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index a1040eb6f0f..6cd97b92ba3 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -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 */