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/buffer_cache | |
| 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/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 5 |
1 files changed, 0 insertions, 5 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), |