diff options
| author | 2019-07-16 11:32:35 -0400 | |
|---|---|---|
| committer | 2019-07-18 21:03:29 -0400 | |
| commit | 3df9558593d41b8c9bda905dd745a67ff00db033 (patch) | |
| tree | f2393a96e23b4ce25a6ecd6011dd2f87f34e6f00 | |
| parent | video_core/shader/decode: Prevent sign-conversion warnings (diff) | |
| download | yuzu-3df9558593d41b8c9bda905dd745a67ff00db033.tar.gz yuzu-3df9558593d41b8c9bda905dd745a67ff00db033.tar.xz yuzu-3df9558593d41b8c9bda905dd745a67ff00db033.zip | |
video_core/control_flow: Place all internally linked types/functions within an anonymous namespace
Previously, quite a few functions were being linked with external
linkage.
| -rw-r--r-- | src/video_core/shader/control_flow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp index fdcc970ff..440729258 100644 --- a/src/video_core/shader/control_flow.cpp +++ b/src/video_core/shader/control_flow.cpp | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include "video_core/shader/shader_ir.h" | 15 | #include "video_core/shader/shader_ir.h" |
| 16 | 16 | ||
| 17 | namespace VideoCommon::Shader { | 17 | namespace VideoCommon::Shader { |
| 18 | 18 | namespace { | |
| 19 | using Tegra::Shader::Instruction; | 19 | using Tegra::Shader::Instruction; |
| 20 | using Tegra::Shader::OpCode; | 20 | using Tegra::Shader::OpCode; |
| 21 | 21 | ||
| @@ -411,6 +411,7 @@ bool TryQuery(CFGRebuildState& state) { | |||
| 411 | state.queries.push_back(conditional_query); | 411 | state.queries.push_back(conditional_query); |
| 412 | return true; | 412 | return true; |
| 413 | } | 413 | } |
| 414 | } // Anonymous namespace | ||
| 414 | 415 | ||
| 415 | std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, | 416 | std::optional<ShaderCharacteristics> ScanFlow(const ProgramCode& program_code, u32 program_size, |
| 416 | u32 start_address) { | 417 | u32 start_address) { |