summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-09-25 10:57:05 +0100
committerGitHub <noreply@github.com>2024-09-25 10:57:05 +0100
commitec6f5e1104ddd899a18edf4e9c12a5292ecc6d5b (patch)
tree342b4b7e97799380930361df043ff9cc271dd354
parentde67c4c93bd15846f68df4006dd2c93fba5720d2 (diff)
parent0a299a4e1e2d76d46b458bd5f07a3de42b53e688 (diff)
Merge pull request #13072 from Tilka/videosw
VideoSoftware: small cleanup
-rw-r--r--Source/Core/VideoBackends/Software/Rasterizer.cpp4
-rw-r--r--Source/Core/VideoBackends/Software/Tev.cpp6
2 files changed, 2 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp
index b27dc14c89..718f2778b9 100644
--- a/Source/Core/VideoBackends/Software/Rasterizer.cpp
+++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp
@@ -330,7 +330,7 @@ static void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertex
// adapted from http://devmaster.net/posts/6145/advanced-rasterization
- // 28.4 fixed-pou32 coordinates. rounded to nearest and adjusted to match hardware output
+ // 28.4 fixed-point coordinates. rounded to nearest and adjusted to match hardware output
// could also take floor and adjust -8
const s32 Y1 = iround(16.0f * (v0->screenPosition.y - scissor.y_off)) - 9;
const s32 Y2 = iround(16.0f * (v1->screenPosition.y - scissor.y_off)) - 9;
@@ -349,7 +349,7 @@ static void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertex
const s32 DY23 = Y2 - Y3;
const s32 DY31 = Y3 - Y1;
- // Fixed-pos32 deltas
+ // Fixed-point deltas
const s32 FDX12 = DX12 * 16;
const s32 FDX23 = DX23 * 16;
const s32 FDX31 = DX31 * 16;
diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp
index 95a19ae7f1..674c545759 100644
--- a/Source/Core/VideoBackends/Software/Tev.cpp
+++ b/Source/Core/VideoBackends/Software/Tev.cpp
@@ -23,12 +23,6 @@
#include "VideoCommon/VideoConfig.h"
#include "VideoCommon/XFMemory.h"
-#ifdef _DEBUG
-#define ALLOW_TEV_DUMPS 1
-#else
-#define ALLOW_TEV_DUMPS 0
-#endif
-
static inline s16 Clamp255(s16 in)
{
return std::clamp<s16>(in, 0, 255);