mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 09:50:28 +01:00
radv: allocate the SPM BO in GTT for faster readback
Reading VRAM from CPU is very slow. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34467>
This commit is contained in:
parent
af8105d085
commit
e86e0fc525
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ radv_spm_init_bo(struct radv_device *device)
|
|||
VkResult result;
|
||||
|
||||
struct radeon_winsys_bo *bo = NULL;
|
||||
result = radv_bo_create(device, NULL, device->spm.buffer_size, 4096, RADEON_DOMAIN_VRAM,
|
||||
result = radv_bo_create(device, NULL, device->spm.buffer_size, 4096, RADEON_DOMAIN_GTT,
|
||||
RADEON_FLAG_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING | RADEON_FLAG_ZERO_VRAM,
|
||||
RADV_BO_PRIORITY_SCRATCH, 0, true, &bo);
|
||||
device->spm.bo = bo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue