aboutsummaryrefslogtreecommitdiff
path: root/system/OpenglSystemCommon/HostConnection.cpp
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@google.com>2022-05-09 12:32:19 -0700
committerGurchetan Singh <gurchetansingh@google.com>2022-05-09 12:32:19 -0700
commit3aec1704ac5d3b8e58e9a7d68b24db5e573227ec (patch)
tree7677bffb7ad61e4233afec73c4be9c6fc3acc3f2 /system/OpenglSystemCommon/HostConnection.cpp
parentf10fa54890fb259b6e8d2e1513d5e1e4c4a16eef (diff)
downloadgoldfish-opengl-3aec1704ac5d3b8e58e9a7d68b24db5e573227ec.tar.gz
goldfish-opengl: don't de-duplicate rendernode fd for non-ASG streams
Change-Id: I9066d3ef0500d2706af9cc2565dd6102a92534c1
Diffstat (limited to 'system/OpenglSystemCommon/HostConnection.cpp')
-rw-r--r--system/OpenglSystemCommon/HostConnection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp
index ac7ef15a..9d41be4a 100644
--- a/system/OpenglSystemCommon/HostConnection.cpp
+++ b/system/OpenglSystemCommon/HostConnection.cpp
@@ -745,7 +745,8 @@ ExtendedRCEncoderContext *HostConnection::rcEncoder()
queryAndSetHWCMultiConfigs(rcEnc);
queryVersion(rcEnc);
if (m_processPipe) {
- m_processPipe->processPipeInit(m_rendernodeFd, m_connectionType, rcEnc);
+ auto fd = (m_connectionType == HOST_CONNECTION_VIRTIO_GPU_ADDRESS_SPACE) ? m_rendernodeFd : -1;
+ m_processPipe->processPipeInit(fd, m_connectionType, rcEnc);
}
}
return m_rcEnc.get();