From 2056e4a777bd0eed88ff2762977955b2f2bf2f1c Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 27 Dec 2017 15:12:37 -0800 Subject: broadcom/vc5: Emit proper flatshading code for glShadeModel(GL_FLAT). In updating the simulator, behavior changed slightly so that our old code wasn't getting glxgears's flatshading interpolated right. Emit flat shading code just like we would for a normal flat-shaded varying, by passing a flag in the shader key for glShadeModel(GL_FLAT) state and customizing the color inputs based on that. --- src/gallium/drivers/vc5/vc5_emit.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/gallium/drivers/vc5/vc5_emit.c') diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index 413059efa4a..3914a346e9d 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -507,11 +507,6 @@ vc5_emit_state(struct pipe_context *pctx) flags.flat_shade_flags_for_varyings_v024 = vc5->prog.fs->prog_data.fs->flat_shade_flags[0] & 0xfffff; - - if (vc5->rasterizer->base.flatshade) { - flags.flat_shade_flags_for_varyings_v024 |= - vc5->prog.fs->prog_data.fs->shade_model_flags[0] & 0xfffff; - } } } -- cgit v1.2.3