diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-27 23:00:51 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-09-27 23:00:51 +0000 |
commit | 82b6a55797c29509522f628b9db7aaa02a265474 (patch) | |
tree | 0c16d62467abaaf70e413199f2c5e92f266b0928 | |
parent | 4ac0d8933653c2876af710ddfd3c26e61685d329 (diff) | |
parent | fe16e9267d8dec34c94d3ea4183033b92cca2905 (diff) | |
download | vulkan-cereal-82b6a55797c29509522f628b9db7aaa02a265474.tar.gz |
Snap for 7771957 from fe16e9267d8dec34c94d3ea4183033b92cca2905 to sc-d2-release
Change-Id: I4c5abbe066ac41f5c5e57e1772bfd607dbaef1f0
-rw-r--r-- | stream-servers/ColorBuffer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream-servers/ColorBuffer.cpp b/stream-servers/ColorBuffer.cpp index a01002f6..100aad6a 100644 --- a/stream-servers/ColorBuffer.cpp +++ b/stream-servers/ColorBuffer.cpp @@ -371,6 +371,7 @@ void ColorBuffer::readPixels(int x, } p_format = sGetUnsizedColorBufferFormat(p_format); touch(); + waitSync(); if (bindFbo(&m_fbo, m_tex)) { GLint prevAlignment = 0; @@ -394,6 +395,7 @@ void ColorBuffer::readPixelsScaled(int width, } p_format = sGetUnsizedColorBufferFormat(p_format); touch(); + waitSync(); GLuint tex = m_resizer->update(m_tex, width, height, rotation); if (bindFbo(&m_scaleRotationFbo, tex)) { GLint prevAlignment = 0; @@ -417,6 +419,7 @@ void ColorBuffer::readPixelsYUVCached(int x, } touch(); + waitSync(); #if DEBUG_CB_FBO fprintf(stderr, "%s %d request width %d height %d\n", __func__, __LINE__, |