From 4ff6150f1b760b0674f32b44bbc58e5c2971ffa4 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 30 Apr 2022 13:55:00 +0300 Subject: WindowServer: Use FB_IOCTL_FLUSH_HEAD to flush a framebuffer if possible This ioctl is more appropriate when the hardware supports flushing of the entire framebuffer, so we use that instead of the previous default FB_IOCTL_FLUSH_HEAD_BUFFERS ioctl. --- Kernel/API/FB.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Kernel') diff --git a/Kernel/API/FB.h b/Kernel/API/FB.h index 2917806122..ee57eece27 100644 --- a/Kernel/API/FB.h +++ b/Kernel/API/FB.h @@ -98,4 +98,9 @@ ALWAYS_INLINE int fb_flush_buffers(int fd, int index, FBRect const* rects, unsig return ioctl(fd, FB_IOCTL_FLUSH_HEAD_BUFFERS, &fb_flush_rects); } +ALWAYS_INLINE int fb_flush_head(int fd) +{ + return ioctl(fd, FB_IOCTL_FLUSH_HEAD, nullptr); +} + __END_DECLS -- cgit v1.2.3