diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-08-03 23:39:37 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-10 14:28:06 -0400 |
commit | 325cbba19a32b172300fc87cd4da7c45c4f9e0ba (patch) | |
tree | 0764165bb999f3f51b4984f6d0505020ea69a920 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | c229bfbbd04ac112bd15331d3a06d12e4e86a45c (diff) |
drm/amdgpu: Provide page_flip_target hook
Now we can program a flip during a vertical blank period, if it's the
one targeted by the flip (or a later one). This allows simplifying
amdgpu_flip_work_func considerably.
agd: update dce_virtual.c as well.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3d128c16334d..c54f5b962b80 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -730,10 +730,11 @@ void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev, | |||
730 | */ | 730 | */ |
731 | 731 | ||
732 | struct amdgpu_flip_work { | 732 | struct amdgpu_flip_work { |
733 | struct work_struct flip_work; | 733 | struct delayed_work flip_work; |
734 | struct work_struct unpin_work; | 734 | struct work_struct unpin_work; |
735 | struct amdgpu_device *adev; | 735 | struct amdgpu_device *adev; |
736 | int crtc_id; | 736 | int crtc_id; |
737 | u32 target_vblank; | ||
737 | uint64_t base; | 738 | uint64_t base; |
738 | struct drm_pending_vblank_event *event; | 739 | struct drm_pending_vblank_event *event; |
739 | struct amdgpu_bo *old_rbo; | 740 | struct amdgpu_bo *old_rbo; |