1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 12:42:41 +01:00

rsx: Force flushing of NaN/INF to zero

- This option was always enabled for NVIDIA cards, but it seems some games would benefit from the option on other GPUs as well.
- TODO: Hwtest to verify correct behavior and plan how to safely implement in hw
This commit is contained in:
kd-11 2020-06-25 21:11:20 +03:00 committed by kd-11
parent 76faaf43f7
commit 5ea6535fd5
2 changed files with 2 additions and 2 deletions

View File

@ -772,7 +772,7 @@ void GLGSRender::load_program_env()
auto buf = static_cast<u8*>(mapping.first);
m_prog_buffer.fill_fragment_constants_buffer({ reinterpret_cast<float*>(buf), fragment_constants_size },
current_fragment_program, gl::get_driver_caps().vendor_NVIDIA);
current_fragment_program, true);
m_fragment_constants_buffer->bind_range(GL_FRAGMENT_CONSTANT_BUFFERS_BIND_SLOT, mapping.second, fragment_constants_size);
}

View File

@ -1723,7 +1723,7 @@ void VKGSRender::load_program_env()
auto buf = m_fragment_constants_ring_info.map(mem, fragment_constants_size);
m_prog_buffer->fill_fragment_constants_buffer({ reinterpret_cast<float*>(buf), fragment_constants_size },
current_fragment_program, vk::sanitize_fp_values());
current_fragment_program, true);
m_fragment_constants_ring_info.unmap();
m_fragment_constants_buffer_info = { m_fragment_constants_ring_info.heap->value, mem, fragment_constants_size };