diff options
| author | 2020-07-16 22:16:08 -0400 | |
|---|---|---|
| committer | 2020-07-16 22:16:11 -0400 | |
| commit | be6b7591d90fc54524d78ebb5351f68ded35f4be (patch) | |
| tree | cc65598b5a109f82f1d1077f612e95486829a662 /src | |
| parent | Merge pull request #4292 from bunnei/mii-rewrite (diff) | |
| download | yuzu-be6b7591d90fc54524d78ebb5351f68ded35f4be.tar.gz yuzu-be6b7591d90fc54524d78ebb5351f68ded35f4be.tar.xz yuzu-be6b7591d90fc54524d78ebb5351f68ded35f4be.zip | |
macro_hle: Simplify shift expression in HLE_771BB18C62444DA0()
Given the expression involves a 32-bit value, this simplifies down to
just: 0x3ffffff. This is likely a remnant from testing that was never
cleaned up.
Resolves a -Wshift-overflow warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/macro/macro_hle.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/macro/macro_hle.cpp b/src/video_core/macro/macro_hle.cpp index 410f99018..37f784a35 100644 --- a/src/video_core/macro/macro_hle.cpp +++ b/src/video_core/macro/macro_hle.cpp | |||
| @@ -17,8 +17,7 @@ static void HLE_771BB18C62444DA0(Engines::Maxwell3D& maxwell3d, | |||
| 17 | const u32 instance_count = parameters[2] & maxwell3d.GetRegisterValue(0xD1B); | 17 | const u32 instance_count = parameters[2] & maxwell3d.GetRegisterValue(0xD1B); |
| 18 | 18 | ||
| 19 | maxwell3d.regs.draw.topology.Assign( | 19 | maxwell3d.regs.draw.topology.Assign( |
| 20 | static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0] & | 20 | static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0] & 0x3ffffff)); |
| 21 | ~(0x3ffffff << 26))); | ||
| 22 | maxwell3d.regs.vb_base_instance = parameters[5]; | 21 | maxwell3d.regs.vb_base_instance = parameters[5]; |
| 23 | maxwell3d.mme_draw.instance_count = instance_count; | 22 | maxwell3d.mme_draw.instance_count = instance_count; |
| 24 | maxwell3d.regs.vb_element_base = parameters[3]; | 23 | maxwell3d.regs.vb_element_base = parameters[3]; |