mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-04 08:30:54 +00:00
libdrm/lima: always map BO with ID 1
This commit is contained in:
parent
d49700f562
commit
cf43e0c3da
@ -797,6 +797,22 @@ class Lima::Call
|
|||||||
|
|
||||||
_gpu_context_space.apply<Gpu_context>(ctx_id, [&] (Gpu_context &gc) {
|
_gpu_context_space.apply<Gpu_context>(ctx_id, [&] (Gpu_context &gc) {
|
||||||
|
|
||||||
|
/* XXX always map buffer id 1 to prevent GP MMU faults */
|
||||||
|
{
|
||||||
|
uint32_t const handle = 1;
|
||||||
|
Buffer_space::Id const id = { .value = handle };
|
||||||
|
if (!gc.buffer_space_contains(id)) {
|
||||||
|
|
||||||
|
(void)_apply_handle(handle, [&] (Gpu::Vram const &v) {
|
||||||
|
Gpu::Vram_capability cap = _main_ctx->export_vram(v.id());
|
||||||
|
if (gc.import_vram(cap, v) == nullptr) {
|
||||||
|
Genode::error("could force mapping of buffer ", handle);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if we have access to all needed buffer objects and
|
* Check if we have access to all needed buffer objects and
|
||||||
* if not import them from the main context that normaly performs
|
* if not import them from the main context that normaly performs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user