diff options
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 5 | ||||
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 081a574e8..f5b10411b 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h | |||
| @@ -1192,11 +1192,6 @@ void BufferCache<P>::UpdateDrawIndirect() { | |||
| 1192 | .size = static_cast<u32>(size), | 1192 | .size = static_cast<u32>(size), |
| 1193 | .buffer_id = FindBuffer(*cpu_addr, static_cast<u32>(size)), | 1193 | .buffer_id = FindBuffer(*cpu_addr, static_cast<u32>(size)), |
| 1194 | }; | 1194 | }; |
| 1195 | VAddr cpu_addr_start = Common::AlignDown(*cpu_addr, 64); | ||
| 1196 | VAddr cpu_addr_end = Common::AlignUp(*cpu_addr + size, 64); | ||
| 1197 | IntervalType interval{cpu_addr_start, cpu_addr_end}; | ||
| 1198 | ClearDownload(interval); | ||
| 1199 | common_ranges.subtract(interval); | ||
| 1200 | }; | 1195 | }; |
| 1201 | if (current_draw_indirect->include_count) { | 1196 | if (current_draw_indirect->include_count) { |
| 1202 | update(current_draw_indirect->count_start_address, sizeof(u32), | 1197 | update(current_draw_indirect->count_start_address, sizeof(u32), |
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>( |