From 850619117e35932e1a7ca290b0d0c2a0c9f1e7fa Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 22 Jul 2019 15:59:22 -0400 Subject: tgsi: fix warning: ‘interp’ may be used uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary') 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: -- cgit v1.2.3