diff options
author | Eric Anholt <[email protected]> | 2017-09-28 14:02:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-10 11:42:05 -0700 |
commit | 361c5f28bdc6858618e9de85a340adce1b217e2c (patch) | |
tree | f2a93b771d1c949b1208753eda296d0d1cbe5c09 /src/gallium/drivers/vc5/vc5_emit.c | |
parent | d0dfc4bd5f3711ac48de88aa51fc6f442eaa0b20 (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.c | 2 |
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; } } } |