gpu: keep CreateSamplerX's values in the host's ranges (port of VIctory#474) #129
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/129"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from uiliannn/VItoriaBr. Originally posted by wilu222 on 2026-11-26T23:32:48Z.
Port of Marvisak/VIctory#474 (by nathanbzrr), which this tree does not have yet. The code and tests are written for this tree.
Fields::hostincrates/victory-gpu/src/sampler.rspassed the console's sampler words toD3D12_SAMPLER_DESCunchecked, including values the host refuses:MinLOD/MaxLOD, or aMaxLODbelowMinLOD: now finite (NaN becomes 0 for the minimum and the minimum for the maximum) and orderedMipLODBiasoutside-16..15.99: now clamped (NaN becomes 0)1..=5: now clampNEVER; comparison samplers keep theirsA sampler without a mip filter still has both LODs at its minimum, as before.
Tested (RTX 5070, driver 617.42, Windows 10 19045, Rust 1.98.1)
lod_bounds_reach_the_host_finite_and_orderedandbias_address_and_comparison_stay_in_host_ranges: both fail onmainand pass here;console_descriptions_decodestill passescargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: cleancargo test --workspace --locked --no-fail-fast: 632 passed, 26 failed, 14 ignored;main(1361e19) gives 630 passed with the same 26 failures (GPU tests invictory-shaderanddepth_bounds_pipeline_loads_and_filters_draws)Not tested: in game.
Imported from uiliannn/VItoriaBr. Originally posted by wilu222 on 2026-11-27T00:42:17Z.
Closing: an in-game check (RTX 5070, about 7 minutes of the prologue) found the title never creates a sampler with these values, so the change fixes nothing observable for it.
Pull request closed