diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/shader/control_flow.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/shader/control_flow.h | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 7802fd808..c5ec7d9f1 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -101,7 +101,8 @@ void Maxwell3D::InitializeRegisterDefaults() { | |||
| 101 | #define DIRTY_REGS_POS(field_name) (offsetof(Maxwell3D::DirtyRegs, field_name)) | 101 | #define DIRTY_REGS_POS(field_name) (offsetof(Maxwell3D::DirtyRegs, field_name)) |
| 102 | 102 | ||
| 103 | void Maxwell3D::InitDirtySettings() { | 103 | void Maxwell3D::InitDirtySettings() { |
| 104 | const auto set_block = [this](const u32 start, const u32 range, const u8 position) { | 104 | const auto set_block = [this](const std::size_t start, const std::size_t range, |
| 105 | const u8 position) { | ||
| 105 | const auto start_itr = dirty_pointers.begin() + start; | 106 | const auto start_itr = dirty_pointers.begin() + start; |
| 106 | const auto end_itr = start_itr + range; | 107 | const auto end_itr = start_itr + range; |
| 107 | std::fill(start_itr, end_itr, position); | 108 | std::fill(start_itr, end_itr, position); |
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index 268d1aed0..9d21f45de 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp | |||
| @@ -473,8 +473,8 @@ void DecompileShader(CFGRebuildState& state) { | |||
| 473 | state.manager->Decompile(); | 473 | state.manager->Decompile(); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, | 476 | std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, |
| 477 | u32 start_address, | 477 | std::size_t program_size, u32 start_address, |
| 478 | const CompilerSettings& settings) { | 478 | const CompilerSettings& settings) { |
| 479 | auto result_out = std::make_unique<ShaderCharacteristics>(); | 479 | auto result_out = std::make_unique<ShaderCharacteristics>(); |
| 480 | if (settings.depth == CompileDepth::BruteForce) { | 480 | if (settings.depth == CompileDepth::BruteForce) { |
diff --git a/src/video_core/shader/control_flow.h b/src/video_core/shader/control_flow.h index 74e54a5c7..37e987d62 100644 --- a/src/video_core/shader/control_flow.h +++ b/src/video_core/shader/control_flow.h | |||
| @@ -76,8 +76,8 @@ struct ShaderCharacteristics { | |||
| 76 | CompilerSettings settings{}; | 76 | CompilerSettings settings{}; |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, | 79 | std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, |
| 80 | u32 start_address, | 80 | std::size_t program_size, u32 start_address, |
| 81 | const CompilerSettings& settings); | 81 | const CompilerSettings& settings); |
| 82 | 82 | ||
| 83 | } // namespace VideoCommon::Shader | 83 | } // namespace VideoCommon::Shader |