mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
TextureCache: Drop unused parameter in backend API.
This commit is contained in:
parent
04f319066d
commit
abf9bb170b
@ -179,9 +179,9 @@ TextureCacheBase::TCacheEntryBase* TextureCache::CreateTexture(const TCacheEntry
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureCache::TCacheEntry::FromRenderTarget(u8* dst, bool is_depth_copy,
|
void TextureCache::TCacheEntry::FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect,
|
||||||
const EFBRectangle& srcRect, bool scaleByHalf,
|
bool scaleByHalf, unsigned int cbufid,
|
||||||
unsigned int cbufid, const float* colmat)
|
const float* colmat)
|
||||||
{
|
{
|
||||||
// When copying at half size, in multisampled mode, resolve the color/depth buffer first.
|
// When copying at half size, in multisampled mode, resolve the color/depth buffer first.
|
||||||
// This is because multisampled texture reads go through Load, not Sample, and the linear
|
// This is because multisampled texture reads go through Load, not Sample, and the linear
|
||||||
|
@ -34,8 +34,8 @@ private:
|
|||||||
|
|
||||||
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 levels) override;
|
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 levels) override;
|
||||||
|
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& srcRect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect, bool scaleByHalf,
|
||||||
bool scaleByHalf, unsigned int cbufid, const float* colmat) override;
|
unsigned int cbufid, const float* colmat) override;
|
||||||
|
|
||||||
void Bind(unsigned int stage) override;
|
void Bind(unsigned int stage) override;
|
||||||
bool Save(const std::string& filename, unsigned int level) override;
|
bool Save(const std::string& filename, unsigned int level) override;
|
||||||
|
@ -229,9 +229,9 @@ TextureCacheBase::TCacheEntryBase* TextureCache::CreateTexture(const TCacheEntry
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureCache::TCacheEntry::FromRenderTarget(u8* dst, bool is_depth_copy,
|
void TextureCache::TCacheEntry::FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect,
|
||||||
const EFBRectangle& srcRect, bool scale_by_half,
|
bool scale_by_half, unsigned int cbuf_id,
|
||||||
unsigned int cbuf_id, const float* colmat)
|
const float* colmat)
|
||||||
{
|
{
|
||||||
// When copying at half size, in multisampled mode, resolve the color/depth buffer first.
|
// When copying at half size, in multisampled mode, resolve the color/depth buffer first.
|
||||||
// This is because multisampled texture reads go through Load, not Sample, and the linear
|
// This is because multisampled texture reads go through Load, not Sample, and the linear
|
||||||
|
@ -41,8 +41,8 @@ private:
|
|||||||
|
|
||||||
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 levels) override;
|
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 levels) override;
|
||||||
|
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& src_rect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& src_rect, bool scale_by_half,
|
||||||
bool scale_by_half, unsigned int cbuf_id, const float* colmat) override;
|
unsigned int cbuf_id, const float* colmat) override;
|
||||||
|
|
||||||
void Bind(unsigned int stage) override;
|
void Bind(unsigned int stage) override;
|
||||||
bool Save(const std::string& filename, unsigned int level) override;
|
bool Save(const std::string& filename, unsigned int level) override;
|
||||||
|
@ -32,8 +32,8 @@ private:
|
|||||||
TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
|
TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
|
||||||
~TCacheEntry() {}
|
~TCacheEntry() {}
|
||||||
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override {}
|
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override {}
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& src_rect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& src_rect, bool scale_by_half,
|
||||||
bool scale_by_half, unsigned int cbufid, const float* colmat) override
|
unsigned int cbufid, const float* colmat) override
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,9 +204,9 @@ void TextureCache::TCacheEntry::Load(const u8* buffer, u32 width, u32 height, u3
|
|||||||
TextureCache::SetStage();
|
TextureCache::SetStage();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureCache::TCacheEntry::FromRenderTarget(u8* dstPointer, bool is_depth_copy,
|
void TextureCache::TCacheEntry::FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect,
|
||||||
const EFBRectangle& srcRect, bool scaleByHalf,
|
bool scaleByHalf, unsigned int cbufid,
|
||||||
unsigned int cbufid, const float* colmat)
|
const float* colmat)
|
||||||
{
|
{
|
||||||
g_renderer->ResetAPIState(); // reset any game specific settings
|
g_renderer->ResetAPIState(); // reset any game specific settings
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ private:
|
|||||||
|
|
||||||
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override;
|
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override;
|
||||||
|
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& srcRect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect, bool scaleByHalf,
|
||||||
bool scaleByHalf, unsigned int cbufid, const float* colmat) override;
|
unsigned int cbufid, const float* colmat) override;
|
||||||
|
|
||||||
void Bind(unsigned int stage) override;
|
void Bind(unsigned int stage) override;
|
||||||
bool Save(const std::string& filename, unsigned int level) override;
|
bool Save(const std::string& filename, unsigned int level) override;
|
||||||
|
@ -65,8 +65,8 @@ private:
|
|||||||
TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
|
TCacheEntry(const TCacheEntryConfig& _config) : TCacheEntryBase(_config) {}
|
||||||
~TCacheEntry() {}
|
~TCacheEntry() {}
|
||||||
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override {}
|
void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) override {}
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& srcRect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect, bool scaleByHalf,
|
||||||
bool scaleByHalf, unsigned int cbufid, const float* colmat) override
|
unsigned int cbufid, const float* colmat) override
|
||||||
{
|
{
|
||||||
EfbCopy::CopyEfb();
|
EfbCopy::CopyEfb();
|
||||||
}
|
}
|
||||||
|
@ -431,9 +431,9 @@ void TextureCache::TCacheEntry::Load(const u8* buffer, unsigned int width, unsig
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureCache::TCacheEntry::FromRenderTarget(u8* dst, bool is_depth_copy,
|
void TextureCache::TCacheEntry::FromRenderTarget(bool is_depth_copy, const EFBRectangle& src_rect,
|
||||||
const EFBRectangle& src_rect, bool scale_by_half,
|
bool scale_by_half, unsigned int cbufid,
|
||||||
unsigned int cbufid, const float* colmat)
|
const float* colmat)
|
||||||
{
|
{
|
||||||
// A better way of doing this would be nice.
|
// A better way of doing this would be nice.
|
||||||
FramebufferManager* framebuffer_mgr =
|
FramebufferManager* framebuffer_mgr =
|
||||||
|
@ -29,8 +29,8 @@ public:
|
|||||||
VkFramebuffer GetFramebuffer() const { return m_framebuffer; }
|
VkFramebuffer GetFramebuffer() const { return m_framebuffer; }
|
||||||
void Load(const u8* buffer, unsigned int width, unsigned int height,
|
void Load(const u8* buffer, unsigned int width, unsigned int height,
|
||||||
unsigned int expanded_width, unsigned int level) override;
|
unsigned int expanded_width, unsigned int level) override;
|
||||||
void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& src_rect,
|
void FromRenderTarget(bool is_depth_copy, const EFBRectangle& src_rect, bool scale_by_half,
|
||||||
bool scale_by_half, unsigned int cbufid, const float* colmat) override;
|
unsigned int cbufid, const float* colmat) override;
|
||||||
void CopyRectangleFromTexture(const TCacheEntryBase* source,
|
void CopyRectangleFromTexture(const TCacheEntryBase* source,
|
||||||
const MathUtil::Rectangle<int>& src_rect,
|
const MathUtil::Rectangle<int>& src_rect,
|
||||||
const MathUtil::Rectangle<int>& dst_rect) override;
|
const MathUtil::Rectangle<int>& dst_rect) override;
|
||||||
|
@ -1320,7 +1320,7 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo
|
|||||||
entry->SetEfbCopy(dstStride);
|
entry->SetEfbCopy(dstStride);
|
||||||
entry->is_custom_tex = false;
|
entry->is_custom_tex = false;
|
||||||
|
|
||||||
entry->FromRenderTarget(dst, is_depth_copy, srcRect, scaleByHalf, cbufid, colmat);
|
entry->FromRenderTarget(is_depth_copy, srcRect, scaleByHalf, cbufid, colmat);
|
||||||
|
|
||||||
u64 hash = entry->CalculateHash();
|
u64 hash = entry->CalculateHash();
|
||||||
entry->SetHashes(hash, hash);
|
entry->SetHashes(hash, hash);
|
||||||
|
@ -128,8 +128,8 @@ public:
|
|||||||
const MathUtil::Rectangle<int>& dstrect) = 0;
|
const MathUtil::Rectangle<int>& dstrect) = 0;
|
||||||
|
|
||||||
virtual void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) = 0;
|
virtual void Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, u32 level) = 0;
|
||||||
virtual void FromRenderTarget(u8* dst, bool is_depth_copy, const EFBRectangle& srcRect,
|
virtual void FromRenderTarget(bool is_depth_copy, const EFBRectangle& srcRect, bool scaleByHalf,
|
||||||
bool scaleByHalf, unsigned int cbufid, const float* colmat) = 0;
|
unsigned int cbufid, const float* colmat) = 0;
|
||||||
|
|
||||||
bool OverlapsMemoryRange(u32 range_address, u32 range_size) const;
|
bool OverlapsMemoryRange(u32 range_address, u32 range_size) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user