| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| BUILD.gn | ||
| CMakeLists.txt | ||
| Image.cpp | ||
| Image.hpp | ||
| MatrixStack.cpp | ||
| MatrixStack.hpp | ||
| NameSpace.hpp | ||
| Object.cpp | ||
| Object.hpp | ||
| Surface.hpp | ||
| debug.cpp | ||
| debug.h |
In some Android gralloc implementations (e.g. minigbm), the lock operation corresponds to mmap, and unlock corresponds to munmap. This means that this code was previously returning an unusable buffer in the case where lockInternal is called passing LOCK_UNLOCKED (e.g. the mipmap buffer initializer in Sampler.cpp), resulting in segfaults later on. To prevent this from happening, don't unlock the native buffer and just leak the reference. Bug: b/142352330 Change-Id: I553801f32978c1d0af4597baad374381585e78ad Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44168Reviewed-by:Lingfeng Yang <lfy@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Presubmit-Ready: Peter Collingbourne <pcc@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| BUILD.gn | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| Image.cpp | Loading commit data... | |
| Image.hpp | Loading commit data... | |
| MatrixStack.cpp | Loading commit data... | |
| MatrixStack.hpp | Loading commit data... | |
| NameSpace.hpp | Loading commit data... | |
| Object.cpp | Loading commit data... | |
| Object.hpp | Loading commit data... | |
| Surface.hpp | Loading commit data... | |
| debug.cpp | Loading commit data... | |
| debug.h | Loading commit data... |