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:
parent
eea73deab3
commit
de28c812e8
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user