X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fvc4%2Fvc4_opt_constant_folding.c;h=de642d46582211c11607efdea03f39a201b907e3;hb=cb16d9103480687c414519bed5256217c9e7aaad;hp=7ff91615545411214b239097e26f43b890e5742a;hpb=d3cdbf6fd817ae5e7a8a72bcc3f43cc1b04a709b;p=mesa.git diff --git a/src/gallium/drivers/vc4/vc4_opt_constant_folding.c b/src/gallium/drivers/vc4/vc4_opt_constant_folding.c index 7ff91615545..de642d46582 100644 --- a/src/gallium/drivers/vc4/vc4_opt_constant_folding.c +++ b/src/gallium/drivers/vc4/vc4_opt_constant_folding.c @@ -58,7 +58,7 @@ dump_to(struct vc4_compile *c, struct qinst *inst) static bool constant_fold(struct vc4_compile *c, struct qinst *inst) { - int nsrc = qir_get_op_nsrc(inst->op); + int nsrc = qir_get_nsrc(inst); uint32_t ui[nsrc]; for (int i = 0; i < nsrc; i++) {