mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 09:40:40 +02:00
radeonsi: allocate sqtt and spm buffers in GTT
This makes reading from it much, much faster. It would be better to allocate them in VRAM, and do a copy before reading them, but for now using GTT will do the trick. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29073>
This commit is contained in:
parent
afd2cbeb28
commit
cd9f6f9e85
2 changed files with 2 additions and 2 deletions
|
|
@ -717,7 +717,7 @@ si_spm_init_bo(struct si_context *sctx)
|
|||
|
||||
sctx->spm.bo = ws->buffer_create(
|
||||
ws, size, 4096,
|
||||
RADEON_DOMAIN_VRAM,
|
||||
RADEON_DOMAIN_GTT,
|
||||
RADEON_FLAG_NO_INTERPROCESS_SHARING |
|
||||
RADEON_FLAG_GTT_WC |
|
||||
RADEON_FLAG_NO_SUBALLOC);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ static bool si_sqtt_init_bo(struct si_context *sctx)
|
|||
size += sctx->sqtt->buffer_size * (uint64_t)max_se;
|
||||
|
||||
sctx->sqtt->bo =
|
||||
ws->buffer_create(ws, size, 4096, RADEON_DOMAIN_VRAM,
|
||||
ws->buffer_create(ws, size, 4096, RADEON_DOMAIN_GTT,
|
||||
RADEON_FLAG_NO_INTERPROCESS_SHARING |
|
||||
RADEON_FLAG_GTT_WC | RADEON_FLAG_NO_SUBALLOC);
|
||||
if (!sctx->sqtt->bo)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue