rsx: Reset vertex program/constants at each boot

This commit is contained in:
Eladash 2020-03-28 13:20:37 +03:00 committed by kd-11
parent c2c5005278
commit 72c0aed4c1
2 changed files with 2 additions and 2 deletions

View File

@ -1586,6 +1586,8 @@ namespace rsx
{
// Reset all regsiters
registers.fill(0);
transform_program.fill(0);
transform_constants = {};
// 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);

View File

@ -541,8 +541,6 @@ namespace rsx
vertex_textures(fill_array<vertex_texture>(registers, std::make_index_sequence<4>())),
vertex_arrays_info(fill_array<data_array_format_info>(registers, std::make_index_sequence<16>()))
{
//NOTE: Transform constants persist through a context reset (NPEB00913)
transform_constants = {};
}
~rsx_state() = default;