gsdx-debug: create the savef option

The idea is to easily extract bad frame from gs dump and to compare them
with the sw renderer.

Here the summary of the options:
savet => dump all input textures
save  => dump the render target
savez => dump the depth buffer
savef => dump the frame
This commit is contained in:
Gregory Hainaut committed 2015-05-31 17:38:52 +02:00
1 parent d301848848
commit 9d69ff1f91
5 files changed
+12 -8

No files matched your search

+6 -5
View File
@@ -45,13 +45,14 @@ GSState::GSState()
{
m_nativeres = !!theApp.GetConfig("nativeres", 1);
s_n = 0;
s_dump = !!theApp.GetConfig("dump", 0);
s_save = !!theApp.GetConfig("save", 0);
s_n = 0;
s_dump = !!theApp.GetConfig("dump", 0);
s_save = !!theApp.GetConfig("save", 0);
s_savet = !!theApp.GetConfig("savet", 0);
s_savez = !!theApp.GetConfig("savez", 0);
s_saven = theApp.GetConfig("saven", 0);
s_savel = theApp.GetConfig("savel", 5000);
s_saven = !!theApp.GetConfig("saven", 0);
s_savef = !!theApp.GetConfig("savef", 0);
s_savel = !!theApp.GetConfig("savel", 5000);
#ifdef __linux__
if (s_dump) {
mkdir("/tmp/GS_HW_dump", 0777);