From 20f4643c74278977a1d36c43a52895cbe709d227 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Wed, 14 Aug 2024 00:09:51 +0100 Subject: [PATCH] VideoCommon: force 32-byte alignment for display list address and size --- Source/Core/VideoCommon/OpcodeDecoding.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }