radeonsi: small fix in SPI state
authorMarek Olšák <marek.olsak@amd.com>
Fri, 6 Feb 2015 17:00:50 +0000 (18:00 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 17 Feb 2015 16:31:48 +0000 (17:31 +0100)
Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 27ccc8e5034194d91169379aadb5f493cf95a5db..dea99ea92b81ef2a00a65fbbc9d1f6d61c6f4658 100644 (file)
@@ -662,8 +662,10 @@ bcolor:
                }
 
                if (j == vsinfo->num_outputs) {
-                       /* No corresponding output found, load defaults into input */
-                       tmp |= S_028644_OFFSET(0x20);
+                       /* No corresponding output found, load defaults into input.
+                        * Don't set any other bits.
+                        * (FLAT_SHADE=1 completely changes behavior) */
+                       tmp = S_028644_OFFSET(0x20);
                }
 
                si_pm4_set_reg(pm4,