rsx: Drop pointless ROP control bit check

This commit is contained in:
kd-11
2025-12-14 21:40:46 +03:00
committed by kd-11
parent 6e0b5a874d
commit 0e9c877b83
@@ -1,24 +1,21 @@
R"( R"(
#ifdef _ENABLE_POLYGON_STIPPLE #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);
// Convert x,y to linear address const uint address = stipple_coord.y * 32u + stipple_coord.x;
const uvec2 stipple_coord = uvec2(gl_FragCoord.xy) % uvec2(32, 32); const uint bit_offset = (address & 31u);
const uint address = stipple_coord.y * 32u + stipple_coord.x; #ifdef VULKAN
const uint bit_offset = (address & 31u); // In vulkan we have a unified array with a dynamic offset
#ifdef VULKAN const uint word_index = _get_bits(address, 7, 3) + _fs_stipple_pattern_array_offset;
// In vulkan we have a unified array with a dynamic offset #else
const uint word_index = _get_bits(address, 7, 3) + _fs_stipple_pattern_array_offset; const uint word_index = _get_bits(address, 7, 3);
#else #endif
const uint word_index = _get_bits(address, 7, 3); const uint sub_index = _get_bits(address, 5, 2);
#endif
const uint sub_index = _get_bits(address, 5, 2);
if (!_test_bit(stipple_pattern[word_index][sub_index], int(bit_offset))) if (!_test_bit(stipple_pattern[word_index][sub_index], int(bit_offset)))
{ {
_kill(); _kill();
}
} }
#endif #endif