summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-15 18:05:50 -0400
committerGravatar Lioncash2019-10-15 19:10:28 -0400
commit77b4916b3311f97a39e3111976dcffc33ff96a1c (patch)
tree48432e50531e55601bb82b48216f3d1dc6f1fb6b /src
parentmaxwell_3d: Silence truncation warnings (diff)
downloadyuzu-77b4916b3311f97a39e3111976dcffc33ff96a1c.tar.gz
yuzu-77b4916b3311f97a39e3111976dcffc33ff96a1c.tar.xz
yuzu-77b4916b3311f97a39e3111976dcffc33ff96a1c.zip
control_flow: Silence truncation warnings
This can be trivially fixed by making the input size a size_t. CFGRebuildState's constructor parameter is already a std::size_t, so this just makes the size type fully conform with it.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/control_flow.cpp4
-rw-r--r--src/video_core/shader/control_flow.h4
2 files changed, 4 insertions, 4 deletions
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
476std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, 476std::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
79std::unique_ptr<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, 79std::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