summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_emit.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-09-28 14:02:05 -0700
committerEric Anholt <[email protected]>2017-10-10 11:42:05 -0700
commit361c5f28bdc6858618e9de85a340adce1b217e2c (patch)
treef2a93b771d1c949b1208753eda296d0d1cbe5c09 /src/gallium/drivers/vc5/vc5_emit.c
parentd0dfc4bd5f3711ac48de88aa51fc6f442eaa0b20 (diff)
broadcom/vc5: Fix handling of interp qualifiers on builtin color inputs.
The interpolation qualifier, if specified, is supposed to take precedence over glShadeModel().
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_emit.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c
index 29ccfcdacdb..60883d96d4b 100644
--- a/src/gallium/drivers/vc5/vc5_emit.c
+++ b/src/gallium/drivers/vc5/vc5_emit.c
@@ -408,7 +408,7 @@ vc5_emit_state(struct pipe_context *pctx)
if (vc5->rasterizer->base.flatshade) {
flags.flat_shade_flags_for_varyings_v024 |=
- vc5->prog.fs->prog_data.fs->color_inputs[0] & 0xfffff;
+ vc5->prog.fs->prog_data.fs->shade_model_flags[0] & 0xfffff;
}
}
}