rasterizer_cache: Move microprofile to the top
This commit is contained in:
@ -15,6 +15,15 @@
|
||||
|
||||
namespace VideoCore {
|
||||
|
||||
MICROPROFILE_DECLARE(RasterizerCache_BlitSurface);
|
||||
MICROPROFILE_DECLARE(RasterizerCache_CopySurface);
|
||||
MICROPROFILE_DECLARE(RasterizerCache_SurfaceLoad);
|
||||
MICROPROFILE_DECLARE(RasterizerCache_SurfaceFlush);
|
||||
|
||||
inline auto RangeFromInterval(auto& map, const auto& interval) {
|
||||
return boost::make_iterator_range(map.equal_range(interval));
|
||||
}
|
||||
|
||||
template <class T>
|
||||
RasterizerCache<T>::RasterizerCache(Memory::MemorySystem& memory_, TextureRuntime& runtime_)
|
||||
: memory{memory_}, runtime{runtime_}, resolution_scale_factor{
|
||||
@ -154,7 +163,6 @@ auto RasterizerCache<T>::FindMatch(const SurfaceParams& params, ScaleMatch match
|
||||
return match_surface;
|
||||
}
|
||||
|
||||
MICROPROFILE_DECLARE(RasterizerCache_BlitSurface);
|
||||
template <class T>
|
||||
bool RasterizerCache<T>::BlitSurfaces(const Surface& src_surface, Common::Rectangle<u32> src_rect,
|
||||
const Surface& dst_surface, Common::Rectangle<u32> dst_rect) {
|
||||
@ -194,7 +202,6 @@ bool RasterizerCache<T>::BlitSurfaces(const Surface& src_surface, Common::Rectan
|
||||
}
|
||||
}
|
||||
|
||||
MICROPROFILE_DECLARE(RasterizerCache_CopySurface);
|
||||
template <class T>
|
||||
void RasterizerCache<T>::CopySurface(const Surface& src_surface, const Surface& dst_surface,
|
||||
SurfaceInterval copy_interval) {
|
||||
@ -767,7 +774,6 @@ void RasterizerCache<T>::ValidateSurface(const Surface& surface, PAddr addr, u32
|
||||
}
|
||||
}
|
||||
|
||||
MICROPROFILE_DECLARE(RasterizerCache_SurfaceLoad);
|
||||
template <class T>
|
||||
void RasterizerCache<T>::UploadSurface(const Surface& surface, SurfaceInterval interval) {
|
||||
const SurfaceParams load_info = surface->FromInterval(interval);
|
||||
@ -796,7 +802,6 @@ void RasterizerCache<T>::UploadSurface(const Surface& surface, SurfaceInterval i
|
||||
surface->Upload(upload, staging);
|
||||
}
|
||||
|
||||
MICROPROFILE_DECLARE(RasterizerCache_SurfaceFlush);
|
||||
template <class T>
|
||||
void RasterizerCache<T>::DownloadSurface(const Surface& surface, SurfaceInterval interval) {
|
||||
const SurfaceParams flush_info = surface->FromInterval(interval);
|
||||
|
@ -20,10 +20,6 @@ class MemorySystem;
|
||||
|
||||
namespace VideoCore {
|
||||
|
||||
inline auto RangeFromInterval(auto& map, const auto& interval) {
|
||||
return boost::make_iterator_range(map.equal_range(interval));
|
||||
}
|
||||
|
||||
enum class ScaleMatch {
|
||||
Exact, ///< Only accept same res scale
|
||||
Upscale, ///< Only allow higher scale than params
|
||||
|
Reference in New Issue
Block a user