From 0e9c877b83ed3930d1586e8467a8f4a01e0db79a Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 14 Dec 2025 21:40:46 +0300 Subject: [PATCH] rsx: Drop pointless ROP control bit check --- .../GLSLSnippets/RSXProg/RSXROPPrologue.glsl | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/rpcs3/Emu/RSX/Program/GLSLSnippets/RSXProg/RSXROPPrologue.glsl b/rpcs3/Emu/RSX/Program/GLSLSnippets/RSXProg/RSXROPPrologue.glsl index 5b0798e43e..f24a1ca201 100644 --- a/rpcs3/Emu/RSX/Program/GLSLSnippets/RSXProg/RSXROPPrologue.glsl +++ b/rpcs3/Emu/RSX/Program/GLSLSnippets/RSXProg/RSXROPPrologue.glsl @@ -1,24 +1,21 @@ R"( #ifdef _ENABLE_POLYGON_STIPPLE - if (_test_bit(rop_control, POLYGON_STIPPLE_ENABLE_BIT)) - { - // Convert x,y to linear address - const uvec2 stipple_coord = uvec2(gl_FragCoord.xy) % uvec2(32, 32); - const uint address = stipple_coord.y * 32u + stipple_coord.x; - const uint bit_offset = (address & 31u); - #ifdef VULKAN - // In vulkan we have a unified array with a dynamic offset - const uint word_index = _get_bits(address, 7, 3) + _fs_stipple_pattern_array_offset; - #else - const uint word_index = _get_bits(address, 7, 3); - #endif - const uint sub_index = _get_bits(address, 5, 2); + // Convert x,y to linear address + const uvec2 stipple_coord = uvec2(gl_FragCoord.xy) % uvec2(32, 32); + const uint address = stipple_coord.y * 32u + stipple_coord.x; + const uint bit_offset = (address & 31u); +#ifdef VULKAN + // In vulkan we have a unified array with a dynamic offset + const uint word_index = _get_bits(address, 7, 3) + _fs_stipple_pattern_array_offset; +#else + const uint word_index = _get_bits(address, 7, 3); +#endif + const uint sub_index = _get_bits(address, 5, 2); - if (!_test_bit(stipple_pattern[word_index][sub_index], int(bit_offset))) - { - _kill(); - } + if (!_test_bit(stipple_pattern[word_index][sub_index], int(bit_offset))) + { + _kill(); } #endif