mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
radv: allocate the SQTT BO in GTT for faster readback
Reading VRAM from CPU is very slow. This is similar to the SPM BO, and generating RGP captures is now way faster. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38551>
This commit is contained in:
parent
d2ebe7719c
commit
da07f1ef3f
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ radv_sqtt_init_bo(struct radv_device *device)
|
|||
size += device->sqtt.buffer_size * (uint64_t)max_se;
|
||||
|
||||
struct radeon_winsys_bo *bo = NULL;
|
||||
result = radv_bo_create(device, NULL, size, 4096, RADEON_DOMAIN_VRAM,
|
||||
result = radv_bo_create(device, NULL, 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->sqtt.bo = bo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue