winsys/amdgpu: always update gfx_bo_list_counter
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
caf41fb96d
commit
7346e5296e
|
@ -1343,9 +1343,6 @@ void amdgpu_cs_submit_ib(void *job, int thread_index)
|
|||
++num_handles;
|
||||
}
|
||||
|
||||
if (acs->ring_type == RING_GFX)
|
||||
ws->gfx_bo_list_counter += cs->num_real_buffers;
|
||||
|
||||
if (num_handles) {
|
||||
r = amdgpu_bo_list_create(ws->dev, num_handles,
|
||||
handles, flags, &bo_list);
|
||||
|
@ -1362,6 +1359,9 @@ bo_list_error:
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (acs->ring_type == RING_GFX)
|
||||
ws->gfx_bo_list_counter += cs->num_real_buffers;
|
||||
|
||||
if (acs->ctx->num_rejected_cs) {
|
||||
r = -ECANCELED;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue