gfxstream: set tInfo.m_puid to mContextId
Needed if the guest doesn't implement "pipe process init".
BUG=297245651
TEST=launch_cvd
Change-Id: Ie63a8e690b42b1d7a752f6848be8a502d4f35fb6
diff --git a/host/RenderThread.cpp b/host/RenderThread.cpp
index ef0f1e0..c0241cc 100644
--- a/host/RenderThread.cpp
+++ b/host/RenderThread.cpp
@@ -451,6 +451,11 @@
.setAnnotations(std::move(renderThreadData))
.build();
+ if (!tInfo.m_puid) {
+ tInfo.m_puid = mContextId;
+ FrameBuffer::getFB()->createGraphicsProcessResources(tInfo.m_puid);
+ }
+
if (!processResources && tInfo.m_puid) {
processResources = FrameBuffer::getFB()->getProcessResources(tInfo.m_puid);
}