Skip to content
Commit 59959ace authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen
Browse files

vulkan/wsi: Add X11 adaptive sync support based on dri options.

The dri options are optional. When the dri options are not provided
the WSI will not  use adaptive sync.

FWIW I think for xf86-video-amdgpu this still requires an X11 config
option, so only people who opt in can get possible regressions from this.

So then the remaining question is: why do this in the WSI?

It has been suggested in another MR that the application sets this.
However, I disagree with that as I don't think we'll ever get a
reasonable set of applications setting it.

The next questions is whether this can be a layer. It definitely
can be as implemented now. However I have some ideas for future
improvements (e.g. show frames twice to increase fps range) that
are more messy to do cleanly without WSI support.

Of course, most of the WSI could almost be a layer, but I think
this still fits best in the WSI.
parent 2c7b4210
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment