diff options
Diffstat (limited to 'host-common')
-rw-r--r-- | host-common/opengl/GLProcessPipe.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host-common/opengl/GLProcessPipe.cpp b/host-common/opengl/GLProcessPipe.cpp index 7ff32983..d2da1a22 100644 --- a/host-common/opengl/GLProcessPipe.cpp +++ b/host-common/opengl/GLProcessPipe.cpp @@ -89,7 +89,12 @@ public: m_uniqueId = loadStream->getBe64(); m_hasData = (loadStream->getByte() != 0); } else { - m_uniqueId = ++s_headId; + if (flags & ANDROID_PIPE_VIRTIO_GPU_BIT) { + m_uniqueId = (uint64_t)(uintptr_t)hwPipe; + s_headId = m_uniqueId; + } else { + m_uniqueId = ++s_headId; + } } AutoLock lock(sRegistry.lock); sRegistry.ids.insert(m_uniqueId); |