Skip to content

Commit

Permalink
OpenGLDevice: Blacklist fbfetch on PowerVR as well
Browse files Browse the repository at this point in the history
Apparently it's broken, and I don't have any devices with this chip
so I can't find a potential workaround anyway.
  • Loading branch information
stenzek committed Dec 15, 2024
1 parent 4e1e07a commit fbb411a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util/opengl_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ static void DisableBrokenExtensions(const char* gl_vendor, const char* gl_render
VERBOSE_LOG("Keeping GL_EXT_shader_framebuffer_fetch on Adreno version {}", major_version);
}
}
else if (std::strstr(gl_vendor, "Imagination Technologies") && std::strstr(gl_renderer, "PowerVR"))
{
// Framebuffer fetch is apparently also broken on older PowerVR drivers.
// No clue what the range is, so just disable all of them...
GLAD_GL_EXT_shader_framebuffer_fetch = 0;
GLAD_GL_ARM_shader_framebuffer_fetch = 0;
VERBOSE_LOG("Disabling GL_EXT_shader_framebuffer_fetch on PowerVR driver.");
}

// If we're missing GLES 3.2, but have OES_draw_elements_base_vertex, redirect the function pointers.
if (!glad_glDrawElementsBaseVertex && GLAD_GL_OES_draw_elements_base_vertex && !GLAD_GL_ES_VERSION_3_2)
Expand Down

0 comments on commit fbb411a

Please sign in to comment.