From 27ad98ee984cfe1e24fb47db6b3f9a5c46dcb7b3 Mon Sep 17 00:00:00 2001 From: Zangetsu38 Date: Sat, 12 Dec 2015 16:01:27 +0100 Subject: [PATCH] Fix for Shovel Knight --- rpcs3/Emu/RSX/D3D12/D3D12Formats.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Formats.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Formats.cpp index e20c4943ad..4f4ed5eec1 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Formats.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Formats.cpp @@ -107,12 +107,11 @@ D3D12_STENCIL_OP get_stencil_op(u32 op) noexcept case CELL_GCM_KEEP: return D3D12_STENCIL_OP_KEEP; case CELL_GCM_ZERO: return D3D12_STENCIL_OP_ZERO; case CELL_GCM_REPLACE: return D3D12_STENCIL_OP_REPLACE; - case CELL_GCM_INCR: return D3D12_STENCIL_OP_INCR; - case CELL_GCM_DECR: return D3D12_STENCIL_OP_DECR; + case CELL_GCM_INCR: return D3D12_STENCIL_OP_INCR_SAT; + case CELL_GCM_DECR: return D3D12_STENCIL_OP_DECR_SAT; case CELL_GCM_INVERT: return D3D12_STENCIL_OP_INVERT; - case CELL_GCM_INCR_WRAP: - case CELL_GCM_DECR_WRAP: - LOG_WARNING(RSX, "Unsupported stencil op used %x, please report this to a developer.", op); + case CELL_GCM_INCR_WRAP: return D3D12_STENCIL_OP_INCR; + case CELL_GCM_DECR_WRAP: return D3D12_STENCIL_OP_DECR; } LOG_ERROR(RSX, "Unknow stencil op used %x, please report this to a developer.", op); unreachable("Wrong Stencil op");