Repository navigation
R-7: take signature interpolation modes from the console PSV0 - #66
Conversation
|
Please rebase on |
efd9bc4 to
b9fe3ce
Compare
|
Rebased on Once #64 merges, this branch will still meet it at the end of |
|
Correction to my comment above: you had already rebased this branch on |
…PSV0 The type table made every float linear, splitting registers the console packed with one constant mode, which the DXIL validator refuses. The console PSV0 lists each element mode; it is applied by register and column to vertex or mesh outputs and pixel inputs, and kept by the rectangle-list stage. No register or mask changes. 61 more programs validate, none regress.
b9fe3ce to
2ce115a
Compare
What changed
R-7 (partial): signature elements took their interpolation mode from a table keyed by type, so every float element came out linear. The console's own containers declare some of them constant (for example
TEXCOORD9next toSV_IsFrontFace), and the DXIL validator refused 70 programs that then packed two modes into one register. The mode of each element is now read from the console container'sPSV0part (container::psv_modes,take_modes) and applied by register and column to vertex and mesh outputs and pixel inputs;rect.rskeeps a mode already set instead of rewriting it. No register or mask changes, so both sides of a stage link keep the modes the console linked them with.Independent of #64. The two branches only meet where both append a unit test at the end of
container.rs's test module and a note at the top ofdocs/fork-notes.md; whichever merges second needs a trivial rebase.How it was tested
Checks run on this branch:
cargo test --workspace --locked: no failure (leonida-shader218 passed, 3 ignored; run with-j 2)cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policyleonida translate --list --validate --jobs 2with release builds off3c94caand this branch, compared program by program over every program:main61 more programs validate and none that validated before is refused now. Of the 67 fixed for interpolation, 6 are then refused for signature row order, which #64 fixes; with both, 67 should validate (not measured together). Still refused for interpolation:
PS_RasterizeWaterVolumeExposedSurfaceand twoPS_RasterizeVehicle*InterfaceDepth.AI
PSV0layout, fix, unit test, census and review.