texture_cache: Style and Corrections

This commit is contained in:
Fernando Sahmkow 2019-06-20 21:22:20 -04:00 committed by FernandoS27
parent 51ba60b27e
commit d1812316e1
7 changed files with 75 additions and 71 deletions

View file

@ -101,7 +101,7 @@ MatchStructureResult SurfaceBaseImpl::MatchesStructure(const SurfaceParams& rhs)
std::optional<std::pair<u32, u32>> SurfaceBaseImpl::GetLayerMipmap(
const GPUVAddr candidate_gpu_addr) const {
if (gpu_addr == candidate_gpu_addr) {
return {{0,0}};
return {{0, 0}};
}
if (candidate_gpu_addr < gpu_addr) {
return {};

View file

@ -254,7 +254,8 @@ public:
}
return {};
} else {
return GetView(ViewParams(view_params.target, layer, 1, mipmap, end_mipmap - mipmap + 1));
return GetView(
ViewParams(view_params.target, layer, 1, mipmap, end_mipmap - mipmap + 1));
}
}

View file

@ -18,6 +18,7 @@
#include "common/common_types.h"
#include "common/math_util.h"
#include "core/memory.h"
#include "core/settings.h"
#include "video_core/engines/fermi_2d.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/gpu.h"