Skip to content

Commit 2f9aef7

Browse files
committed
temp debugging code
1 parent 7de914c commit 2f9aef7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

pcsx2/GS/GSState.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,11 @@ void GSState::DumpVertices(const std::string& filename)
540540
v2 = m_vt.m_max.t;
541541
file << "\tmax t (x,y,z,w): " << v2.x << DEL << v2.y << DEL << v2.z << DEL << v2.w << std::endl;
542542

543+
// FIXME: MAKE THIS A NEW PR
544+
file << std::endl;
545+
file << "\teq (r,g,b,a): " << (m_vt.m_eq.r & 1) << DEL << (m_vt.m_eq.g & 1) << DEL << (m_vt.m_eq.b & 1) << DEL << (m_vt.m_eq.a & 1) << std::endl;
546+
file << "\teq (x,y,z,f): " << m_vt.m_eq.x << DEL << m_vt.m_eq.y << DEL << m_vt.m_eq.z << DEL << m_vt.m_eq.f << std::endl;
547+
file << "\teq (s,t,q) : " << m_vt.m_eq.s << DEL << m_vt.m_eq.t << DEL << m_vt.m_eq.q << std::endl;
543548
file.close();
544549
}
545550

pcsx2/GS/Renderers/Common/GSVertexTraceFMM.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66
#include "GS/GSUtil.h"
77
#include <cfloat>
88

9+
// FILE* debug_log = nullptr;
10+
11+
// #define PRINTF(...) \
12+
// do \
13+
// { \
14+
// if (GSState::s_n == 10) { \
15+
// if (!debug_log) { \
16+
// debug_log = fopen("E:\\bad.log", "w"); \
17+
// } \
18+
// fprintf(debug_log, __VA_ARGS__); \
19+
// fflush(debug_log); \
20+
// } \
21+
// } while (0)
22+
923
class CURRENT_ISA::GSVertexTraceFMM
1024
{
1125
template <GS_PRIM_CLASS primclass, u32 iip, u32 tme, u32 fst, u32 color, bool flat_swapped>

0 commit comments

Comments
 (0)