From 850619117e35932e1a7ca290b0d0c2a0c9f1e7fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 22 Jul 2019 15:59:22 -0400 Subject: [PATCH] =?utf8?q?tgsi:=20fix=20warning:=20=E2=80=98interp?= =?utf8?q?=E2=80=99=20may=20be=20used=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 34b72850208..18ee27502b4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -3087,6 +3087,7 @@ exec_declaration(struct tgsi_exec_machine *mach, case TGSI_INTERPOLATE_COLOR: eval = mach->flatshade_color ? eval_constant_coef : eval_perspective_coef; + interp = mach->flatshade_color ? interp_constant_offset : interp_perspective_offset; break; default: -- 2.30.2