From c55a889c23ecd489e981546e4639d6d881ff0b40 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 14 Aug 2022 01:06:57 +0300 Subject: [PATCH] vk: Initialize buffer info blocks to avoid null descriptors --- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index 5876a9b573..25f5363dcf 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -467,6 +467,10 @@ VKGSRender::VKGSRender(utils::serial* ar) noexcept : GSRender(ar) } // Initialize optional allocation information with placeholders + m_vertex_env_buffer_info = { m_vertex_env_ring_info.heap->value, 0, 32 }; + m_vertex_constants_buffer_info = { m_transform_constants_ring_info.heap->value, 0, 32 }; + m_fragment_env_buffer_info = { m_fragment_env_ring_info.heap->value, 0, 32 }; + m_fragment_texture_params_buffer_info = { m_fragment_texture_params_ring_info.heap->value, 0, 32 }; m_raster_env_buffer_info = { m_raster_env_ring_info.heap->value, 0, 128 }; const auto limits = m_device->gpu().get_limits();