rsx: Reset all method registers at rsx_state::init()
This commit is contained in:
@@ -1562,6 +1562,9 @@ namespace rsx
|
||||
|
||||
void rsx_state::init()
|
||||
{
|
||||
// Reset all regsiters
|
||||
registers.fill(0);
|
||||
|
||||
// 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);
|
||||
|
||||
|
||||
@@ -477,7 +477,7 @@ namespace rsx
|
||||
struct rsx_state
|
||||
{
|
||||
public:
|
||||
std::array<u32, 0x10000 / 4> registers{};
|
||||
std::array<u32, 0x10000 / 4> registers;
|
||||
u32 register_previous_value;
|
||||
|
||||
template<u32 opcode>
|
||||
|
||||
Reference in New Issue
Block a user