From 07053d32dd7305f164207e5aca36dc646c1c7975 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Mon, 19 Dec 2022 17:28:37 +0100 Subject: [PATCH] Kernel/Graphics: Increase VirtIO GPU transfer buffer size to 4MiB This is necessary to allow transferring frame buffers larger than ~500x500 pixels back to user space. Until the buffer management is improved this allows us to at least test the existing game ports. --- Kernel/Graphics/VirtIOGPU/GPU3DDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Graphics/VirtIOGPU/GPU3DDevice.h b/Kernel/Graphics/VirtIOGPU/GPU3DDevice.h index 39599f9a72..15b8613154 100644 --- a/Kernel/Graphics/VirtIOGPU/GPU3DDevice.h +++ b/Kernel/Graphics/VirtIOGPU/GPU3DDevice.h @@ -139,7 +139,7 @@ private: HashMap> m_context_state_lookup; // Memory management for backing buffers NonnullOwnPtr m_transfer_buffer_region; - constexpr static size_t NUM_TRANSFER_REGION_PAGES = 256; + constexpr static size_t NUM_TRANSFER_REGION_PAGES = 1024; }; }