fix graphical bug (PPSA17221)

This commit is contained in:
nmzik
2026-07-28 02:32:10 +02:00
parent aeceaff028
commit ec11f31aa6
4 changed files with 31 additions and 9 deletions
+3 -1
View File
@@ -798,7 +798,9 @@ static void ShaderGetStaticInputInfoPS(
ps_info = {};
ps_info.input_num = sh.ps_in_control;
// SPI_PS_IN_CONTROL.NUM_INTERP occupies bits 5:0. Keep the remaining control
// flags in the hardware state and extract only the input count here.
ps_info.input_num = sh.ps_in_control & 0x3fu;
ps_info.ps_system_input_base = ShaderCalcPsSystemInputBase(sh);
const uint32_t active_inputs = sh.ps_input_ena & sh.ps_input_addr;
ps_info.ps_pos_x = (active_inputs & 0x00000100u) != 0;