commit | 2056e4a777bd0eed88ff2762977955b2f2bf2f1c | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed Dec 27 15:12:37 2017 -0800 |
committer | Eric Anholt <eric@anholt.net> | Wed Jan 03 14:25:23 2018 -0800 |
tree | 619d3ce2823d1880e9cd787be8bf9488b8c593d2 | |
parent | 476469955225e15f454e01dc80047dd5fa5c9f97 [diff] |
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.