Merge pull request #10946 from Pokechu22/remove-iLog
VideoCommon: Remove old iLog field
This commit is contained in:
commit
ebf95370ef
|
@ -156,31 +156,6 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
|
||||||
if (!spv_messages.empty())
|
if (!spv_messages.empty())
|
||||||
WARN_LOG_FMT(VIDEO, "SPIR-V conversion messages: {}", spv_messages);
|
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;
|
return out_code;
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
@ -17,12 +17,6 @@
|
||||||
#include "VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.h"
|
#include "VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.h"
|
||||||
#include "VideoCommon/VideoCommon.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;
|
constexpr int EFB_SCALE_AUTO_INTEGRAL = 0;
|
||||||
|
|
||||||
enum class AspectMode : int
|
enum class AspectMode : int
|
||||||
|
@ -138,7 +132,6 @@ struct VideoConfig final
|
||||||
bool bFastDepthCalc = false;
|
bool bFastDepthCalc = false;
|
||||||
bool bVertexRounding = false;
|
bool bVertexRounding = false;
|
||||||
int iEFBAccessTileSize = 0;
|
int iEFBAccessTileSize = 0;
|
||||||
int iLog = 0; // CONF_ bits
|
|
||||||
int iSaveTargetId = 0; // TODO: Should be dropped
|
int iSaveTargetId = 0; // TODO: Should be dropped
|
||||||
u32 iMissingColorValue = 0;
|
u32 iMissingColorValue = 0;
|
||||||
bool bFastTextureSampling = false;
|
bool bFastTextureSampling = false;
|
||||||
|
|
Loading…
Reference in New Issue