summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2022-08-05 22:42:09 +1200
committerGitHub <noreply@github.com>2022-08-05 22:42:09 +1200
commitebf95370ef1329bcda5b6c50d6472a28715480a7 (patch)
tree16a2dca02ffc0e7eeb6b09149f7e4a52019576b9 /Source/Core
parent939fa1ed1c19f972cdc6f86fd914a582254a8cc7 (diff)
parent354530cf616b47e789c45c20b7fb9a75a595cb64 (diff)
Merge pull request #10946 from Pokechu22/remove-iLog
VideoCommon: Remove old iLog field
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/Spirv.cpp25
-rw-r--r--Source/Core/VideoCommon/VideoConfig.h7
2 files changed, 0 insertions, 32 deletions
diff --git a/Source/Core/VideoCommon/Spirv.cpp b/Source/Core/VideoCommon/Spirv.cpp
index 50c88c4faf..6fee98b536 100644
--- a/Source/Core/VideoCommon/Spirv.cpp
+++ b/Source/Core/VideoCommon/Spirv.cpp
@@ -156,31 +156,6 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
if (!spv_messages.empty())
WARN_LOG_FMT(VIDEO, "SPIR-V conversion messages: {}", spv_messages);
- // Dump source code of shaders out to file if enabled.
- if (g_ActiveConfig.iLog & CONF_SAVESHADERS)
- {
- static int counter = 0;
- std::string filename = StringFromFormat("%s%s_%04i.txt", File::GetUserPath(D_DUMP_IDX).c_str(),
- stage_filename, counter++);
-
- std::ofstream stream;
- File::OpenFStream(stream, filename, std::ios_base::out);
- if (stream.good())
- {
- stream << source << std::endl;
- stream << "Shader Info Log:" << std::endl;
- stream << shader->getInfoLog() << std::endl;
- stream << shader->getInfoDebugLog() << std::endl;
- stream << "Program Info Log:" << std::endl;
- stream << program->getInfoLog() << std::endl;
- stream << program->getInfoDebugLog() << std::endl;
- stream << "SPIR-V conversion messages: " << std::endl;
- stream << spv_messages;
- stream << "SPIR-V:" << std::endl;
- spv::Disassemble(stream, out_code);
- }
- }
-
return out_code;
}
} // namespace
diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h
index 8de5d1e593..22817d1f61 100644
--- a/Source/Core/VideoCommon/VideoConfig.h
+++ b/Source/Core/VideoCommon/VideoConfig.h
@@ -17,12 +17,6 @@
#include "VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.h"
#include "VideoCommon/VideoCommon.h"
-// Log in two categories, and save three other options in the same byte
-#define CONF_LOG 1
-#define CONF_PRIMLOG 2
-#define CONF_SAVETARGETS 8
-#define CONF_SAVESHADERS 16
-
constexpr int EFB_SCALE_AUTO_INTEGRAL = 0;
enum class AspectMode : int
@@ -138,7 +132,6 @@ struct VideoConfig final
bool bFastDepthCalc = false;
bool bVertexRounding = false;
int iEFBAccessTileSize = 0;
- int iLog = 0; // CONF_ bits
int iSaveTargetId = 0; // TODO: Should be dropped
u32 iMissingColorValue = 0;
bool bFastTextureSampling = false;