mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
radeonsi: always put persistent buffers into GTT on radeon
This improves performance for certain games. Cc: 18.1 <mesa-stable@lists.freedesktop.org> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
ffbbc008be
commit
9322974ec7
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue