Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Qualcomm Swap hack isn't needed anymore due to the new Stre…
…amBuffer type.
  • Loading branch information
Sonicadvance1 committed Jul 27, 2013
1 parent 952aa71 commit 4aba013
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion Source/Core/VideoCommon/Src/DriverDetails.cpp
Expand Up @@ -29,7 +29,6 @@ namespace DriverDetails
{BUG_NODYNUBOACCESS, 300, 14.0, -1.0},
{BUG_BROKENCENTROID, 300, 14.0, -1.0},
{BUG_BROKENINFOLOG, 300, -1.0, -1.0},
{BUG_BROKENBUFFERS, 300, 14.0, -1.0},
};

std::map<std::pair<Vendor, Bug>, BugInfo> m_bugs;
Expand Down
10 changes: 0 additions & 10 deletions Source/Core/VideoCommon/Src/DriverDetails.h
Expand Up @@ -52,16 +52,6 @@ namespace DriverDetails
// Adreno devices /always/ return 0 when querying GL_INFO_LOG_LENGTH
// They also max out at 1024 bytes(1023 characters + null terminator) for the log
BUG_BROKENINFOLOG,
// Bug: Uploading data with rendering causes issues
// Affected devices: Qualcomm/Adreno
// Started Version: 14
// Ended Version: -1
// When drawing our elements, the instruction buffer on Adreno devices
// becomes too long, causing the device to quickly run out of RAM
// I've watched the kernel module go up to ~700MB of RAM in a few seconds
// The "workaround" is calling swapbuffers every single time we flush
// This causes flickering, but it is the only known way to work around it
BUG_BROKENBUFFERS,
};

// Initializes our internal vendor, device family, and driver version
Expand Down
2 changes: 0 additions & 2 deletions Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp
Expand Up @@ -268,8 +268,6 @@ void VertexManager::vFlush()

g_perf_query->EnableQuery(bpmem.zcontrol.early_ztest ? PQG_ZCOMP_ZCOMPLOC : PQG_ZCOMP);
Draw(stride);
if (DriverDetails::HasBug(DriverDetails::BUG_BROKENBUFFERS))
GLInterface->Swap();
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));

Expand Down

0 comments on commit 4aba013

Please sign in to comment.