Module: Mesa Branch: master Commit: 9322974ec716b8c3b2e326559f663ff087daa38c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9322974ec716b8c3b2e326559f663ff087daa38c
Author: Marek Olšák <[email protected]> Date: Fri Jun 8 21:48:23 2018 -0400 radeonsi: always put persistent buffers into GTT on radeon This improves performance for certain games. Cc: 18.1 <[email protected]> Tested-by: Dieter Nützel <[email protected]> --- src/gallium/drivers/radeonsi/si_buffer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c index 2d68edc340..0546fa9d33 100644 --- a/src/gallium/drivers/radeonsi/si_buffer.c +++ b/src/gallium/drivers/radeonsi/si_buffer.c @@ -151,8 +151,12 @@ void si_init_resource_fields(struct si_screen *sscreen, * Write-combined CPU mappings are fine, the kernel * ensures all CPU writes finish before the GPU * executes a command stream. + * + * radeon doesn't have good BO move throttling, so put all + * persistent buffers into GTT to prevent VRAM CPU page faults. */ - if (!sscreen->info.kernel_flushes_hdp_before_ib) + if (!sscreen->info.kernel_flushes_hdp_before_ib || + sscreen->info.drm_major == 2) res->domains = RADEON_DOMAIN_GTT; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
