mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Vulkan: Align for all Apple devices, not just M1.
This commit is contained in:
1 parent
8d4007ce3f
commit
1c8bedbed9
1 file changed
+4
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user