From: Marek Olšák Date: Mon, 22 Jul 2019 19:59:22 +0000 (-0400) Subject: tgsi: fix warning: ‘interp’ may be used uninitialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=850619117e35932e1a7ca290b0d0c2a0c9f1e7fa;p=mesa.git tgsi: fix warning: ‘interp’ may be used uninitialized Reviewed-by: Dave Airlie --- 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: