summaryrefslogtreecommitdiff
path: root/src/amdgpu_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/amdgpu_drv.h')
-rw-r--r--src/amdgpu_drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h
index ed9241b..a212b40 100644
--- a/src/amdgpu_drv.h
+++ b/src/amdgpu_drv.h
@@ -164,6 +164,7 @@ typedef enum {
OPTION_SHADOW_PRIMARY,
OPTION_TEAR_FREE,
OPTION_DELETE_DP12,
+ OPTION_VARIABLE_REFRESH,
} AMDGPUOpts;
static inline ScreenPtr
@@ -239,6 +240,10 @@ struct amdgpu_device_priv {
Bool sprite_visible;
};
+struct amdgpu_window_priv {
+ Bool variable_refresh;
+};
+
extern DevScreenPrivateKeyRec amdgpu_device_private_key;
typedef struct {
@@ -270,6 +275,7 @@ typedef struct {
Bool use_glamor;
Bool force_accel;
Bool shadow_primary;
+ Bool vrr_support;
int tear_free;
/* general */
@@ -346,6 +352,7 @@ typedef struct {
Bool amdgpu_dri3_screen_init(ScreenPtr screen);
/* amdgpu_kms.c */
+Bool amdgpu_window_has_variable_refresh(WindowPtr win);
Bool amdgpu_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id,
PixmapPtr src_pix, BoxRec extents);
void AMDGPUWindowExposures_oneshot(WindowPtr pWin, RegionPtr pRegion