Create stream_renderer_device_id interface Exposes a stream_renderer_device_id which can be reused across functions or params. Existing structure layout is the same, so no FFI concern. Bug: b/249823013 Test: presubmit Change-Id: I92c51c2e1d3a6551b040c63b33e5fb7cbcb57749
diff --git a/stream-servers/virtio-gpu-gfxstream-renderer.cpp b/stream-servers/virtio-gpu-gfxstream-renderer.cpp index c1cbecf..4b93b99 100644 --- a/stream-servers/virtio-gpu-gfxstream-renderer.cpp +++ b/stream-servers/virtio-gpu-gfxstream-renderer.cpp
@@ -1625,10 +1625,12 @@ const auto& entry = it->second; if (entry.descriptorInfo && entry.descriptorInfo->vulkanInfoOpt) { vulkan_info->memory_index = (*entry.descriptorInfo->vulkanInfoOpt).memoryIndex; - memcpy(vulkan_info->device_uuid, (*entry.descriptorInfo->vulkanInfoOpt).deviceUUID, - sizeof(vulkan_info->device_uuid)); - memcpy(vulkan_info->driver_uuid, (*entry.descriptorInfo->vulkanInfoOpt).driverUUID, - sizeof(vulkan_info->driver_uuid)); + memcpy(vulkan_info->device_id.device_uuid, + (*entry.descriptorInfo->vulkanInfoOpt).deviceUUID, + sizeof(vulkan_info->device_id.device_uuid)); + memcpy(vulkan_info->device_id.driver_uuid, + (*entry.descriptorInfo->vulkanInfoOpt).driverUUID, + sizeof(vulkan_info->device_id.driver_uuid)); return 0; }