diff options
| author | Christian König <[email protected]> | 2016-05-03 13:17:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-05-11 16:31:27 +0000 |
| commit | aa3b73f67bda66637f17c3d847a8a36d3649f3f8 (patch) | |
| tree | f3025d5a5fa4a8ec850641197d62eaf8010a4ac7 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amd/amdgpu: Added more named DRM info messages for debugging (diff) | |
| download | kernel-aa3b73f67bda66637f17c3d847a8a36d3649f3f8.tar.gz kernel-aa3b73f67bda66637f17c3d847a8a36d3649f3f8.zip | |
drm/amdgpu: use fence_context to judge ctx switch v2
Use of the ctx pointer is not safe, because they are likely already
be assigned to another ctx when doing comparing.
v2: recreate from scratch, avoid all unnecessary changes.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Monk.Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -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 1a065961981a..87ec1136a0bb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -741,7 +741,7 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device *adev, ib->length_dw = chunk_ib->ib_bytes / 4; ib->flags = chunk_ib->flags; - ib->ctx = parser->ctx; + ib->ctx = parser->ctx->rings[ring->idx].entity.fence_context; j++; } |
