mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +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:
parent
6e46e21c42
commit
4383b26faa
Notes:
sideshowbarker
2024-07-17 20:11:51 +09:00
Author: https://github.com/tomuta
Commit: 4383b26faa
Pull-request: https://github.com/SerenityOS/serenity/pull/12140
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue