Vulkan: Align for all Apple devices, not just M1.

This commit is contained in:
Unknown W. Brackets committed 2023-01-18 07:28:12 -08:00
1 parent 8d4007ce3f
commit 1c8bedbed9
1 file changed
+4 -1
+4 -1
View File
@@ -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 <algorithm>
#include <functional>
@@ -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.