mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
renderer: honor null pixel shaders in depth-only draws
This commit is contained in:
@@ -710,7 +710,8 @@ static bool DrawHasActivePixelShader(const RenderCommandBuffer& buffer) {
|
|||||||
const auto& ctx = buffer.GetRegisters();
|
const auto& ctx = buffer.GetRegisters();
|
||||||
const auto& sh_regs = ctx.GetShaderRegisters();
|
const auto& sh_regs = ctx.GetShaderRegisters();
|
||||||
const bool has_color_output = (ctx.GetRenderTargetMask() & sh_regs.m_cbShaderMask) != 0;
|
const bool has_color_output = (ctx.GetRenderTargetMask() & sh_regs.m_cbShaderMask) != 0;
|
||||||
return has_color_output || PixelShaderHasDepthOrCoverageSideEffects(sh_regs);
|
return ShaderAddressValid(buffer.GetShaders().GetPs().ps_regs.data_addr) &&
|
||||||
|
(has_color_output || PixelShaderHasDepthOrCoverageSideEffects(sh_regs));
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class CbColorMode : uint8_t {
|
enum class CbColorMode : uint8_t {
|
||||||
|
|||||||
Reference in New Issue
Block a user