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/dce_v11_0.c | |
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/dce_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c index cfadd79d2580..7d8417ae0ce6 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | |||
@@ -2755,7 +2755,7 @@ static const struct drm_crtc_funcs dce_v11_0_crtc_funcs = { | |||
2755 | .gamma_set = dce_v11_0_crtc_gamma_set, | 2755 | .gamma_set = dce_v11_0_crtc_gamma_set, |
2756 | .set_config = amdgpu_crtc_set_config, | 2756 | .set_config = amdgpu_crtc_set_config, |
2757 | .destroy = dce_v11_0_crtc_destroy, | 2757 | .destroy = dce_v11_0_crtc_destroy, |
2758 | .page_flip = amdgpu_crtc_page_flip, | 2758 | .page_flip_target = amdgpu_crtc_page_flip_target, |
2759 | }; | 2759 | }; |
2760 | 2760 | ||
2761 | static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode) | 2761 | static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode) |