From 25737a1a4690872fcab921fe295627bbc6536339 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 23 Apr 2024 11:07:20 +0100 Subject: [PATCH] GS: Improve STQ loggin in draw dumps --- pcsx2/GS/GSState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index 60a622c638..8df2202fb2 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -495,7 +495,11 @@ void GSState::DumpVertices(const std::string& filename) file << uv_U << DEL << uv_V; } else - file << v.ST.S << "(" << std::bit_cast(v.ST.S) << ")" << DEL << v.ST.T << "(" << std::bit_cast(v.ST.T) << ")" << DEL << v.RGBAQ.Q << "(" << std::bit_cast(v.RGBAQ.Q) << ")"; + { + float x = (v.ST.S / v.RGBAQ.Q) * (1 << m_context->TEX0.TW); + float y = (v.ST.T / v.RGBAQ.Q) * (1 << m_context->TEX0.TH); + file << v.ST.S << "(" << std::hex << std::bit_cast(v.ST.S) << ")" << DEL << v.ST.T << "(" << std::hex << std::bit_cast(v.ST.T) << ")" << DEL << v.RGBAQ.Q << "(" << std::hex << std::bit_cast(v.RGBAQ.Q) << ") - " << x << "," << y; + } file << std::endl; }