Repository navigation
Conversation
v_floor_f32, v_ceil_f32 and v_fract_f32 gave the host the operand as it was, so a host that keeps 32-bit denormals gave -1 for floor of a tiny negative number, 1 for ceil of a tiny positive one, and almost 1 for fract. An RTX 5080 on vkd3d-proton keeps them: its driver offers no flush-to-zero control. rounding_matches_the_hardware failed there.
|
Automated triage for the maintainers. In CI: passing ( Generated by Claude Code |
Offline measurement on a retail dumpResult: no count change against I merged head e06bcf1 onto No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Native Windows A/B on an RTX 5080 and built-in Microsoft WARP ( The existing For example, the largest negative subnormal ( |
|
Code review and RTX 5090 + WARP + DXIL verification at head
LGTM. |
…denormals as zeros
…denormals as zeros
v_floor_f32,v_ceil_f32andv_fract_f32hand their operand to the host as it is. A host that keeps 32-bit denormals then gives -1 forfloorof a tiny negative number, 1 forceilof a tiny positive one, and almost 1 forfract; the console reads the denormal as a zero of its sign.emit::semantics_tests::rounding_matches_the_hardwarealready covers this and fails on an RTX 5080 under vkd3d-proton 3.1 (Wine 11.22, driver 620.73.04), which reportsshaderDenormFlushToZeroFloat32 = falseandshaderDenormPreserveFloat32 = false:("warp" is the same GPU here: DXVK has no WARP and returns the hardware adapter.)
Change (
lower.rs, +6): the operands of these three go throughftz, asv_cvt_flr_i32_f32's already do.v_trunc_f32andv_rndne_f32pass as they are: a denormal rounds to a zero either way.Tested on
940d32f, MinGW build under Wine on that GPU, no game data:rounding_matches_the_hardware: fails without the change, passes with it.cargo test -p victory-shader --lib -- --test-threads=1: 243 passed, 4 failed before; 244 passed, 3 failed after. The 3 also fail onmainhere (no WARP, no digest check under vkd3d-proton, anda_heap_buffer_read_where_no_buffer_view_is_reads_zeros).x86_64-pc-windows-msvc, also with--all-features: clean.cargo xtask policy: ok.Not tested on Windows or in the title.
AI-assisted (Claude).
🤖 Generated with Claude Code