mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 16:14:23 +00:00
Kernel: Enable Write-Combine for FramebufferDevice
This enables much faster writing to the userspace mapped framebuffer, if supported by the hardware.
This commit is contained in:
@@ -59,6 +59,8 @@ ErrorOr<Memory::Region*> FramebufferDevice::mmap(Process& process, OpenFileDescr
|
||||
"Framebuffer",
|
||||
prot,
|
||||
shared));
|
||||
if (auto result = m_userspace_framebuffer_region->set_write_combine(true); result.is_error())
|
||||
dbgln("FramebufferDevice: Failed to enable Write-Combine on Framebuffer: {}", result.error());
|
||||
return m_userspace_framebuffer_region;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user