Repository navigation
Conversation
…ads them (trustno1-coder#2769) The helpers we compile at run time are written for the system compiler, where || and ?: work per component on vectors. When it refuses one (Wine's d3dcompiler under Proton: no isnan, no [RootSignature] kept) the fallback gave it to DXC at its default, HLSL 2021, which refuses vector || and the ambient estimate's raise never built: error: operands for short-circuiting logical binary operator must be scalar, for non-scalar types use 'or' found = (isnan(found) || isinf(found)) ? 0.0 : max(found, 0.0); and with it the whole stand-in for the indirect light was off ("no stand-in for the indirect light"). DXC is now asked for -HV 2018. A test compiles raise's vector logic with DXC when a dxcompiler.dll can be found; it fails without -HV 2018. Under Wine with DXC, ambient's the_passes_compile now passes as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T1bolus
added a commit
to T1bolus/VIctory-NVIDIA
that referenced
this pull request
Nov 30, 2026
…d under Proton (its passes never built) and trustno1-coder#3417 just fixed that, so builder=0 may finally render lit; AMBIENT_AIR=1.5 like the play defaults (it is active only while the builder rests)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
raisepart of #2769.What it changes
The DXC fallback in
hlsl.rsnow compiles the layer's helper shaders as HLSL 2018 (-HV 2018).What was wrong:
||and?:work per component on vectors.isnan,[RootSignature]dropped), so they go to DXC.||. The ambient estimate'sraisethen never builds:The last line means the whole stand-in for indirect light is off, so scenes come out darker and flatter.
Effect on other platforms:
Open PR #1702 has the same
-HV 2018in its owndxc.rs. This is just that one line, formain'shlsl.rs.How it was tested
cargo xwin test -p victory-gpu --lib, withVICTORY_DXCpointing atdxcompiler.dll1.8):dxc_takes_the_system_compilers_vector_logiccompilesraise's vector logic with DXC. It fails without-HV 2018and passes with it. It returns early when nodxcompiler.dllcan be found.hlsl::: 4 passed.ambient::the_passes_compilefails onmainunder Wine with DXC and passes with this change.ambienttests (neutral_probe_replaces_colour_without_depth_and_preserves_bounds,raise_opt_in_chroma_scrub_filters_spikes_and_preserves_scene_tones_on_hardware_and_warp) fail under Wine with and without this change.hlsl.rs.victory-shaderuntouched; the shader cache key is unchanged).cargo xtask policy --staged: ok.Checked for overlap
isnanfor Wine's own compiler), Ambient: raise stays inside the image it writes (Xid 13 under Vulkan at DLSS Performance) #3044 (raisewrites inside its image).🤖 Generated with Claude Code