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

Commit 4fe6ac33 authored by Dima Zavin's avatar Dima Zavin
Browse files

surfaceflinger: remove un-cached buffers hack for Adreno



Change-Id: I5ae4e74bfa3e25b55be2cddf7b3c51368a140ab9
Signed-off-by: default avatarDima Zavin <dima@android.com>
parent 32f02725
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -246,10 +246,15 @@ void DisplayHardware::init(uint32_t dpy)
    LOGI("version   : %s", glGetString(GL_VERSION));
    LOGI("extensions: %s", gl_extensions);

    if (strstr(gl_renderer, "Adreno")) {
#if 0
    // for drivers that don't have proper support for flushing cached buffers
    // on gralloc unlock, uncomment this block and test for the specific
    // renderer substring
    if (strstr(gl_renderer, "<some vendor string>")) {
        LOGD("Assuming uncached graphics buffers.");
        mFlags &= ~CACHED_BUFFERS;
    }
#endif

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