mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
rsx: Reset all method registers at rsx_state::init()
This commit is contained in:
parent
768b4f8c65
commit
158e34faca
2 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue