GS:HW: Remove unused DS as RT feature bit and function.

This commit is contained in:
TJnotJT authored and lightningterror committed 2026-12-02 17:36:02 +01:00
1 parent 3428caf400
commit e98304b2dd
3 files changed
-7

No files matched your search

-2
View File
@@ -1420,7 +1420,6 @@ public:
bool depth_feedback : 1; ///< Depth feedback loops can be done with DS directly (otherwise need to copy to separate RT). Implies `feedback_loops`.
bool aa1 : 1; ///< Supports the GS AA1 feature.
bool rov : 1; ///< Supports rasterizer ordered views for both depth and color.
bool copyless_ds_as_rt : 1; ///< Supports DS as RT without any copies.
FeatureSupport()
{
memset(this, 0, sizeof(*this));
@@ -1556,7 +1555,6 @@ public:
void SetColorClipTexture(GSTexture* tex) { m_colclip_rt = tex; }
bool IsDSAsRTActive() const { return m_ds_as_rt; }
/// Create a temporary color clone of depth for depth feedback
virtual void BeginDSAsRT(GSTexture* ds, const GSVector4i& drawarea);
void InvalidateDSAsRT(GSTexture* ds);
-4
View File
@@ -9701,10 +9701,6 @@ __ri void GSRendererHW::DrawPrims(GSTextureCache::Target* rt, GSTextureCache::Ta
g_gs_device->RenderHW(m_conf);
else
m_last_rt = rt;
// Copyless DS as RT doesn't require caching the copy between draws.
if (g_gs_device->Features().copyless_ds_as_rt && g_gs_device->IsDSAsRTActive())
g_gs_device->EndDSAsRT();
}
// If the EE uploaded a new CLUT since the last draw, use that.
-1
View File
@@ -1064,7 +1064,6 @@ bool GSDeviceMTL::Create(GSVSyncMode vsync_mode, bool allow_present_throttle)
m_features.depth_feedback = getDepthFeedback(m_dev, m_features.framebuffer_fetch);
m_features.aa1 = GSConfig.HWAA1 && m_features.vs_expand;
m_features.rov = m_dev.features.rov && !m_features.framebuffer_fetch;
m_features.copyless_ds_as_rt = m_features.framebuffer_fetch;
m_max_texture_size = m_dev.features.max_texsize;
// Init metal stuff