diff options
author | Marek Olšák <[email protected]> | 2018-06-08 21:48:23 -0400 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-06-20 09:44:17 -0700 |
commit | decb031bd8590813b1e88a9dbd2c30ccba5bb998 (patch) | |
tree | 76995bfa531de9503ed9e09350a2f2dd6ede8d0c /src | |
parent | e979b79cecb347b045c3b3eca8678c30bf450fa6 (diff) |
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]>
(cherry picked from commit 9322974ec716b8c3b2e326559f663ff087daa38c)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c index beb0557e430..a22d7f7e457 100644 --- a/src/gallium/drivers/radeonsi/si_buffer.c +++ b/src/gallium/drivers/radeonsi/si_buffer.c @@ -150,8 +150,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; } |