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_mode.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_mode.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index b1ae33bdbd84..7b0eff7d060b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |||
@@ -591,10 +591,10 @@ int amdgpu_align_pitch(struct amdgpu_device *adev, int width, int bpp, bool tile | |||
591 | void amdgpu_print_display_setup(struct drm_device *dev); | 591 | void amdgpu_print_display_setup(struct drm_device *dev); |
592 | int amdgpu_modeset_create_props(struct amdgpu_device *adev); | 592 | int amdgpu_modeset_create_props(struct amdgpu_device *adev); |
593 | int amdgpu_crtc_set_config(struct drm_mode_set *set); | 593 | int amdgpu_crtc_set_config(struct drm_mode_set *set); |
594 | int amdgpu_crtc_page_flip(struct drm_crtc *crtc, | 594 | int amdgpu_crtc_page_flip_target(struct drm_crtc *crtc, |
595 | struct drm_framebuffer *fb, | 595 | struct drm_framebuffer *fb, |
596 | struct drm_pending_vblank_event *event, | 596 | struct drm_pending_vblank_event *event, |
597 | uint32_t page_flip_flags); | 597 | uint32_t page_flip_flags, uint32_t target); |
598 | extern const struct drm_mode_config_funcs amdgpu_mode_funcs; | 598 | extern const struct drm_mode_config_funcs amdgpu_mode_funcs; |
599 | 599 | ||
600 | #endif | 600 | #endif |