diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-19 06:25:52 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-22 00:55:44 +0200 |
commit | 0bbae63300fc83505d34f5ca3f9a5be10e42d7c7 (patch) | |
tree | a7a1b11034b64ca73adea93260efe0d98bc30707 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #3718 from ReinUsesLisp/better-pipeline-state (diff) | |
download | yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar.gz yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar.bz2 yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar.lz yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar.xz yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.tar.zst yuzu-0bbae63300fc83505d34f5ca3f9a5be10e42d7c7.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 71007bbe8..2ebf34fc4 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -834,8 +834,8 @@ void RasterizerVulkan::SetupVertexArrays(FixedPipelineState::VertexInput& vertex const GPUVAddr start{vertex_array.StartAddress()}; const GPUVAddr end{regs.vertex_array_limit[index].LimitAddress()}; - ASSERT(end > start); - const std::size_t size{end - start + 1}; + ASSERT(end >= start); + const std::size_t size{end - start}; const auto [buffer, offset] = buffer_cache.UploadMemory(start, size); buffer_bindings.AddVertexBinding(buffer, offset); } @@ -1179,7 +1179,7 @@ std::size_t RasterizerVulkan::CalculateVertexArraysSize() const { const GPUVAddr end{regs.vertex_array_limit[index].LimitAddress()}; DEBUG_ASSERT(end >= start); - size += (end - start + 1) * regs.vertex_array[index].enable; + size += (end - start) * regs.vertex_array[index].enable; } return size; } |