summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-03-03 17:49:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-03 17:49:12 +0000
commitba23d539328af36b2040a5bcbdcc840810a4df51 (patch)
tree77c91d3a541e7b3f60184ccc9ea31b45667624e6
parenta0e4d1643cc74748c3b5b05da0d41b7dbcda23e5 (diff)
parentc2659e72d7723f8dcb8659a1cb1d8ff3d6edae88 (diff)
downloadsystem_core-ba23d539328af36b2040a5bcbdcc840810a4df51.zip
system_core-ba23d539328af36b2040a5bcbdcc840810a4df51.tar.gz
system_core-ba23d539328af36b2040a5bcbdcc840810a4df51.tar.bz2
Merge "Fix the handling of CodeCache return codes in pixelflinger"
-rw-r--r--libpixelflinger/scanline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpixelflinger/scanline.cpp b/libpixelflinger/scanline.cpp
index cd78713..cb2b811 100644
--- a/libpixelflinger/scanline.cpp
+++ b/libpixelflinger/scanline.cpp
@@ -408,10 +408,10 @@ static void pick_scanline(context_t* c)
GGLAssembler assembler( new ArmToArm64Assembler(a) );
#endif
// generate the scanline code for the given needs
- int err = assembler.scanline(c->state.needs, c);
+ bool err = assembler.scanline(c->state.needs, c) != 0;
if (ggl_likely(!err)) {
// finally, cache this assembly
- err = gCodeCache.cache(a->key(), a);
+ err = gCodeCache.cache(a->key(), a) < 0;
}
if (ggl_unlikely(err)) {
ALOGE("error generating or caching assembly. Reverting to NOP.");