From 2a9ceb8daab01a4ee27383e4d344e4a8b781c165 Mon Sep 17 00:00:00 2001 From: Monk Liu Date: Tue, 28 Mar 2017 11:00:03 +0800 Subject: [PATCH] drm/amdgpu:fix cs_ib_fill should use chunk_ib instead of ib, otherwise the logic is incorrect. Signed-off-by: Monk Liu Reviewed-by: Ken Wang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index bf64a0d1c1f4..63d690542761 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -909,7 +909,7 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device *adev, if (r) return r; - if (ib->flags & AMDGPU_IB_FLAG_PREAMBLE) { + if (chunk_ib->flags & AMDGPU_IB_FLAG_PREAMBLE) { parser->job->preamble_status |= AMDGPU_PREAMBLE_IB_PRESENT; if (!parser->ctx->preamble_presented) { parser->job->preamble_status |= AMDGPU_PREAMBLE_IB_PRESENT_FIRST; -- 2.20.1