mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +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:
parent
76faaf43f7
commit
5ea6535fd5
@ -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);
|
||||
}
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user