mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
winsys/amdgpu: don't return a value from cs_add_buffer
It's unused. The return value is only used with the radeon winsys. Reviewed-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26547>
This commit is contained in:
parent
390f26eefb
commit
c902b9e1d9
2 changed files with 2 additions and 4 deletions
|
|
@ -783,7 +783,7 @@ static unsigned amdgpu_cs_add_buffer(struct radeon_cmdbuf *rcs,
|
|||
*/
|
||||
if (bo == cs->last_added_bo &&
|
||||
(usage & cs->last_added_bo_usage) == usage)
|
||||
return cs->last_added_bo_index;
|
||||
return 0;
|
||||
|
||||
if (!(bo->base.usage & RADEON_FLAG_SPARSE)) {
|
||||
if (!bo->bo) {
|
||||
|
|
@ -818,8 +818,7 @@ static unsigned amdgpu_cs_add_buffer(struct radeon_cmdbuf *rcs,
|
|||
}
|
||||
|
||||
cs->last_added_bo = bo;
|
||||
cs->last_added_bo_index = index;
|
||||
return index;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws,
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ struct amdgpu_cs_context {
|
|||
int16_t *buffer_indices_hashlist;
|
||||
|
||||
struct amdgpu_winsys_bo *last_added_bo;
|
||||
unsigned last_added_bo_index;
|
||||
unsigned last_added_bo_usage;
|
||||
|
||||
struct amdgpu_fence_list fence_dependencies;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue