diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-20 11:38:21 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-22 03:32:35 +0000 |
commit | 8bb16138b658ea7eb5dfaf023463ae78f173de0e (patch) | |
tree | 89fc2ed72c30e9101cd1299660f7586f2e5dbfe8 /src/panfrost/bifrost/bifrost_compile.c | |
parent | fc0b49bb2cae9a0c8074faff680ddc91c8dd4bfe (diff) |
pan/bi: Include UBO index for sysval reads
Trivially zero.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost/bifrost_compile.c')
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |