Translate indexed texture coverage and verify surviving samples #491
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/497"
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 R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T07:44:35Z.
Scope
Translate a coverage-only pixel path using an explicit descriptor snapshot. Follow a buffered texture index, descriptor stride, sampler, interpolated UV, scale, threshold and both null exports. Preserve the sampled channel and reject mismatched descriptor/EXEC provenance or unresolved scalar/vector memory dependencies.
The local inventory on
d367861identified 124 different PS containers sharing this native stream in 26,503 records. Public reproduction uses a source-built gfx1013 fixture only.Verification
python3 -B tests/sampled_coverage_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1assembles the fixture and checks both CLI translations. Controls cover a wrong branch target, unresolved sample, stale mask, wrong sampler and unmapped selector.ctest --preset dev --no-tests=error -R '^sampled_coverage_' -Vchecks a full-triangle occlusion count, all 64 individual covered-sample bits and the unchanged color target. Switching the selected texture changes mixed coverage from 26/64 to 38/64. The opposite texture reference must fail. Both all-pass and all-discard inputs are checked.The point-clamp, single-mip, finite-input configuration is supplied by the fixture. The application draw state and the selector contents at runtime remain unknown.
The final local full-package rescan independently checked each of the 124 container envelopes, translated both selector snapshots and deduplicated identical native code. Each of the 124 records then created a D3D12 PSO and passed the full-draw and per-pixel queries on each adapter (248 record/backend comparisons).