radeonsi/gfx9: don't set deprecated field PARTIAL_ES_WAVE_ON
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Apr 2017 18:29:04 +0000 (20:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Apr 2017 11:08:05 +0000 (13:08 +0200)
Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index 193187b9a68c0645f77e9b2f2f89ce7187de9ff6..a354c6956b960960035fe0452ed57d1baa9d132d 100644 (file)
@@ -291,7 +291,8 @@ si_get_init_multi_vgt_param(struct si_screen *sscreen,
                /* Needed for 028B6C_DISTRIBUTION_MODE != 0 */
                if (sscreen->has_distributed_tess) {
                        if (key->u.uses_gs) {
-                               partial_es_wave = true;
+                               if (sscreen->b.chip_class <= VI)
+                                       partial_es_wave = true;
 
                                /* GPU hang workaround. */
                                if (sscreen->b.family == CHIP_TONGA ||
@@ -371,7 +372,7 @@ si_get_init_multi_vgt_param(struct si_screen *sscreen,
        }
 
        /* If SWITCH_ON_EOI is set, PARTIAL_ES_WAVE must be set too. */
-       if (ia_switch_on_eoi)
+       if (sscreen->b.chip_class <= VI && ia_switch_on_eoi)
                partial_es_wave = true;
 
        return S_028AA8_SWITCH_ON_EOP(ia_switch_on_eop) |