Commit d9830551 authored by José Casanova Crespo's avatar José Casanova Crespo Committed by Alejandro Piñeiro

v3d: Fix predication with atomic image operations

Fixes dEQP test:

Fixes piglit test:

Fixes: 6281f26f ("v3d: Add support for shader_image_load_store.")
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <>
Reviewed-by: Eric Anholt's avatarEric Anholt <>
parent 36b099a7
......@@ -392,9 +392,21 @@ v3d40_vir_emit_image_load_store(struct v3d_compile *c,
if (vir_in_nonuniform_control_flow(c) &&
instr->intrinsic != nir_intrinsic_image_deref_load) {
vir_set_pf(vir_MOV_dest(c, vir_nop_reg(), c->execute),
vir_TMU_WRITE(c, V3D_QPU_WADDR_TMUSF, ntq_get_src(c, instr->src[1], 0),
if (vir_in_nonuniform_control_flow(c) &&
instr->intrinsic != nir_intrinsic_image_deref_load) {
struct qinst *last_inst= (struct qinst *)c->cur_block->instructions.prev;
vir_set_cond(last_inst, V3D_QPU_COND_IFA);
/* The input FIFO has 16 slots across all threads, so make sure we
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment