From e0f3971280ebe07405e76a15df18ee0e51ae3d68 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 26 Jun 2018 01:00:37 -0700 Subject: [PATCH] iris: lightmodel flat --- src/gallium/drivers/iris/iris_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 5e5af76ffb6..aeac332f024 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1873,6 +1873,9 @@ iris_populate_fs_key(const struct iris_context *ice, key->replicate_alpha = fb->nr_cbufs > 1 && (zsa->alpha.enabled || blend->alpha_to_coverage); + /* XXX: only bother if COL0/1 are read */ + key->flat_shade = rast->flatshade; + // key->force_dual_color_blend for unigine #if 0 if (cso_rast->multisample) { -- 2.30.2