Add in the Mali driver bug so we can call glFlush every flush. It seemingly is quicker calling flush every time instead of every n times.

This commit is contained in:
Ryan Houdek
2013-07-25 05:44:01 +00:00
parent 7a6eeb5fbd
commit 672871b3be
4 changed files with 26 additions and 0 deletions

View File

@ -307,6 +307,12 @@ void InitDriverInfo()
sscanf(g_ogl_config.gl_version, "OpenGL ES %lg V@%lg", &glVersion, &version);
}
break;
case DriverDetails::VENDOR_ARM:
if (std::string::npos != srenderer.find("Mali-T6"))
devfamily = 600;
else if(std::string::npos != srenderer.find("Mali-4"))
devfamily = 400;
break;
// We don't care about these
default:
break;
@ -664,6 +670,7 @@ void Renderer::DrawDebugInfo()
if (g_ActiveConfig.bShowInputDisplay)
p+=sprintf(p, "%s", Movie::GetInputDisplay().c_str());
#ifndef USE_GLES3
if (g_ActiveConfig.bShowEFBCopyRegions)
{
// Set Line Size
@ -783,6 +790,7 @@ void Renderer::DrawDebugInfo()
// Clear stored regions
stats.efb_regions.clear();
}
#endif
if (g_ActiveConfig.bOverlayStats)
p = Statistics::ToString(p);

View File

@ -270,6 +270,8 @@ void VertexManager::vFlush()
Draw(stride);
if (DriverDetails::HasBug(DriverDetails::BUG_BROKENBUFFERS))
GLInterface->Swap();
if(DriverDetails::HasBug(DriverDetails::BUG_MALIBROKENBUFFERS))
glFlush();
g_perf_query->DisableQuery(bpmem.zcontrol.early_ztest ? PQG_ZCOMP_ZCOMPLOC : PQG_ZCOMP);
//ERROR_LOG(VIDEO, "PerfQuery result: %d", g_perf_query->GetQueryResult(bpmem.zcontrol.early_ztest ? PQ_ZCOMP_OUTPUT_ZCOMPLOC : PQ_ZCOMP_OUTPUT));