mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
winsys/amdgpu: rws instead of ws for radeon_winsys
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27968>
This commit is contained in:
parent
f2275eed44
commit
c7e8486130
2 changed files with 8 additions and 8 deletions
|
|
@ -1465,13 +1465,13 @@ no_slab:
|
|||
}
|
||||
|
||||
static struct pb_buffer_lean *
|
||||
amdgpu_buffer_create(struct radeon_winsys *ws,
|
||||
amdgpu_buffer_create(struct radeon_winsys *rws,
|
||||
uint64_t size,
|
||||
unsigned alignment,
|
||||
enum radeon_bo_domain domain,
|
||||
enum radeon_bo_flag flags)
|
||||
{
|
||||
struct pb_buffer_lean * res = amdgpu_bo_create(amdgpu_winsys(ws), size, alignment, domain,
|
||||
struct pb_buffer_lean * res = amdgpu_bo_create(amdgpu_winsys(rws), size, alignment, domain,
|
||||
flags);
|
||||
return res;
|
||||
}
|
||||
|
|
@ -1783,16 +1783,16 @@ uint64_t amdgpu_bo_get_va(struct pb_buffer_lean *buf)
|
|||
}
|
||||
}
|
||||
|
||||
static void amdgpu_buffer_destroy(struct radeon_winsys *ws, struct pb_buffer_lean *buf)
|
||||
static void amdgpu_buffer_destroy(struct radeon_winsys *rws, struct pb_buffer_lean *buf)
|
||||
{
|
||||
struct amdgpu_winsys_bo *bo = amdgpu_winsys_bo(buf);
|
||||
|
||||
if (bo->type == AMDGPU_BO_SLAB_ENTRY)
|
||||
amdgpu_bo_slab_destroy(ws, buf);
|
||||
amdgpu_bo_slab_destroy(rws, buf);
|
||||
else if (bo->type == AMDGPU_BO_SPARSE)
|
||||
amdgpu_bo_sparse_destroy(ws, buf);
|
||||
amdgpu_bo_sparse_destroy(rws, buf);
|
||||
else
|
||||
amdgpu_bo_destroy_or_cache(ws, buf);
|
||||
amdgpu_bo_destroy_or_cache(rws, buf);
|
||||
}
|
||||
|
||||
void amdgpu_bo_init_functions(struct amdgpu_screen_winsys *sws)
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ radeon_to_amdgpu_priority(enum radeon_ctx_priority radeon_priority)
|
|||
}
|
||||
}
|
||||
|
||||
static struct radeon_winsys_ctx *amdgpu_ctx_create(struct radeon_winsys *ws,
|
||||
static struct radeon_winsys_ctx *amdgpu_ctx_create(struct radeon_winsys *rws,
|
||||
enum radeon_ctx_priority priority,
|
||||
bool allow_context_lost)
|
||||
{
|
||||
|
|
@ -277,7 +277,7 @@ static struct radeon_winsys_ctx *amdgpu_ctx_create(struct radeon_winsys *ws,
|
|||
if (!ctx)
|
||||
return NULL;
|
||||
|
||||
ctx->ws = amdgpu_winsys(ws);
|
||||
ctx->ws = amdgpu_winsys(rws);
|
||||
ctx->reference.count = 1;
|
||||
ctx->allow_context_lost = allow_context_lost;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue