mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
fix graphical bug (PPSA17221)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user