diff options
author | Eric Anholt <[email protected]> | 2017-12-27 15:12:37 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-03 14:25:23 -0800 |
commit | 2056e4a777bd0eed88ff2762977955b2f2bf2f1c (patch) | |
tree | 619d3ce2823d1880e9cd787be8bf9488b8c593d2 /src/broadcom/compiler/vir.c | |
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.
Diffstat (limited to 'src/broadcom/compiler/vir.c')
-rw-r--r-- | src/broadcom/compiler/vir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index d95a150c720..2589c7f554d 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -716,8 +716,6 @@ v3d_set_fs_prog_data_inputs(struct v3d_compile *c, memcpy(prog_data->flat_shade_flags, c->flat_shade_flags, sizeof(c->flat_shade_flags)); - memcpy(prog_data->shade_model_flags, c->shade_model_flags, - sizeof(c->shade_model_flags)); } uint64_t *v3d_compile_fs(const struct v3d_compiler *compiler, |