summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/Tev.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-09-29 09:05:51 -0400
committerGitHub <noreply@github.com>2022-09-29 09:05:51 -0400
commit0c19a1d87cbd51d62833d31d3413c61b3bc8ccf4 (patch)
treebd5a76acfeec8d7e70345b8720c5e164ef8e4da7 /Source/Core/VideoBackends/Software/Tev.cpp
parent3fab5b2338f1b7bc1b4ddc0e283c2650a6e2e825 (diff)
parent3d0cd8b076a4a8ff4f6741769781305cd571b5b7 (diff)
Merge pull request #11100 from Pokechu22/software-settings-merge
Use the same settings for the software renderer as other backends
Diffstat (limited to 'Source/Core/VideoBackends/Software/Tev.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index e788d55d92..f2f903ccfc 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -9,7 +9,6 @@
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
-#include "VideoBackends/Software/DebugUtil.h"
#include "VideoBackends/Software/EfbInterface.h"
#include "VideoBackends/Software/SWBoundingBox.h"
#include "VideoBackends/Software/TextureSampler.h"
@@ -428,16 +427,6 @@ void Tev::Draw()
TextureSampler::Sample(Uv[texcoordSel].s >> scaleS, Uv[texcoordSel].t >> scaleT,
IndirectLod[stageNum], IndirectLinear[stageNum], texmap,
IndirectTex[stageNum]);
-
-#if ALLOW_TEV_DUMPS
- if (g_ActiveConfig.bDumpTevStages)
- {
- u8 stage[4] = {IndirectTex[stageNum][TextureSampler::ALP_SMP],
- IndirectTex[stageNum][TextureSampler::BLU_SMP],
- IndirectTex[stageNum][TextureSampler::GRN_SMP], 255};
- DebugUtil::DrawTempBuffer(stage, INDIRECT + stageNum);
- }
-#endif
}
for (unsigned int stageNum = 0; stageNum <= bpmem.genMode.numtevstages; stageNum++)
@@ -478,11 +467,6 @@ void Tev::Draw()
std::memset(texel, 0, 4);
}
-#if ALLOW_TEV_DUMPS
- if (g_ActiveConfig.bDumpTevTextureFetches)
- DebugUtil::DrawTempBuffer(texel, DIRECT_TFETCH + stageNum);
-#endif
-
const auto& swap = bpmem.tevksel.GetSwapTable(ac.tswap);
TexColor.r = texel[u32(swap[ColorChannel::Red])];
TexColor.g = texel[u32(swap[ColorChannel::Green])];
@@ -547,15 +531,6 @@ void Tev::Draw()
Reg[ac.dest].a = Clamp255(Reg[ac.dest].a);
else
Reg[ac.dest].a = Clamp1024(Reg[ac.dest].a);
-
-#if ALLOW_TEV_DUMPS
- if (g_ActiveConfig.bDumpTevStages)
- {
- u8 stage[4] = {(u8)Reg[cc.dest].r, (u8)Reg[cc.dest].g, (u8)Reg[cc.dest].b,
- (u8)Reg[ac.dest].a};
- DebugUtil::DrawTempBuffer(stage, DIRECT + stageNum);
- }
-#endif
}
// convert to 8 bits per component
@@ -711,26 +686,6 @@ void Tev::Draw()
BBoxManager::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)
- {
- for (u32 i = 0; i < bpmem.genMode.numindstages; ++i)
- DebugUtil::CopyTempBuffer(Position[0], Position[1], INDIRECT, i, "Indirect");
- for (u32 i = 0; i <= bpmem.genMode.numtevstages; ++i)
- DebugUtil::CopyTempBuffer(Position[0], Position[1], DIRECT, i, "Stage");
- }
-
- if (g_ActiveConfig.bDumpTevTextureFetches)
- {
- for (u32 i = 0; i <= bpmem.genMode.numtevstages; ++i)
- {
- TwoTevStageOrders& order = bpmem.tevorders[i >> 1];
- if (order.getEnable(i & 1))
- DebugUtil::CopyTempBuffer(Position[0], Position[1], DIRECT_TFETCH, i, "TFetch");
- }
- }
-#endif
-
INCSTAT(g_stats.this_frame.tev_pixels_out);
EfbInterface::IncPerfCounterQuadCount(PQ_BLEND_INPUT);