summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.h
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-08-18 06:36:31 +0100
committerGitHub <noreply@github.com>2024-08-18 06:36:31 +0100
commitc9af09eca7e754954b873931b6ccbd75ca4ddfd3 (patch)
tree05a050ebbbad5c2a886b7dd195c657cec71f7066 /Source/Core/VideoCommon/OpcodeDecoding.h
parent36414bdb55ae213473980791958284854fdee5dd (diff)
parentf358b67205aee5fba92314d7dee423b701810360 (diff)
Merge pull request #13005 from Tilka/display_list
VideoCommon: force display list alignment
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.h')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.h b/Source/Core/VideoCommon/OpcodeDecoding.h
index 19c66716da..42991b7715 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.h
+++ b/Source/Core/VideoCommon/OpcodeDecoding.h
@@ -203,7 +203,8 @@ static DOLPHIN_FORCE_INLINE u32 RunCommand(const u8* data, u32 available, T& cal
const u32 address = Common::swap32(&data[1]);
const u32 size = Common::swap32(&data[5]);
- callback.OnDisplayList(address, size);
+ // Force 32-byte alignment for both the address and the size.
+ callback.OnDisplayList(address & ~31, size & ~31);
return 9;
}