Skip to content

Commit

Permalink
Merge pull request #12746 from unknownbrackets/gpu-size-est
Browse files Browse the repository at this point in the history
GPU: Assume a scissor of 481x273 is a mistake
  • Loading branch information
hrydgard authored Mar 22, 2020
2 parents 0faa3f2 + a95f311 commit a70f00c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/Common/FramebufferCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ void FramebufferManagerCommon::EstimateDrawingSize(u32 fb_address, GEBufferForma
drawing_width = scissor_width;
drawing_height = std::max(drawing_height, scissor_height);
}
if (scissor_width == 481 && region_width == 480 && scissor_height == 273 && region_height == 272) {
drawing_width = 480;
drawing_height = 272;
}
} else {
// If viewport wasn't valid, let's just take the greatest anything regardless of stride.
drawing_width = std::min(std::max(region_width, scissor_width), fb_stride);
Expand Down

0 comments on commit a70f00c

Please sign in to comment.