diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-25 19:04:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 19:04:56 +0200 |
commit | b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee (patch) | |
tree | 66d350fdcc096ca621932f76349669cbe0e63a72 /src/video_core/texture_cache/surface_base.cpp | |
parent | Merge pull request #2737 from FernandoS27/track-fix (diff) | |
parent | video_core/control_flow: Provide operator!= for types with operator== (diff) | |
download | yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.gz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.bz2 yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.lz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.xz yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.tar.zst yuzu-b0ff3179ef8f4ebb6ccd2bdc9bccc64e3212edee.zip |
Diffstat (limited to 'src/video_core/texture_cache/surface_base.cpp')
-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)}; |