iris: lightmodel flat
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 26 Jun 2018 08:00:37 +0000 (01:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 5e5af76ffb6b5673d3eb30714fb1807629b9981c..aeac332f02427682b6b692f5a74c31cd330f905e 100644 (file)
@@ -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) {