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:
Marek Olšák 2023-12-01 02:55:29 -05:00 committed by Marge Bot
parent 390f26eefb
commit c902b9e1d9
2 changed files with 2 additions and 4 deletions

View file

@ -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,

View file

@ -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;