diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-03-28 11:00:03 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:55:32 -0400 |
commit | 2a9ceb8daab01a4ee27383e4d344e4a8b781c165 (patch) | |
tree | 64a14c7e0998df17c0f5d2a9cc5df93100bd5dc8 /drivers/gpu/drm/amd | |
parent | 23e0563e48f7e9e98003df5b43d6a48e162782c6 (diff) | |
download | op-kernel-dev-2a9ceb8daab01a4ee27383e4d344e4a8b781c165.zip op-kernel-dev-2a9ceb8daab01a4ee27383e4d344e4a8b781c165.tar.gz |
drm/amdgpu:fix cs_ib_fill
should use chunk_ib instead of ib, otherwise the logic
is incorrect.
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Ken Wang <Qingqing.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index bf64a0d..63d6905 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; |