diff options
| author | 2015-09-10 10:26:21 -0400 | |
|---|---|---|
| committer | 2015-09-10 10:26:21 -0400 | |
| commit | 526eb33d1eca57cf82e5098b2abaef241b431b5e (patch) | |
| tree | 8970c0c97751948260a7dac8e0ea6eef7323da03 /src | |
| parent | Merge pull request #1131 from lioncash/uninit (diff) | |
| download | yuzu-526eb33d1eca57cf82e5098b2abaef241b431b5e.tar.gz yuzu-526eb33d1eca57cf82e5098b2abaef241b431b5e.tar.xz yuzu-526eb33d1eca57cf82e5098b2abaef241b431b5e.zip | |
video_core: Remove unused variables
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/shader/shader.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 059445f7d..9a61e700b 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp | |||
| @@ -298,7 +298,6 @@ void DumpShader(const std::string& filename, const Regs::ShaderConfig& config, c | |||
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | // Write data to file | 300 | // Write data to file |
| 301 | static int dump_index = 0; | ||
| 302 | std::ofstream file(filename, std::ios_base::out | std::ios_base::binary); | 301 | std::ofstream file(filename, std::ios_base::out | std::ios_base::binary); |
| 303 | 302 | ||
| 304 | for (auto& chunk : writing_queue) { | 303 | for (auto& chunk : writing_queue) { |
| @@ -695,7 +694,6 @@ void DumpTexture(const Pica::Regs::TextureConfig& texture_config, u8* data) { | |||
| 695 | for (unsigned y = 0; y < texture_config.height; ++y) | 694 | for (unsigned y = 0; y < texture_config.height; ++y) |
| 696 | { | 695 | { |
| 697 | u8* row_ptr = (u8*)buf + y * row_stride; | 696 | u8* row_ptr = (u8*)buf + y * row_stride; |
| 698 | u8* ptr = row_ptr; | ||
| 699 | png_write_row(png_ptr, row_ptr); | 697 | png_write_row(png_ptr, row_ptr); |
| 700 | } | 698 | } |
| 701 | 699 | ||
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index f89117521..59f54236b 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -146,7 +146,6 @@ OutputVertex Run(UnitState<false>& state, const InputVertex& input, int num_attr | |||
| 146 | DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes, const Regs::ShaderConfig& config, const State::ShaderSetup& setup) { | 146 | DebugData<true> ProduceDebugInfo(const InputVertex& input, int num_attributes, const Regs::ShaderConfig& config, const State::ShaderSetup& setup) { |
| 147 | UnitState<true> state; | 147 | UnitState<true> state; |
| 148 | 148 | ||
| 149 | const auto& shader_memory = setup.program_code; | ||
| 150 | state.program_counter = config.main_offset; | 149 | state.program_counter = config.main_offset; |
| 151 | state.debug.max_offset = 0; | 150 | state.debug.max_offset = 0; |
| 152 | state.debug.max_opdesc_id = 0; | 151 | state.debug.max_opdesc_id = 0; |
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index 0c02976ac..00415e402 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp | |||
| @@ -749,7 +749,6 @@ void JitCompiler::Compile_NextInstr(unsigned* offset) { | |||
| 749 | 749 | ||
| 750 | CompiledShader* JitCompiler::Compile() { | 750 | CompiledShader* JitCompiler::Compile() { |
| 751 | const u8* start = GetCodePtr(); | 751 | const u8* start = GetCodePtr(); |
| 752 | const auto& code = g_state.vs.program_code; | ||
| 753 | unsigned offset = g_state.regs.vs.main_offset; | 752 | unsigned offset = g_state.regs.vs.main_offset; |
| 754 | 753 | ||
| 755 | // The stack pointer is 8 modulo 16 at the entry of a procedure | 754 | // The stack pointer is 8 modulo 16 at the entry of a procedure |