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

Commit 387a7e6d authored by Jeff Boody's avatar Jeff Boody Committed by Steve Kondik
Browse files

Allow use of CACHED_BUFFERS for Adreno graphics.

This change requires a corresponding change in gralloc
which flushes PMEM cache to avoid rendering artifacts.

Change-Id: I567762afcbd149c2821b11847911fe6f687b2cb3
parent 3e461163
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -246,11 +246,6 @@ void DisplayHardware::init(uint32_t dpy)
    LOGI("version   : %s", glGetString(GL_VERSION));
    LOGI("extensions: %s", gl_extensions);

    if (strstr(gl_renderer, "Adreno")) {
        LOGD("Assuming uncached graphics buffers.");
        mFlags &= ~CACHED_BUFFERS;
    }

    if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two")) {
        mFlags |= NPOT_EXTENSION;
    }