rsx: Move fp16 toggle to a global shader precision option

This commit is contained in:
kd-11 2022-10-10 16:19:11 +03:00 committed by kd-11
parent e839595053
commit d246a37b11
9 changed files with 49 additions and 26 deletions

View file

@ -354,7 +354,7 @@ void GLFragmentProgram::Decompile(const RSXFragmentProgram& prog)
std::string source;
GLFragmentDecompilerThread decompiler(source, parr, prog, size);
if (!g_cfg.video.disable_native_float16)
if (g_cfg.video.shader_precision == gpu_preset_level::low)
{
const auto driver_caps = gl::get_driver_caps();
decompiler.device_props.has_native_half_support = driver_caps.NV_gpu_shader5_supported || driver_caps.AMD_gpu_shader_half_float_supported;