summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-11 23:20:06 -0400
committerMarek Olšák <[email protected]>2018-07-16 13:32:33 -0400
commit7346e5296ee7c7add6d8230283639ecdbcd3d2a4 (patch)
treed1fab1842c1f4481824ad62623fd72eb5471b538 /src/gallium/winsys
parentcaf41fb96d7e376a25499cf5e8f8c2ec89848439 (diff)
winsys/amdgpu: always update gfx_bo_list_counter
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index 9aa489adaa4..77b372d2cea 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
@@ -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 {