mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +00:00
Image: Fix possible unaligned movaps
This commit is contained in:
parent
6802f77cb9
commit
bceadadcb4
@ -336,6 +336,7 @@ def check_regression_test(baselinedir, testdir, name):
|
|||||||
|
|
||||||
def check_regression_tests(baselinedir, testdir):
|
def check_regression_tests(baselinedir, testdir):
|
||||||
gamedirs = glob.glob(baselinedir + "/*", recursive=False)
|
gamedirs = glob.glob(baselinedir + "/*", recursive=False)
|
||||||
|
gamedirs.sort(key=lambda x: os.path.basename(x))
|
||||||
|
|
||||||
success = 0
|
success = 0
|
||||||
failure = 0
|
failure = 0
|
||||||
|
@ -35,6 +35,7 @@ def run_regression_tests(runner, gamedirs, destdir, dump_interval, frames, paral
|
|||||||
for gamedir in gamedirs:
|
for gamedir in gamedirs:
|
||||||
paths += glob.glob(os.path.realpath(gamedir) + "/*.*", recursive=True)
|
paths += glob.glob(os.path.realpath(gamedir) + "/*.*", recursive=True)
|
||||||
gamepaths = list(filter(is_game_path, paths))
|
gamepaths = list(filter(is_game_path, paths))
|
||||||
|
gamepaths.sort(key=lambda x: os.path.basename(x))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if not os.path.isdir(destdir):
|
if not os.path.isdir(destdir):
|
||||||
|
@ -879,6 +879,8 @@ std::string RegTestHost::GetFrameDumpPath(u32 frame)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
CrashHandler::Install(&Bus::CleanupMemoryMap);
|
||||||
|
|
||||||
Error startup_error;
|
Error startup_error;
|
||||||
if (!System::PerformEarlyHardwareChecks(&startup_error) || !System::ProcessStartup(&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 ImageFormat GetFormat() const { return m_format; }
|
||||||
ALWAYS_INLINE const u8* GetPixels() const { return std::assume_aligned<VECTOR_ALIGNMENT>(m_pixels.get()); }
|
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 u8* GetPixels() { return std::assume_aligned<VECTOR_ALIGNMENT>(m_pixels.get()); }
|
||||||
ALWAYS_INLINE const u8* GetRowPixels(u32 y) const
|
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]; }
|
||||||
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]); }
|
|
||||||
|
|
||||||
u32 GetBlocksWide() const;
|
u32 GetBlocksWide() const;
|
||||||
u32 GetBlocksHigh() const;
|
u32 GetBlocksHigh() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user