diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-21 00:14:17 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-21 00:23:54 +0200 |
commit | bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc (patch) | |
tree | c7745ac491c15a6d4519548812a7105903410a18 /src/video_core/engines | |
parent | Merge pull request #740 from Subv/acc_crash (diff) | |
download | yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar.gz yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar.bz2 yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar.lz yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar.xz yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.tar.zst yuzu-bb960c8cb43a3250d971cd8bb4adc5dd0c5baccc.zip |
Diffstat (limited to 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/fermi_2d.cpp | 6 | ||||
-rw-r--r-- | src/video_core/engines/fermi_2d.h | 6 | ||||
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 6 | ||||
-rw-r--r-- | src/video_core/engines/maxwell_compute.h | 6 | ||||
-rw-r--r-- | src/video_core/engines/maxwell_dma.h | 6 | ||||
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 12 |
6 files changed, 14 insertions, 28 deletions
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp index 34053e393..ea1555c5d 100644 --- a/src/video_core/engines/fermi_2d.cpp +++ b/src/video_core/engines/fermi_2d.cpp @@ -6,8 +6,7 @@ #include "video_core/engines/fermi_2d.h" #include "video_core/textures/decoders.h" -namespace Tegra { -namespace Engines { +namespace Tegra::Engines { Fermi2D::Fermi2D(MemoryManager& memory_manager) : memory_manager(memory_manager) {} @@ -69,5 +68,4 @@ void Fermi2D::HandleSurfaceCopy() { } } -} // namespace Engines -} // namespace Tegra +} // namespace Tegra::Engines diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.h index 70667cb94..dcf9ef8b9 100644 --- a/src/video_core/engines/fermi_2d.h +++ b/src/video_core/engines/fermi_2d.h @@ -12,8 +12,7 @@ #include "video_core/gpu.h" #include "video_core/memory_manager.h" -namespace Tegra { -namespace Engines { +namespace Tegra::Engines { #define FERMI2D_REG_INDEX(field_name) \ (offsetof(Tegra::Engines::Fermi2D::Regs, field_name) / sizeof(u32)) @@ -110,5 +109,4 @@ ASSERT_REG_POSITION(operation, 0xAB); ASSERT_REG_POSITION(trigger, 0xB5); #undef ASSERT_REG_POSITION -} // namespace Engines -} // namespace Tegra +} // namespace Tegra::Engines diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 91b077005..dbd106c53 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -17,8 +17,7 @@ #include "video_core/memory_manager.h" #include "video_core/textures/texture.h" -namespace Tegra { -namespace Engines { +namespace Tegra::Engines { #define MAXWELL3D_REG_INDEX(field_name) \ (offsetof(Tegra::Engines::Maxwell3D::Regs, field_name) / sizeof(u32)) @@ -898,5 +897,4 @@ ASSERT_REG_POSITION(tex_info_buffers.size[0], 0xD2F); #undef ASSERT_REG_POSITION -} // namespace Engines -} // namespace Tegra +} // namespace Tegra::Engines diff --git a/src/video_core/engines/maxwell_compute.h b/src/video_core/engines/maxwell_compute.h index 7262e1bcb..2b3e4ced6 100644 --- a/src/video_core/engines/maxwell_compute.h +++ b/src/video_core/engines/maxwell_compute.h @@ -6,8 +6,7 @@ #include "common/common_types.h" -namespace Tegra { -namespace Engines { +namespace Tegra::Engines { class MaxwellCompute final { public: @@ -18,5 +17,4 @@ public: void WriteReg(u32 method, u32 value); }; -} // namespace Engines -} // namespace Tegra +} // namespace Tegra::Engines diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h index 905749bde..7882f16e0 100644 --- a/src/video_core/engines/maxwell_dma.h +++ b/src/video_core/engines/maxwell_dma.h @@ -12,8 +12,7 @@ #include "video_core/gpu.h" #include "video_core/memory_manager.h" -namespace Tegra { -namespace Engines { +namespace Tegra::Engines { class MaxwellDMA final { public: @@ -151,5 +150,4 @@ ASSERT_REG_POSITION(src_params, 0x1CA); #undef ASSERT_REG_POSITION -} // namespace Engines -} // namespace Tegra +} // namespace Tegra::Engines diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 65fa1495f..939a71022 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -15,8 +15,7 @@ #include "common/bit_field.h" #include "common/common_types.h" -namespace Tegra { -namespace Shader { +namespace Tegra::Shader { struct Register { /// Number of registers @@ -109,8 +108,7 @@ union Sampler { u64 value{}; }; -} // namespace Shader -} // namespace Tegra +} // namespace Tegra::Shader namespace std { @@ -127,8 +125,7 @@ struct make_unsigned<Tegra::Shader::Register> { } // namespace std -namespace Tegra { -namespace Shader { +namespace Tegra::Shader { enum class Pred : u64 { UnusedIndex = 0x7, @@ -784,5 +781,4 @@ private: } }; -} // namespace Shader -} // namespace Tegra +} // namespace Tegra::Shader |