X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fvc4%2Fvc4_reorder_uniforms.c;h=37acefdc0ba9388e2605aa11eebc4012fa8637e4;hb=4e110eca42ac2c56c5763a1f502e7c80db67e064;hp=85a0c95e85155c214d44faf2e67de010c1c675b8;hpb=179fc4aae8f782453f0488e8dd508f9a01117376;p=mesa.git diff --git a/src/gallium/drivers/vc4/vc4_reorder_uniforms.c b/src/gallium/drivers/vc4/vc4_reorder_uniforms.c index 85a0c95e851..37acefdc0ba 100644 --- a/src/gallium/drivers/vc4/vc4_reorder_uniforms.c +++ b/src/gallium/drivers/vc4/vc4_reorder_uniforms.c @@ -43,10 +43,10 @@ qir_reorder_uniforms(struct vc4_compile *c) uint32_t uniform_index_size = 0; uint32_t next_uniform = 0; - list_for_each_entry(struct qinst, inst, &c->instructions, link) { + qir_for_each_inst_inorder(inst, c) { uint32_t new = ~0; - for (int i = 0; i < qir_get_op_nsrc(inst->op); i++) { + for (int i = 0; i < qir_get_nsrc(inst); i++) { if (inst->src[i].file != QFILE_UNIF) continue;