Kernel/Graphics: Disable double buffering for the VirtIO driver

The performance that we achieve from this technique is visually worse
compared to turning off this feature, so let's not use this until we
figure out why it happens.
This commit is contained in:
Liav A 2022-12-16 15:37:32 +02:00 committed by Sam Atkins
commit 12d4bbbd11
Notes: sideshowbarker 2024-07-17 03:27:40 +09:00
3 changed files with 12 additions and 28 deletions

View file

@ -56,7 +56,6 @@ ErrorOr<void> VirtIOGraphicsAdapter::mode_set_resolution(Badge<VirtIODisplayConn
VERIFY(connector.scanout_id() < VIRTIO_GPU_MAX_SCANOUTS);
auto rounded_buffer_size = TRY(calculate_framebuffer_size(width, height));
TRY(attach_physical_range_to_framebuffer(connector, true, 0, rounded_buffer_size));
TRY(attach_physical_range_to_framebuffer(connector, false, rounded_buffer_size, rounded_buffer_size));
return {};
}