From df19810c6c997ebbe745c7dda7f40122fd7d6c8a Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 3 Dec 2022 14:31:17 +0000 Subject: [PATCH] Always set vertex stride for unbound buffers --- .../skyline/gpu/interconnect/maxwell_3d/active_state.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp index 36ba2226..1b221ad1 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp @@ -43,9 +43,9 @@ namespace skyline::gpu::interconnect::maxwell3d { megaBufferBinding = {}; if (ctx.gpu.traits.supportsNullDescriptor) - builder.SetVertexBuffer(index, BufferBinding{}); + builder.SetVertexBuffer(index, BufferBinding{}, ctx.gpu.traits.supportsExtendedDynamicState, engine->vertexStream.format.stride); else - builder.SetVertexBuffer(index, {ctx.gpu.megaBufferAllocator.Allocate(ctx.executor.cycle, 0).buffer}); + builder.SetVertexBuffer(index, {ctx.gpu.megaBufferAllocator.Allocate(ctx.executor.cycle, 0).buffer}, ctx.gpu.traits.supportsExtendedDynamicState, engine->vertexStream.format.stride); } bool VertexBufferState::Refresh(InterconnectContext &ctx, StateUpdateBuilder &builder) { @@ -55,9 +55,9 @@ namespace skyline::gpu::interconnect::maxwell3d { megaBufferBinding = newMegaBufferBinding; if (megaBufferBinding) - builder.SetVertexBuffer(index, megaBufferBinding); + builder.SetVertexBuffer(index, megaBufferBinding, ctx.gpu.traits.supportsExtendedDynamicState, engine->vertexStream.format.stride); else - builder.SetVertexBuffer(index, *view); + builder.SetVertexBuffer(index, *view, ctx.gpu.traits.supportsExtendedDynamicState, engine->vertexStream.format.stride); } } return false;