drm/amdgpu: use fence_context to judge ctx switch v2
authorChristian König <christian.koenig@amd.com>
Tue, 3 May 2016 13:17:40 +0000 (15:17 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 16:31:27 +0000 (12:31 -0400)
commitaa3b73f67bda66637f17c3d847a8a36d3649f3f8
treef3025d5a5fa4a8ec850641197d62eaf8010a4ac7
parent822b2cef4d9ffe680b880ec39734ad8a1d178b02
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 <christian.koenig@amd.com>
Reviewed-by: Monk.Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c