diff options
| author | 2023-11-19 09:49:30 -0500 | |
|---|---|---|
| committer | 2023-11-19 09:49:30 -0500 | |
| commit | efb3165e3d52c605f46976923bb49ed55aa598e2 (patch) | |
| tree | 19bc1f82ca33bb7474b3f1558fe88b60592e39e3 /src/video_core/engines | |
| parent | shader_recompiler: Fix spelling of "derivate" (#12067) (diff) | |
| parent | Buffer Cache: Eliminate clears on Indirect buffers (diff) | |
| download | yuzu-efb3165e3d52c605f46976923bb49ed55aa598e2.tar.gz yuzu-efb3165e3d52c605f46976923bb49ed55aa598e2.tar.xz yuzu-efb3165e3d52c605f46976923bb49ed55aa598e2.zip | |
Merge pull request #12072 from FernandoS27/winter-is-2-seconds-too-soon
Buffer Cache: Eliminate clears on Indirect buffers
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 32d767d85..592c28ba3 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -268,7 +268,7 @@ size_t Maxwell3D::EstimateIndexBufferSize() { | |||
| 268 | std::numeric_limits<u32>::max()}; | 268 | std::numeric_limits<u32>::max()}; |
| 269 | const size_t byte_size = regs.index_buffer.FormatSizeInBytes(); | 269 | const size_t byte_size = regs.index_buffer.FormatSizeInBytes(); |
| 270 | const size_t log2_byte_size = Common::Log2Ceil64(byte_size); | 270 | const size_t log2_byte_size = Common::Log2Ceil64(byte_size); |
| 271 | const size_t cap{GetMaxCurrentVertices() * 3 * byte_size}; | 271 | const size_t cap{GetMaxCurrentVertices() * 4 * byte_size}; |
| 272 | const size_t lower_cap = | 272 | const size_t lower_cap = |
| 273 | std::min<size_t>(static_cast<size_t>(end_address - start_address), cap); | 273 | std::min<size_t>(static_cast<size_t>(end_address - start_address), cap); |
| 274 | return std::min<size_t>( | 274 | return std::min<size_t>( |