Browse Source
texture_cache: Address ameerj's review
pull/15/merge
yzct12345
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
7 deletions
-
src/video_core/texture_cache/image_view_info.cpp
-
src/video_core/texture_cache/texture_cache.h
-
src/video_core/texture_cache/texture_cache_base.h
|
|
|
@ -14,6 +14,8 @@ namespace VideoCommon { |
|
|
|
|
|
|
|
namespace { |
|
|
|
|
|
|
|
using Tegra::Texture::TextureType; |
|
|
|
|
|
|
|
constexpr u8 RENDER_TARGET_SWIZZLE = std::numeric_limits<u8>::max(); |
|
|
|
|
|
|
|
[[nodiscard]] u8 CastSwizzle(SwizzleSource source) { |
|
|
|
|
|
|
|
@ -4,6 +4,8 @@ |
|
|
|
|
|
|
|
#pragma once |
|
|
|
|
|
|
|
#include "common/alignment.h" |
|
|
|
#include "common/settings.h" |
|
|
|
#include "video_core/dirty_flags.h" |
|
|
|
#include "video_core/texture_cache/samples_helper.h" |
|
|
|
#include "video_core/texture_cache/texture_cache_base.h" |
|
|
|
|
|
|
|
@ -10,15 +10,10 @@ |
|
|
|
#include <type_traits> |
|
|
|
#include <unordered_map> |
|
|
|
#include <unordered_set> |
|
|
|
#include <utility> |
|
|
|
#include <vector> |
|
|
|
|
|
|
|
#include <boost/container/small_vector.hpp> |
|
|
|
|
|
|
|
#include "common/alignment.h" |
|
|
|
#include "common/common_types.h" |
|
|
|
#include "common/literals.h" |
|
|
|
#include "common/settings.h" |
|
|
|
#include "video_core/compatible_formats.h" |
|
|
|
#include "video_core/delayed_destruction_ring.h" |
|
|
|
#include "video_core/engines/fermi_2d.h" |
|
|
|
@ -40,7 +35,6 @@ |
|
|
|
namespace VideoCommon { |
|
|
|
|
|
|
|
using Tegra::Texture::SwizzleSource; |
|
|
|
using Tegra::Texture::TextureType; |
|
|
|
using Tegra::Texture::TICEntry; |
|
|
|
using Tegra::Texture::TSCEntry; |
|
|
|
using VideoCore::Surface::GetFormatType; |
|
|
|
@ -48,7 +42,6 @@ using VideoCore::Surface::IsCopyCompatible; |
|
|
|
using VideoCore::Surface::PixelFormat; |
|
|
|
using VideoCore::Surface::PixelFormatFromDepthFormat; |
|
|
|
using VideoCore::Surface::PixelFormatFromRenderTargetFormat; |
|
|
|
using VideoCore::Surface::SurfaceType; |
|
|
|
using namespace Common::Literals; |
|
|
|
|
|
|
|
template <class P> |
|
|
|
|