mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
rsx/common: Track transform constant update.
This commit is contained in:
parent
9404cd5cd8
commit
79dc835378
3 changed files with 3 additions and 0 deletions
|
@ -280,6 +280,7 @@ namespace rsx
|
||||||
};
|
};
|
||||||
m_rtts_dirty = true;
|
m_rtts_dirty = true;
|
||||||
memset(m_textures_dirty, -1, sizeof(m_textures_dirty));
|
memset(m_textures_dirty, -1, sizeof(m_textures_dirty));
|
||||||
|
m_transform_constants_dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread::~thread()
|
thread::~thread()
|
||||||
|
|
|
@ -289,6 +289,7 @@ namespace rsx
|
||||||
std::vector<u32> inline_vertex_array;
|
std::vector<u32> inline_vertex_array;
|
||||||
|
|
||||||
bool m_rtts_dirty;
|
bool m_rtts_dirty;
|
||||||
|
bool m_transform_constants_dirty;
|
||||||
bool m_textures_dirty[16];
|
bool m_textures_dirty[16];
|
||||||
protected:
|
protected:
|
||||||
std::array<u32, 4> get_color_surface_addresses() const;
|
std::array<u32, 4> get_color_surface_addresses() const;
|
||||||
|
|
|
@ -197,6 +197,7 @@ namespace rsx
|
||||||
size_t subreg = index % 4;
|
size_t subreg = index % 4;
|
||||||
|
|
||||||
memcpy(rsxthr->transform_constants[load + reg].rgba + subreg, method_registers + NV4097_SET_TRANSFORM_CONSTANT + reg * count + subreg, sizeof(f32));
|
memcpy(rsxthr->transform_constants[load + reg].rgba + subreg, method_registers + NV4097_SET_TRANSFORM_CONSTANT + reg * count + subreg, sizeof(f32));
|
||||||
|
rsxthr->m_transform_constants_dirty = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue