mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-27 09:50:35 +01:00
Remove FP32 sz nan preserve on QCOM
This commit is contained in:
parent
f0ba93d75f
commit
6390edb76d
4 changed files with 7 additions and 1 deletions
|
|
@ -381,7 +381,8 @@ void SetupSignedNanCapabilities(const Profile& profile, const IR::Program& progr
|
||||||
ctx.AddCapability(spv::Capability::SignedZeroInfNanPreserve);
|
ctx.AddCapability(spv::Capability::SignedZeroInfNanPreserve);
|
||||||
ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve, 16U);
|
ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve, 16U);
|
||||||
}
|
}
|
||||||
if (profile.support_fp32_signed_zero_nan_preserve) {
|
if (profile.support_fp32_signed_zero_nan_preserve &&
|
||||||
|
!profile.has_broken_fp32_signed_zero_nan_preserve) {
|
||||||
ctx.AddCapability(spv::Capability::SignedZeroInfNanPreserve);
|
ctx.AddCapability(spv::Capability::SignedZeroInfNanPreserve);
|
||||||
ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve, 32U);
|
ctx.AddExecutionMode(main_func, spv::ExecutionMode::SignedZeroInfNanPreserve, 32U);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ struct Profile {
|
||||||
bool has_broken_signed_operations{};
|
bool has_broken_signed_operations{};
|
||||||
/// Float controls break when fp16 is enabled
|
/// Float controls break when fp16 is enabled
|
||||||
bool has_broken_fp16_float_controls{};
|
bool has_broken_fp16_float_controls{};
|
||||||
|
/// Forcing fp32 signed zero, Inf and NaN preservation miscompiles on some drivers
|
||||||
|
bool has_broken_fp32_signed_zero_nan_preserve{};
|
||||||
/// Dynamic vec4 indexing is broken on some OpenGL drivers
|
/// Dynamic vec4 indexing is broken on some OpenGL drivers
|
||||||
bool has_gl_component_indexing_bug{};
|
bool has_gl_component_indexing_bug{};
|
||||||
/// The precise type qualifier is broken in the fragment stage of some drivers
|
/// The precise type qualifier is broken in the fragment stage of some drivers
|
||||||
|
|
|
||||||
|
|
@ -238,6 +238,7 @@ ShaderCache::ShaderCache(Tegra::MaxwellDeviceMemoryManager& device_memory_,
|
||||||
.has_broken_unsigned_image_offsets = true,
|
.has_broken_unsigned_image_offsets = true,
|
||||||
.has_broken_signed_operations = true,
|
.has_broken_signed_operations = true,
|
||||||
.has_broken_fp16_float_controls = false,
|
.has_broken_fp16_float_controls = false,
|
||||||
|
.has_broken_fp32_signed_zero_nan_preserve = false,
|
||||||
.has_gl_component_indexing_bug = device.HasComponentIndexingBug(),
|
.has_gl_component_indexing_bug = device.HasComponentIndexingBug(),
|
||||||
.has_gl_precise_bug = device.HasPreciseBug(),
|
.has_gl_precise_bug = device.HasPreciseBug(),
|
||||||
.has_gl_cbuf_ftou_bug = device.HasCbufFtouBug(),
|
.has_gl_cbuf_ftou_bug = device.HasCbufFtouBug(),
|
||||||
|
|
|
||||||
|
|
@ -456,6 +456,8 @@ PipelineCache::PipelineCache(Tegra::MaxwellDeviceMemoryManager& device_memory_,
|
||||||
.has_broken_signed_operations = false,
|
.has_broken_signed_operations = false,
|
||||||
.has_broken_fp16_float_controls = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY ||
|
.has_broken_fp16_float_controls = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY ||
|
||||||
driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY,
|
driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY,
|
||||||
|
.has_broken_fp32_signed_zero_nan_preserve =
|
||||||
|
driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY,
|
||||||
.ignore_nan_fp_comparisons = false,
|
.ignore_nan_fp_comparisons = false,
|
||||||
.has_broken_spirv_subgroup_mask_vector_extract_dynamic = false,
|
.has_broken_spirv_subgroup_mask_vector_extract_dynamic = false,
|
||||||
.has_broken_robust =
|
.has_broken_robust =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue