summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-07-27 12:17:50 +0200
committerLioncash <mathew1800@gmail.com>2021-07-27 12:17:52 +0200
commit296728ec46eebd0086cb130d7a74ef7ce83c9e1c (patch)
treedd190936731e73b3459fc0746052c6d6522f6127 /src/video_core
parentMerge pull request #6696 from ameerj/speed-limit-rename (diff)
downloadyuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar.gz
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar.bz2
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar.lz
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar.xz
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.tar.zst
yuzu-296728ec46eebd0086cb130d7a74ef7ce83c9e1c.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pass.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
index 73157a15d..561cf5e11 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp
+++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
@@ -258,10 +258,9 @@ std::pair<VkBuffer, VkDeviceSize> Uint8Pass::Assemble(u32 num_vertices, VkBuffer
update_descriptor_queue.AddBuffer(src_buffer, src_offset, num_vertices);
update_descriptor_queue.AddBuffer(staging.buffer, staging.offset, staging_size);
const void* const descriptor_data{update_descriptor_queue.UpdateData()};
- const VkBuffer buffer{staging.buffer};
scheduler.RequestOutsideRenderPassOperationContext();
- scheduler.Record([this, buffer, descriptor_data, num_vertices](vk::CommandBuffer cmdbuf) {
+ scheduler.Record([this, descriptor_data, num_vertices](vk::CommandBuffer cmdbuf) {
static constexpr u32 DISPATCH_SIZE = 1024;
static constexpr VkMemoryBarrier WRITE_BARRIER{
.sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER,
@@ -319,7 +318,7 @@ std::pair<VkBuffer, VkDeviceSize> QuadIndexedPass::Assemble(
const void* const descriptor_data{update_descriptor_queue.UpdateData()};
scheduler.RequestOutsideRenderPassOperationContext();
- scheduler.Record([this, buffer = staging.buffer, descriptor_data, num_tri_vertices, base_vertex,
+ scheduler.Record([this, descriptor_data, num_tri_vertices, base_vertex,
index_shift](vk::CommandBuffer cmdbuf) {
static constexpr u32 DISPATCH_SIZE = 1024;
static constexpr VkMemoryBarrier WRITE_BARRIER{