summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-22 15:59:22 -0400
committerMarek Olšák <[email protected]>2019-07-22 20:57:44 -0400
commit850619117e35932e1a7ca290b0d0c2a0c9f1e7fa (patch)
tree405b7da0d7b2a380e8a274584572992e839474eb /src/gallium/auxiliary
parentf257ef2bbbdf30313b5ce3dda9ff14344cdfc915 (diff)
tgsi: fix warning: ‘interp’ may be used uninitialized
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c1
1 files changed, 1 insertions, 0 deletions
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: