From 540437b54763636402c774f26e13926c053c3470 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 4 Aug 2022 20:07:18 +0100 Subject: [PATCH] Fixup index buffer view caching We forgot to set the view size, which would end up forcing a view to be recreated with every call --- app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index e75f32c2..bf5ade7c 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -2668,6 +2668,7 @@ namespace skyline::gpu::interconnect { indexBuffer.view = executor.AcquireBufferManager().FindOrCreate(span(mapping.data(), size), executor.tag, [this](std::shared_ptr buffer, ContextLock &&lock) { executor.AttachLockedBuffer(buffer, std::move(lock)); }); + indexBuffer.viewSize = size; return indexBuffer.view; }