remove the accurate barriers option

This commit is contained in:
Samuliak 2025-01-09 16:11:52 +01:00
parent 03ec23140b
commit 3fae686f21
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -1008,6 +1008,7 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
LatteDecompilerShader* pixelShader = LatteSHRC_GetActivePixelShader(); LatteDecompilerShader* pixelShader = LatteSHRC_GetActivePixelShader();
const auto fetchShader = LatteSHRC_GetActiveFetchShader(); const auto fetchShader = LatteSHRC_GetActiveFetchShader();
/*
bool neverSkipAccurateBarrier = false; bool neverSkipAccurateBarrier = false;
// "Accurate barriers" is usually enabled globally but since the CPU cost is substantial we allow users to disable it (debug -> 'Accurate barriers' option) // "Accurate barriers" is usually enabled globally but since the CPU cost is substantial we allow users to disable it (debug -> 'Accurate barriers' option)
@ -1037,6 +1038,7 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
cemuLog_logOnce(LogType::Force, "Ending render pass due to render target self-dependency\n"); cemuLog_logOnce(LogType::Force, "Ending render pass due to render target self-dependency\n");
} }
} }
*/
// Primitive type // Primitive type
const LattePrimitiveMode primitiveMode = static_cast<LattePrimitiveMode>(LatteGPUState.contextRegister[mmVGT_PRIMITIVE_TYPE]); const LattePrimitiveMode primitiveMode = static_cast<LattePrimitiveMode>(LatteGPUState.contextRegister[mmVGT_PRIMITIVE_TYPE]);
@ -1867,6 +1869,7 @@ bool MetalRenderer::AcquireDrawable(bool mainWindow)
return layer.AcquireDrawable(); return layer.AcquireDrawable();
} }
/*
bool MetalRenderer::CheckIfRenderPassNeedsFlush(LatteDecompilerShader* shader) bool MetalRenderer::CheckIfRenderPassNeedsFlush(LatteDecompilerShader* shader)
{ {
sint32 textureCount = shader->resourceMapping.getTextureCount(); sint32 textureCount = shader->resourceMapping.getTextureCount();
@ -1916,6 +1919,7 @@ bool MetalRenderer::CheckIfRenderPassNeedsFlush(LatteDecompilerShader* shader)
return false; return false;
} }
*/
void MetalRenderer::BindStageResources(MTL::RenderCommandEncoder* renderCommandEncoder, LatteDecompilerShader* shader, bool usesGeometryShader) void MetalRenderer::BindStageResources(MTL::RenderCommandEncoder* renderCommandEncoder, LatteDecompilerShader* shader, bool usesGeometryShader)
{ {

View file

@ -362,7 +362,7 @@ public:
bool AcquireDrawable(bool mainWindow); bool AcquireDrawable(bool mainWindow);
bool CheckIfRenderPassNeedsFlush(LatteDecompilerShader* shader); //bool CheckIfRenderPassNeedsFlush(LatteDecompilerShader* shader);
void BindStageResources(MTL::RenderCommandEncoder* renderCommandEncoder, LatteDecompilerShader* shader, bool usesGeometryShader); void BindStageResources(MTL::RenderCommandEncoder* renderCommandEncoder, LatteDecompilerShader* shader, bool usesGeometryShader);
void ClearColorTextureInternal(MTL::Texture* mtlTexture, sint32 sliceIndex, sint32 mipIndex, float r, float g, float b, float a); void ClearColorTextureInternal(MTL::Texture* mtlTexture, sint32 sliceIndex, sint32 mipIndex, float r, float g, float b, float a);