From: Kenneth Graunke Date: Tue, 26 Jun 2018 08:00:37 +0000 (-0700) Subject: iris: lightmodel flat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0f3971280ebe07405e76a15df18ee0e51ae3d68;p=mesa.git iris: lightmodel flat --- 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) {