1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

rsx: Re-evaluate color MRT setup when the surface target type changes

This commit is contained in:
kd-11 2022-09-27 19:57:58 +03:00 committed by kd-11
parent eea73deab3
commit de28c812e8
2 changed files with 7 additions and 6 deletions

View File

@ -1605,6 +1605,12 @@ namespace rsx
void thread::on_framebuffer_options_changed(u32 opt)
{
if (m_rtts_dirty)
{
// Nothing to do
return;
}
auto evaluate_depth_buffer_state = [&]()
{
m_framebuffer_layout.zeta_write_enabled =
@ -1678,12 +1684,6 @@ namespace rsx
return false;
};
if (m_rtts_dirty)
{
// Nothing to do
return;
}
switch (opt)
{
case NV4097_SET_DEPTH_TEST_ENABLE:

View File

@ -3382,6 +3382,7 @@ namespace rsx
bind(NV4097_SET_SURFACE_COLOR_BOFFSET, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_SURFACE_COLOR_COFFSET, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_SURFACE_COLOR_DOFFSET, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_SURFACE_COLOR_TARGET, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_SURFACE_ZETA_OFFSET, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_CONTEXT_DMA_COLOR_A, nv4097::set_surface_dirty_bit);
bind(NV4097_SET_CONTEXT_DMA_COLOR_B, nv4097::set_surface_dirty_bit);