diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2021-05-29 17:00:14 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-29 17:00:14 +1000 |
| commit | b31d4400e31503861cce0bb0ccff6da71bddf277 (patch) | |
| tree | 492f8395eecd2bc65566033783a32f9456affefb /Source/Core/VideoBackends/Software/Tev.cpp | |
| parent | 7b2b05cc219c1591ab328fefabd9435aff748c08 (diff) | |
| parent | a24e78b3cf07e8d169d97a2e4c3635b9efbdba35 (diff) | |
Merge pull request #9765 from Techjar/bbox-pixel-quads-2-electric-boogaloo
VideoCommon: Move bounding box pixel quads rounding to shader
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Tev.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index be6f14d610..3c932b9566 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -838,8 +838,10 @@ void Tev::Draw() EfbInterface::IncPerfCounterQuadCount(PQ_ZCOMP_OUTPUT); } - BoundingBox::Update(static_cast<u16>(Position[0]), static_cast<u16>(Position[0]), - static_cast<u16>(Position[1]), static_cast<u16>(Position[1])); + // The GC/Wii GPU rasterizes in 2x2 pixel groups, so bounding box values will be rounded to the + // extents of these groups, rather than the exact pixel. + BoundingBox::Update(static_cast<u16>(Position[0] & ~1), static_cast<u16>(Position[0] | 1), + static_cast<u16>(Position[1] & ~1), static_cast<u16>(Position[1] | 1)); #if ALLOW_TEV_DUMPS if (g_ActiveConfig.bDumpTevStages) |
