upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 12:17:28 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 12:17:56 -0500
commit7e45f80c771b5d109f26fd6b1def961da5253961 (patch)
treecc8045b158e55750d135d1328ac29e998a8033dc /runtime/src/xma2_decoder.cpp
parentffccea85efd046173f08f8e82d6302def4320eaa (diff)
Immediate samplers made linear for the tonemap's programs alone (fog rim at silhouettes)
What was wrong: the launcher set LEONIDA_STATIC_SAMPLERS_LINEAR=1, which makes every immediate sampler of the title's shaders linear. The title point-samples on purpose: counted over the 26,503 programs of a work folder's disassembly, 21,876 sample instructions (gathers apart) in 1,468 program names use a point immediate sampler. Among them the depth-aware upsamples: the pass that puts the 960x540 ray-marched fog on the 2560x1440 picture (CS_ApplyCombinedDeferred, in five of the ten frame listings kept of runs p3, c1, s1, v1 and x2) fetches the four low-resolution texels around a pixel one by one, depth first, and keeps those within a quarter of the pixel's depth; CS_TAA2_Resolve has ten point taps; PS_FogComposite*, PS_BlitTransparent*, PS_GaussianDepthAware* more. Filtered, each tap is a mix across the silhouette: the expected cause of the light rim around trees, wires and signs in fog. The setting was for the posterized colour grading, which was the NVIDIA driver's: a pipeline restored from the pipeline library with the sampler places of the run that stored it (trustno1-coder/VIctory-NVIDIA 7fa0e95; Spaghetih/victory-sley-fork 63714f3). Such pipelines skip the library since f0606a744, nineteen minutes after the setting became the launcher's. What changes: the value may be a list of program names or shader hashes (pipeline/host.rs LinearScope); 1 is every program as before, unset or 0 none. The launcher sets PS_Composite: the tonemap keeps its second guard, every other program filters as its code says. Tests: cargo test --profile diag -p leonida-gpu --features diagnostics --lib linear_static (2 tests); cargo check --profile diag -p leonida --features diagnostics. Not run on the game: the rim with the launcher as it is against -More @{LEONIDA_STATIC_SAMPLERS_LINEAR='1'}, and the sky's gradient with '0', are still to be looked at. AI-assisted. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions