summaryrefslogtreecommitdiff
path: root/Source
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
parent36414bdb55ae213473980791958284854fdee5dd (diff)
parentf358b67205aee5fba92314d7dee423b701810360 (diff)
Merge pull request #13005 from Tilka/display_list
VideoCommon: force display list alignment
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/AchievementManager.h4
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Core/AchievementManager.h b/Source/Core/Core/AchievementManager.h
index 6bc9e74a7a..13f2a9a14e 100644
--- a/Source/Core/Core/AchievementManager.h
+++ b/Source/Core/Core/AchievementManager.h
@@ -70,8 +70,8 @@ public:
static constexpr std::string_view BLUE = "#0B71C1";
static constexpr std::string_view APPROVED_LIST_FILENAME = "ApprovedInis.json";
static const inline Common::SHA1::Digest APPROVED_LIST_HASH = {
- 0x01, 0x1E, 0x2E, 0x74, 0xDD, 0x07, 0x79, 0xDA, 0x0E, 0x5D,
- 0xF8, 0x51, 0x09, 0xC7, 0x9B, 0x46, 0x22, 0x95, 0x50, 0xE9};
+ 0x50, 0x2F, 0x58, 0x02, 0x94, 0x60, 0x1B, 0x9F, 0x92, 0xC7,
+ 0x04, 0x17, 0x50, 0x2E, 0xF3, 0x09, 0x8C, 0x8C, 0xD6, 0xC0};
struct LeaderboardEntry
{
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;
}