aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 13c5978ac69b..737c8e3e3a74 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -126,7 +126,6 @@ int amdgpu_ib_schedule(struct amdgpu_device *adev, unsigned num_ibs,
126 struct amdgpu_ring *ring; 126 struct amdgpu_ring *ring;
127 struct amdgpu_ctx *ctx, *old_ctx; 127 struct amdgpu_ctx *ctx, *old_ctx;
128 struct amdgpu_vm *vm; 128 struct amdgpu_vm *vm;
129 uint64_t sequence;
130 unsigned i; 129 unsigned i;
131 int r = 0; 130 int r = 0;
132 131
@@ -199,12 +198,9 @@ int amdgpu_ib_schedule(struct amdgpu_device *adev, unsigned num_ibs,
199 return r; 198 return r;
200 } 199 }
201 200
202 sequence = amdgpu_enable_scheduler ? ib->sequence : 0;
203
204 if (!amdgpu_enable_scheduler && ib->ctx) 201 if (!amdgpu_enable_scheduler && ib->ctx)
205 ib->sequence = amdgpu_ctx_add_fence(ib->ctx, ring, 202 ib->sequence = amdgpu_ctx_add_fence(ib->ctx, ring,
206 &ib->fence->base, 203 &ib->fence->base);
207 sequence);
208 204
209 /* wrap the last IB with fence */ 205 /* wrap the last IB with fence */
210 if (ib->user) { 206 if (ib->user) {