From 4c58069f5013f0a621503525f7d5193bfe9976b3 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 14 Aug 2017 09:45:54 +0000 Subject: Import Mesa 17.1.6 --- lib/mesa/src/gallium/drivers/vc4/vc4_opt_constant_folding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mesa/src/gallium/drivers/vc4/vc4_opt_constant_folding.c') diff --git a/lib/mesa/src/gallium/drivers/vc4/vc4_opt_constant_folding.c b/lib/mesa/src/gallium/drivers/vc4/vc4_opt_constant_folding.c index 7ff916155..de642d465 100644 --- a/lib/mesa/src/gallium/drivers/vc4/vc4_opt_constant_folding.c +++ b/lib/mesa/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++) { -- cgit v1.2.3