summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.h
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2024-08-14 00:09:51 +0100
committerTillmann Karras <tilkax@gmail.com>2024-08-18 05:00:38 +0100
commit20f4643c74278977a1d36c43a52895cbe709d227 (patch)
tree935687724b3675b8a92779f98b2479dec5b15fc8 /Source/Core/VideoCommon/OpcodeDecoding.h
parent36414bdb55ae213473980791958284854fdee5dd (diff)
VideoCommon: force 32-byte alignment for display list address and size
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;
}