Translate indexed texture coverage and verify surviving samples #491

Merged
R0Y00 merged 1 commit from upstream-pr/497 into main 2026-11-22 07:51:34 +00:00
R0Y00 commented 2026-11-22 07:44:35 +00:00 (Migrated from github.com)

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 d367861 identified 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.1 assembles 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_' -V checks 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.
  • Local Windows 26200.9974, RTX 4060 Laptop GPU 32.0.16.1656 and WARP 10.0.26100.9818, with the D3D12 debug layer enabled.

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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6539931127 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/497). Originally posted by [R0Y00](https://github.com/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 `d367861` identified 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.1` assembles 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_' -V` checks 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. - Local Windows 26200.9974, RTX 4060 Laptop GPU 32.0.16.1656 and WARP 10.0.26100.9818, with the D3D12 debug layer enabled. 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).
upstream-sync closed this pull request 2026-11-24 06:43:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!491
No description provided.