aboutsummaryrefslogtreecommitdiff
path: root/internal/lib/cvd_compute_client_multi_stage.py
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lib/cvd_compute_client_multi_stage.py')
-rw-r--r--internal/lib/cvd_compute_client_multi_stage.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/lib/cvd_compute_client_multi_stage.py b/internal/lib/cvd_compute_client_multi_stage.py
index e833ad9b..2c31b25c 100644
--- a/internal/lib/cvd_compute_client_multi_stage.py
+++ b/internal/lib/cvd_compute_client_multi_stage.py
@@ -55,6 +55,7 @@ from acloud.pull import pull
logger = logging.getLogger(__name__)
_DECOMPRESS_KERNEL_ARG = "-decompress_kernel=true"
+_GPU_ARG = "-gpu_mode=drm_virgl"
_DEFAULT_BRANCH = "aosp-master"
_FETCHER_BUILD_TARGET = "aosp_cf_x86_phone-userdebug"
_FETCHER_NAME = "fetch_cvd"
@@ -290,6 +291,9 @@ class CvdComputeClient(android_compute_client.AndroidComputeClient):
if decompress_kernel:
launch_cvd_args.append(_DECOMPRESS_KERNEL_ARG)
+ if self._gpu:
+ launch_cvd_args.append(_GPU_ARG)
+
return launch_cvd_args
@staticmethod