radeonsi/gfx9: don't set PA_SC_RASTER_CONFIG*
The registers don't exist on GFX9. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -4081,24 +4081,28 @@ static void si_init_config(struct si_context *sctx)
|
|||||||
raster_config_1 = 0x00000000;
|
raster_config_1 = 0x00000000;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr,
|
if (sctx->b.chip_class <= VI) {
|
||||||
"radeonsi: Unknown GPU, using 0 for raster_config\n");
|
fprintf(stderr,
|
||||||
raster_config = 0x00000000;
|
"radeonsi: Unknown GPU, using 0 for raster_config\n");
|
||||||
raster_config_1 = 0x00000000;
|
raster_config = 0x00000000;
|
||||||
|
raster_config_1 = 0x00000000;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Always use the default config when all backends are enabled
|
if (sctx->b.chip_class <= VI) {
|
||||||
* (or when we failed to determine the enabled backends).
|
if (!rb_mask || util_bitcount(rb_mask) >= num_rb) {
|
||||||
*/
|
/* Always use the default config when all backends are enabled
|
||||||
if (!rb_mask || util_bitcount(rb_mask) >= num_rb) {
|
* (or when we failed to determine the enabled backends).
|
||||||
si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG,
|
*/
|
||||||
raster_config);
|
si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG,
|
||||||
if (sctx->b.chip_class >= CIK)
|
raster_config);
|
||||||
si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1,
|
if (sctx->b.chip_class >= CIK)
|
||||||
raster_config_1);
|
si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1,
|
||||||
} else {
|
raster_config_1);
|
||||||
si_write_harvested_raster_configs(sctx, pm4, raster_config, raster_config_1);
|
} else {
|
||||||
|
si_write_harvested_raster_configs(sctx, pm4, raster_config, raster_config_1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
si_pm4_set_reg(pm4, R_028204_PA_SC_WINDOW_SCISSOR_TL, S_028204_WINDOW_OFFSET_DISABLE(1));
|
si_pm4_set_reg(pm4, R_028204_PA_SC_WINDOW_SCISSOR_TL, S_028204_WINDOW_OFFSET_DISABLE(1));
|
||||||
|
Reference in New Issue
Block a user