From b2ad49bac80a92037a4d1db050159d9acfca26ef Mon Sep 17 00:00:00 2001 From: vlj Date: Fri, 5 Jun 2015 23:41:29 +0200 Subject: [PATCH] d3d12: Check blend and depth stencil state when evaluating pso equality --- rpcs3/Emu/RSX/D3D12/D3D12PipelineState.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12PipelineState.h b/rpcs3/Emu/RSX/D3D12/D3D12PipelineState.h index fb774b38f6..20c9e30be3 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12PipelineState.h +++ b/rpcs3/Emu/RSX/D3D12/D3D12PipelineState.h @@ -37,7 +37,11 @@ struct D3D12PipelineProperties if (a.SemanticIndex != b.SemanticIndex) return false; } - // TODO: blend and depth stencil + + if (memcmp(&DepthStencil, &in.DepthStencil, sizeof(D3D12_DEPTH_STENCIL_DESC))) + return false; + if (memcmp(&Blend, &in.Blend, sizeof(D3D12_BLEND_DESC))) + return false; return Topology == in.Topology && DepthStencilFormat == in.DepthStencilFormat && numMRT == in.numMRT; } };