mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix slow down on Adreno 540 GPUs.
This commit is contained in:
parent
d841854023
commit
05295254b6
|
@ -478,7 +478,7 @@ struct FramebufferTextureFormatsGLES3 : public graphics::FramebufferTextureForma
|
||||||
protected:
|
protected:
|
||||||
void init() override
|
void init() override
|
||||||
{
|
{
|
||||||
if (m_glinfo.renderer == Renderer::Adreno500) {
|
if (m_glinfo.renderer == Renderer::Adreno530) {
|
||||||
colorInternalFormat = GL_RGBA32F;
|
colorInternalFormat = GL_RGBA32F;
|
||||||
colorFormat = GL_RGBA;
|
colorFormat = GL_RGBA;
|
||||||
colorType = GL_FLOAT;
|
colorType = GL_FLOAT;
|
||||||
|
|
|
@ -27,8 +27,11 @@ void GLInfo::init() {
|
||||||
LOG(LOG_VERBOSE, "OpenGL vendor: %s\n", glGetString(GL_VENDOR));
|
LOG(LOG_VERBOSE, "OpenGL vendor: %s\n", glGetString(GL_VENDOR));
|
||||||
const GLubyte * strRenderer = glGetString(GL_RENDERER);
|
const GLubyte * strRenderer = glGetString(GL_RENDERER);
|
||||||
|
|
||||||
if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*5\\d\\d") ))
|
if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*530")))
|
||||||
renderer = Renderer::Adreno500;
|
renderer = Renderer::Adreno530;
|
||||||
|
else if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*540")) ||
|
||||||
|
std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*6\\d\\d")))
|
||||||
|
renderer = Renderer::Adreno_no_bugs;
|
||||||
else if (strstr((const char*)strRenderer, "Adreno") != nullptr)
|
else if (strstr((const char*)strRenderer, "Adreno") != nullptr)
|
||||||
renderer = Renderer::Adreno;
|
renderer = Renderer::Adreno;
|
||||||
else if (strstr((const char*)strRenderer, "VideoCore IV") != nullptr)
|
else if (strstr((const char*)strRenderer, "VideoCore IV") != nullptr)
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
namespace opengl {
|
namespace opengl {
|
||||||
|
|
||||||
enum class Renderer {
|
enum class Renderer {
|
||||||
Adreno500,
|
Adreno530,
|
||||||
|
Adreno_no_bugs,
|
||||||
Adreno,
|
Adreno,
|
||||||
VideoCore,
|
VideoCore,
|
||||||
Intel,
|
Intel,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user