summaryrefslogtreecommitdiff
path: root/src/amdgpu_drv.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-02-12 17:57:17 +0100
committerMichel Dänzer <michel@daenzer.net>2019-02-22 17:45:04 +0100
commitbd090f389f19f1f4a3f662ffdd891345a3899539 (patch)
tree5945a61a0cc497c353a67d22afdaed1144395c76 /src/amdgpu_drv.h
parentd9be5d712d469595e1e610f7294bc670ca3b1985 (diff)
Call amdgpu_present_set_screen_vrr from amdgpu_vrr_property_update
If the window is currently flipping. This might make a difference when the property gets disabled: Variable refresh will now be disabled immediately in that case, instead of only when the window can no longer use page flipping at all. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Diffstat (limited to 'src/amdgpu_drv.h')
-rw-r--r--src/amdgpu_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h
index 7b3bace..0ae171f 100644
--- a/src/amdgpu_drv.h
+++ b/src/amdgpu_drv.h
@@ -361,6 +361,7 @@ void AMDGPUWindowExposures_oneshot(WindowPtr pWin, RegionPtr pRegion
);
/* amdgpu_present.c */
+void amdgpu_present_set_screen_vrr(ScrnInfoPtr scrn, Bool vrr_enabled);
Bool amdgpu_present_screen_init(ScreenPtr screen);
/* amdgpu_sync.c */