radv/gfx10: enable all CUs if NGG is never used

Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3382>
This commit is contained in:
Samuel Pitoiset
2020-01-13 10:37:01 +01:00
committed by Marge Bot
parent 5ff12322c9
commit 53b50be35c
+5 -2
View File
@@ -327,8 +327,11 @@ si_emit_graphics(struct radv_physical_device *physical_device,
}
}
/* Don't use late alloc for NGG on Navi14 due to a hw bug. */
if (physical_device->rad_info.family == CHIP_NAVI14) {
/* Don't use late alloc for NGG on Navi14 due to a hw bug.
* If NGG is never used, enable all CUs.
*/
if (!physical_device->use_ngg ||
physical_device->rad_info.family == CHIP_NAVI14) {
late_alloc_limit_gs = 0;
cu_mask_gs = 0xffff;
}