pan/midgard: Fix crash with txs
This regressed since we implemented RECT textures natively, oops. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169>
This commit is contained in:

committed by
Tomeu Vizoso

parent
ccbc9a4e67
commit
da73651da4
@@ -1165,7 +1165,9 @@ emit_ubo_read(
|
||||
|
||||
midgard_instruction ins = m_ld_ubo_int4(dest, 0);
|
||||
ins.constants[0] = offset;
|
||||
mir_set_intr_mask(instr, &ins, true);
|
||||
|
||||
if (instr->type == nir_instr_type_intrinsic)
|
||||
mir_set_intr_mask(instr, &ins, true);
|
||||
|
||||
if (indirect_offset) {
|
||||
ins.src[2] = nir_src_index(ctx, indirect_offset);
|
||||
|
Reference in New Issue
Block a user