summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2021-05-29 17:00:14 +1000
committerGitHub <noreply@github.com>2021-05-29 17:00:14 +1000
commitb31d4400e31503861cce0bb0ccff6da71bddf277 (patch)
tree492f8395eecd2bc65566033783a32f9456affefb /Source/Core/VideoCommon/RenderBase.cpp
parent7b2b05cc219c1591ab328fefabd9435aff748c08 (diff)
parenta24e78b3cf07e8d169d97a2e4c3635b9efbdba35 (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/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 0ff5b52902..93f8fa2279 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -185,32 +185,6 @@ void Renderer::ReinterpretPixelData(EFBReinterpretType convtype)
g_framebuffer_manager->ReinterpretPixelData(convtype);
}
-u16 Renderer::BBoxRead(int index)
-{
- u16 value = BBoxReadImpl(index);
-
- // 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.
- // This would have been handled in the pixel shader, but all attempts to do so did not work on
- // OpenGL/NVIDIA, due to presumably mystical driver behavior with atomics.
- if (index == 0 || index == 2)
- value &= ~1;
- else
- value |= 1;
-
- return value;
-}
-
-void Renderer::BBoxWrite(int index, u16 value)
-{
- BBoxWriteImpl(index, value);
-}
-
-void Renderer::BBoxFlush()
-{
- BBoxFlushImpl();
-}
-
u32 Renderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data)
{
if (type == EFBAccessType::PeekColor)