gfxstream: host: add external sync feature
Only enabled in the meson build for now, likely to
only work on certain Linux hosts + guest setups in
the future.
BUG=350965057
TEST=compile
Change-Id: I021014a744bc7c569eefe4d5fb6944f38b8552bc
diff --git a/host/virtio-gpu-gfxstream-renderer.cpp b/host/virtio-gpu-gfxstream-renderer.cpp
index 7e46427..5ff4904 100644
--- a/host/virtio-gpu-gfxstream-renderer.cpp
+++ b/host/virtio-gpu-gfxstream-renderer.cpp
@@ -2502,6 +2502,8 @@
GFXSTREAM_SET_FEATURE_ON_CONDITION(
&features, ExternalBlob,
renderer_flags & STREAM_RENDERER_FLAGS_USE_EXTERNAL_BLOB);
+ GFXSTREAM_SET_FEATURE_ON_CONDITION(&features, VulkanExternalSync,
+ renderer_flags & STREAM_RENDERER_FLAGS_VULKAN_EXTERNAL_SYNC);
GFXSTREAM_SET_FEATURE_ON_CONDITION(
&features, GlAsyncSwap, false);
GFXSTREAM_SET_FEATURE_ON_CONDITION(
@@ -2779,6 +2781,10 @@
return -EINVAL;
}
+#if GFXSTREAM_UNSTABLE_VULKAN_EXTERNAL_SYNC
+ renderer_flags |= STREAM_RENDERER_FLAGS_VULKAN_EXTERNAL_SYNC;
+#endif
+
gfxstream::host::FeatureSet features;
int ret = parseGfxstreamFeatures(renderer_flags, renderer_features_str, features);
if (ret) {