From 1c8bedbed9a45a5a9ba5f3309aa043f2fbe95a87 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 18 Jan 2023 07:28:12 -0800 Subject: [PATCH] Vulkan: Align for all Apple devices, not just M1. --- GPU/Vulkan/DrawEngineVulkan.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index 0710c31fef..c4a3be72de 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -15,6 +15,7 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. +#include "ppsspp_config.h" #include #include @@ -70,7 +71,9 @@ DrawEngineVulkan::DrawEngineVulkan(Draw::DrawContext *draw) : draw_(draw), vai_(1024) { decOptions_.expandAllWeightsToFloat = false; decOptions_.expand8BitNormalsToFloat = false; - decOptions_.alignOutputToWord = draw->GetDeviceCaps().vendor == Draw::GPUVendor::VENDOR_APPLE; +#if PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS) + decOptions_.alignOutputToWord = true; +#endif // Allocate nicely aligned memory. Maybe graphics drivers will appreciate it. // All this is a LOT of memory, need to see if we can cut down somehow.