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:

committed by
Marge Bot

parent
afd2cbeb28
commit
cd9f6f9e85
@@ -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)
|
||||
|
Reference in New Issue
Block a user