Image: Fix possible unaligned movaps

wip2
Stenzek 2 weeks ago
parent 6802f77cb9
commit bceadadcb4
No known key found for this signature in database

@ -336,7 +336,8 @@ def check_regression_test(baselinedir, testdir, name):
def check_regression_tests(baselinedir, testdir):
gamedirs = glob.glob(baselinedir + "/*", recursive=False)
gamedirs.sort(key=lambda x: os.path.basename(x))
success = 0
failure = 0

@ -35,6 +35,7 @@ def run_regression_tests(runner, gamedirs, destdir, dump_interval, frames, paral
for gamedir in gamedirs:
paths += glob.glob(os.path.realpath(gamedir) + "/*.*", recursive=True)
gamepaths = list(filter(is_game_path, paths))
gamepaths.sort(key=lambda x: os.path.basename(x))
try:
if not os.path.isdir(destdir):

@ -879,6 +879,8 @@ std::string RegTestHost::GetFrameDumpPath(u32 frame)
int main(int argc, char* argv[])
{
CrashHandler::Install(&Bus::CleanupMemoryMap);
Error startup_error;
if (!System::PerformEarlyHardwareChecks(&startup_error) || !System::ProcessStartup(&startup_error))
{

@ -63,11 +63,8 @@ public:
ALWAYS_INLINE ImageFormat GetFormat() const { return m_format; }
ALWAYS_INLINE const u8* GetPixels() const { return std::assume_aligned<VECTOR_ALIGNMENT>(m_pixels.get()); }
ALWAYS_INLINE u8* GetPixels() { return std::assume_aligned<VECTOR_ALIGNMENT>(m_pixels.get()); }
ALWAYS_INLINE const u8* GetRowPixels(u32 y) const
{
return std::assume_aligned<VECTOR_ALIGNMENT>(&m_pixels[y * m_pitch]);
}
ALWAYS_INLINE u8* GetRowPixels(u32 y) { return std::assume_aligned<VECTOR_ALIGNMENT>(&m_pixels[y * m_pitch]); }
ALWAYS_INLINE const u8* GetRowPixels(u32 y) const { return &m_pixels[y * m_pitch]; }
ALWAYS_INLINE u8* GetRowPixels(u32 y) { return &m_pixels[y * m_pitch]; }
u32 GetBlocksWide() const;
u32 GetBlocksHigh() const;

Loading…
Cancel
Save