diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-20 23:35:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 23:35:05 +0200 |
commit | c53b688411d916192820520ef5280ad5e378aa11 (patch) | |
tree | 6b319d4eaa3b7807b9590268f308b1c03fb5d3a1 /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #6658 from Morph1984/render-window-fix (diff) | |
parent | Buffer cache: Fixes, Clang and Feedback. (diff) | |
download | yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar.gz yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar.bz2 yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar.lz yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar.xz yuzu-c53b688411d916192820520ef5280ad5e378aa11.tar.zst yuzu-c53b688411d916192820520ef5280ad5e378aa11.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index a8ffbe6ba..f57c15b37 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -706,6 +706,11 @@ void RasterizerVulkan::FlushWork() { AccelerateDMA::AccelerateDMA(BufferCache& buffer_cache_) : buffer_cache{buffer_cache_} {} +bool AccelerateDMA::BufferClear(GPUVAddr src_address, u64 amount, u32 value) { + std::scoped_lock lock{buffer_cache.mutex}; + return buffer_cache.DMAClear(src_address, amount, value); +} + bool AccelerateDMA::BufferCopy(GPUVAddr src_address, GPUVAddr dest_address, u64 amount) { std::scoped_lock lock{buffer_cache.mutex}; return buffer_cache.DMACopy(src_address, dest_address, amount); |