diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-16 17:38:48 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-07-19 03:03:30 +0200 |
commit | 45fa12a05c8ba20259979d4b9e40d7401d825502 (patch) | |
tree | 9186a91982f02a5a1c8464e343256f4f112a3d4d /src/video_core/texture_cache/surface_base.cpp | |
parent | video_core/control_flow: Make program_size for ScanFlow() a std::size_t (diff) | |
download | yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar.gz yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar.bz2 yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar.lz yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar.xz yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.tar.zst yuzu-45fa12a05c8ba20259979d4b9e40d7401d825502.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/surface_base.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/surface_base.cpp b/src/video_core/texture_cache/surface_base.cpp index 6af9044ca..683c49207 100644 --- a/src/video_core/texture_cache/surface_base.cpp +++ b/src/video_core/texture_cache/surface_base.cpp @@ -24,9 +24,8 @@ StagingCache::StagingCache() = default; StagingCache::~StagingCache() = default; SurfaceBaseImpl::SurfaceBaseImpl(GPUVAddr gpu_addr, const SurfaceParams& params) - : params{params}, mipmap_sizes(params.num_levels), - mipmap_offsets(params.num_levels), gpu_addr{gpu_addr}, host_memory_size{ - params.GetHostSizeInBytes()} { + : params{params}, host_memory_size{params.GetHostSizeInBytes()}, gpu_addr{gpu_addr}, + mipmap_sizes(params.num_levels), mipmap_offsets(params.num_levels) { std::size_t offset = 0; for (u32 level = 0; level < params.num_levels; ++level) { const std::size_t mipmap_size{params.GetGuestMipmapSize(level)}; |