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
This commit is contained in:
Billy Laws 2022-08-04 20:07:18 +01:00
parent c966cd3b26
commit 540437b547

View File

@ -2668,6 +2668,7 @@ namespace skyline::gpu::interconnect {
indexBuffer.view = executor.AcquireBufferManager().FindOrCreate(span<u8>(mapping.data(), size), executor.tag, [this](std::shared_ptr<Buffer> buffer, ContextLock<Buffer> &&lock) {
executor.AttachLockedBuffer(buffer, std::move(lock));
});
indexBuffer.viewSize = size;
return indexBuffer.view;
}