Skip to content

Commit

Permalink
Merge pull request #15881 from unknownbrackets/headless
Browse files Browse the repository at this point in the history
Headless: Fix comparison for oversized buffers
  • Loading branch information
hrydgard authored Aug 22, 2022
2 parents 0cb29db + 05ad644 commit 39cb2f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion headless/Compare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ std::vector<u32> TranslateDebugBufferToCompare(const GPUDebugBuffer *buffer, u32
int outStride = buffer->GetStride();
if (!buffer->GetFlipped()) {
// Bitmaps are flipped, so we have to compare backwards in this case.
int toLastRow = outStride * (buffer->GetHeight() - 1);
int toLastRow = outStride * (h > buffer->GetHeight() ? buffer->GetHeight() - 1 : h - 1);
pixels32 += toLastRow;
pixels16 += toLastRow;
outStride = -outStride;
Expand Down
1 change: 1 addition & 0 deletions headless/Headless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ int main(int argc, const char* argv[])
g_Config.bEnableLogging = fullLog;
g_Config.bSoftwareSkinning = true;
g_Config.bVertexDecoderJit = true;
g_Config.bSoftwareRendering = coreParameter.gpuCore == GPUCORE_SOFTWARE;
g_Config.bSoftwareRenderingJit = true;
g_Config.bBlockTransferGPU = true;
g_Config.iSplineBezierQuality = 2;
Expand Down

0 comments on commit 39cb2f1

Please sign in to comment.