mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
16fb659272
When "--gpu-render-server path=<path>" is specified, start the render server shipped with virglrenderer and initialize virglrenderer with VIRGLRENDERER_MULTI_PROCESS flag. The flag makes virgl_renderer_context_create_with_flags create proxy contexts instead of venus contexts. Each proxy context requests the render server to fork a subprocess and executes GPU commands in the subprocess. BUG=b:177267762 TEST=run vk and gl apps on volteer Change-Id: If5e2dc3353572cadb60b0c25a3e0ad14f633db91 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3283508 Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Chia-I Wu <olv@google.com>
12 lines
406 B
Text
12 lines
406 B
Text
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
@include /usr/share/policy/crosvm/gpu_common.policy
|
|
|
|
# allow fork() and waitpid()
|
|
clone: 1
|
|
wait4: 1
|
|
|
|
# allow socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC)
|
|
socketpair: arg0 == AF_UNIX && arg1 == SOCK_SEQPACKET|SOCK_CLOEXEC && arg2 == 0
|