From 6756bf7d4b1dff57d7a668d57cd26ef3aa67af85 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 10 Dec 2022 18:44:25 +0300 Subject: [PATCH] rsx: Only request attribute interpolation if the GPU requires it and the driver supports it --- rpcs3/Emu/RSX/RSXThread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index f5e9ac9423..6ff700b26f 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -2157,7 +2157,10 @@ namespace rsx if (method_registers.current_draw_clause.classify_mode() == primitive_class::polygon) { - current_fragment_program.ctrl |= RSX_SHADER_CONTROL_ATTRIBUTE_INTERPOLATION; + if (!backend_config.supports_normalized_barycentrics) + { + current_fragment_program.ctrl |= RSX_SHADER_CONTROL_ATTRIBUTE_INTERPOLATION; + } } else if (method_registers.point_sprite_enabled() && method_registers.current_draw_clause.primitive == primitive_type::points)