pan/bi: Include UBO index for sysval reads

Trivially zero.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
This commit is contained in:
Alyssa Rosenzweig 2020-03-20 11:38:21 -04:00 committed by Marge Bot
parent fc0b49bb2c
commit 8bb16138b6

View 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 */