summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2023-01-05 23:10:21 +0100
committerBilly Laws <blaws05@gmail.com>2023-01-05 23:18:10 +0100
commit58fec43768c837c63453e87df8f337a2d139324a (patch)
tree161a20fc84cdc3c3086a470ca7afd09fe9f56169 /src/video_core
parentexternals: Update sirit (diff)
downloadyuzu-58fec43768c837c63453e87df8f337a2d139324a.tar
yuzu-58fec43768c837c63453e87df8f337a2d139324a.tar.gz
yuzu-58fec43768c837c63453e87df8f337a2d139324a.tar.bz2
yuzu-58fec43768c837c63453e87df8f337a2d139324a.tar.lz
yuzu-58fec43768c837c63453e87df8f337a2d139324a.tar.xz
yuzu-58fec43768c837c63453e87df8f337a2d139324a.tar.zst
yuzu-58fec43768c837c63453e87df8f337a2d139324a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index e6414df78..627917ab6 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -1941,7 +1941,8 @@ typename BufferCache<P>::Binding BufferCache<P>::StorageBufferBinding(GPUVAddr s
const u32 alignment = runtime.GetStorageBufferAlignment();
const GPUVAddr aligned_gpu_addr = Common::AlignDown(gpu_addr, alignment);
- const u32 aligned_size = Common::AlignUp(static_cast<u32>(gpu_addr - aligned_gpu_addr) + size, alignment);
+ const u32 aligned_size =
+ Common::AlignUp(static_cast<u32>(gpu_addr - aligned_gpu_addr) + size, alignment);
const std::optional<VAddr> cpu_addr = gpu_memory->GpuToCpuAddress(aligned_gpu_addr);
if (!cpu_addr || size == 0) {