aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2015-08-11 15:29:52 +0000
committerAlex Deucher <[email protected]>2015-08-17 20:51:17 +0000
commit1ffd265243803ac5de9927dfc32541f41da2acf3 (patch)
tree332c38b8908f538fd7f6733dbd2241584a134266 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: fix UVD return code checking (diff)
downloadkernel-1ffd265243803ac5de9927dfc32541f41da2acf3.tar.gz
kernel-1ffd265243803ac5de9927dfc32541f41da2acf3.zip
drm/amdgpu: fix waiting for all fences before flipping
Otherwise we might see corruption. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 7a3a00fd339c..68beb40e283b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -828,7 +828,9 @@ struct amdgpu_flip_work {
uint64_t base;
struct drm_pending_vblank_event *event;
struct amdgpu_bo *old_rbo;
- struct fence *fence;
+ struct fence *excl;
+ unsigned shared_count;
+ struct fence **shared;
};