diff options
author | Gurchetan Singh <gurchetansingh@google.com> | 2022-05-09 12:32:19 -0700 |
---|---|---|
committer | Gurchetan Singh <gurchetansingh@google.com> | 2022-05-09 12:32:19 -0700 |
commit | 3aec1704ac5d3b8e58e9a7d68b24db5e573227ec (patch) | |
tree | 7677bffb7ad61e4233afec73c4be9c6fc3acc3f2 /system/OpenglSystemCommon/HostConnection.cpp | |
parent | f10fa54890fb259b6e8d2e1513d5e1e4c4a16eef (diff) | |
download | goldfish-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.cpp | 3 |
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(); |