mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
libdrm/iris: synchronization
The Morph browser seems to access libdrm multi-threaded. Put this into a separate commit in order to revert it easily. issue #4664
This commit is contained in:
parent
25c1cdec95
commit
c0367fc30e
@ -536,6 +536,7 @@ class Drm_call
|
||||
Genode::Env &_env { *vfs_gpu_env() };
|
||||
Genode::Heap _heap { _env.ram(), _env.rm() };
|
||||
Gpu::Connection _gpu_session { _env };
|
||||
Genode::Mutex _drm_mutex { };
|
||||
|
||||
Gpu::Info_intel const &_gpu_info {
|
||||
*_gpu_session.attached_info<Gpu::Info_intel>() };
|
||||
@ -1363,6 +1364,8 @@ class Drm_call
|
||||
|
||||
int ioctl(unsigned long request, void *arg)
|
||||
{
|
||||
Genode::Mutex::Guard guard { _drm_mutex };
|
||||
|
||||
bool const device = device_ioctl(request);
|
||||
return device ? _device_ioctl(device_number(request), arg)
|
||||
: _generic_ioctl(command_number(request), arg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user