mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-09 01:13:33 +00:00
Vulkan: Force align verts to 4 on Apple devices.
This commit is contained in:
parent
40abcdb689
commit
8d4007ce3f
@ -1254,7 +1254,7 @@ void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options,
|
||||
decOff += DecFmtSize(decFmt.posfmt);
|
||||
}
|
||||
|
||||
decFmt.stride = decOff;
|
||||
decFmt.stride = options.alignOutputToWord ? align(decOff, 4) : decOff;
|
||||
|
||||
decFmt.ComputeID();
|
||||
|
||||
|
@ -324,6 +324,7 @@ struct VertexDecoderOptions {
|
||||
bool expandAllWeightsToFloat;
|
||||
bool expand8BitNormalsToFloat;
|
||||
bool applySkinInDecode;
|
||||
bool alignOutputToWord;
|
||||
};
|
||||
|
||||
class VertexDecoder {
|
||||
|
@ -70,6 +70,7 @@ DrawEngineVulkan::DrawEngineVulkan(Draw::DrawContext *draw)
|
||||
: draw_(draw), vai_(1024) {
|
||||
decOptions_.expandAllWeightsToFloat = false;
|
||||
decOptions_.expand8BitNormalsToFloat = false;
|
||||
decOptions_.alignOutputToWord = draw->GetDeviceCaps().vendor == Draw::GPUVendor::VENDOR_APPLE;
|
||||
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user