mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
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.
This commit is contained in:
parent
3bbf4462db
commit
be6b7591d9
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ static void HLE_771BB18C62444DA0(Engines::Maxwell3D& maxwell3d,
|
||||||
const u32 instance_count = parameters[2] & maxwell3d.GetRegisterValue(0xD1B);
|
const u32 instance_count = parameters[2] & maxwell3d.GetRegisterValue(0xD1B);
|
||||||
|
|
||||||
maxwell3d.regs.draw.topology.Assign(
|
maxwell3d.regs.draw.topology.Assign(
|
||||||
static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0] &
|
static_cast<Tegra::Engines::Maxwell3D::Regs::PrimitiveTopology>(parameters[0] & 0x3ffffff));
|
||||||
~(0x3ffffff << 26)));
|
|
||||||
maxwell3d.regs.vb_base_instance = parameters[5];
|
maxwell3d.regs.vb_base_instance = parameters[5];
|
||||||
maxwell3d.mme_draw.instance_count = instance_count;
|
maxwell3d.mme_draw.instance_count = instance_count;
|
||||||
maxwell3d.regs.vb_element_base = parameters[3];
|
maxwell3d.regs.vb_element_base = parameters[3];
|
||||||
|
|
Loading…
Reference in a new issue