rsx: Reset all method registers at rsx_state::init()

This commit is contained in:
Eladash 2020-03-25 10:10:30 +02:00 committed by Ivan
parent 768b4f8c65
commit 158e34faca
2 changed files with 4 additions and 1 deletions

View file

@ -1562,6 +1562,9 @@ namespace rsx
void rsx_state::init() void rsx_state::init()
{ {
// Reset all regsiters
registers.fill(0);
// Special values set at initialization, these are not set by a context reset // Special values set at initialization, these are not set by a context reset
registers[NV4097_SET_SHADER_PROGRAM] = (0 << 2) | (CELL_GCM_LOCATION_LOCAL + 1); registers[NV4097_SET_SHADER_PROGRAM] = (0 << 2) | (CELL_GCM_LOCATION_LOCAL + 1);

View file

@ -477,7 +477,7 @@ namespace rsx
struct rsx_state struct rsx_state
{ {
public: public:
std::array<u32, 0x10000 / 4> registers{}; std::array<u32, 0x10000 / 4> registers;
u32 register_previous_value; u32 register_previous_value;
template<u32 opcode> template<u32 opcode>