This fixes direct scanout VRR. As direct scanout buffers are not part of the swapchain, we would mistakenly union instead of subtract the damage meaning it will just accumulate indefinitely. The reason for this existing in the first place is for compositors that might want to sidestep scene and commit their own buffers to the output. In this case, scene could theoretically acknowledge that and update the damage. Except, this really didn't work because WLR_OUTPUT_STATE_DAMAGE would need to be defined which is optional. This patch also properly acknowledges commits without damage. In the use case of a weird compositor that might want to sidestep scene, they can just trash the damage ring themselves. Fixes: #3871master
parent
3e1358fec9
commit
14e1987f50
Loading…
Reference in new issue