Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba23d539 authored by Jesse Hall's avatar Jesse Hall Committed by Gerrit Code Review
Browse files

Merge "Fix the handling of CodeCache return codes in pixelflinger"

parents a0e4d164 c2659e72
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -408,10 +408,10 @@ static void pick_scanline(context_t* c)
        GGLAssembler assembler( new ArmToArm64Assembler(a) );
        GGLAssembler assembler( new ArmToArm64Assembler(a) );
#endif
#endif
        // generate the scanline code for the given needs
        // 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)) {
        if (ggl_likely(!err)) {
            // finally, cache this assembly
            // finally, cache this assembly
            err = gCodeCache.cache(a->key(), a);
            err = gCodeCache.cache(a->key(), a) < 0;
        }
        }
        if (ggl_unlikely(err)) {
        if (ggl_unlikely(err)) {
            ALOGE("error generating or caching assembly. Reverting to NOP.");
            ALOGE("error generating or caching assembly. Reverting to NOP.");