WIP: [pr-feature][rendering][shaders][INTEL] Read barycentrics from a geometry stage on hosts without them #32
Loading…
Reference in a new issue
No description provided.
Delete branch "kisekinopureya:kisekinopureya/pr/barycentrics"
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?
Contributor role (optional)
What it changes
An Intel Arc A-series card reports no native barycentrics, so every pixel program that reads
SV_Barycentrics or GetAttributeAtVertex was refused at pipeline creation. Such programs are now
translated to read the basis and each vertex's value from private inputs, and the vertex-to-pixel
pipeline gets a geometry stage that supplies them (
emit/barycentric.rs, ported from the AMD tree).The device's caps decide.
DARNER_BARYCENTRICS=emulateforces the stage on any card. The setting isin the translation fingerprint and the host settings.
Also:
DARNER_BARYCENTRICS=approximate(diagnostics builds): a third each, so no geometry stage; forfinding what refused pipelines change on screen;
DARNER_INTERNAL(a semantic name) andDARNER_DXC(atool's path).
Known gaps: a vertex-pixel pair whose geometry stage would need more than 32 output elements gets
none (23 pipelines in the title). A pixel program whose read inputs keep different interpolation modes in one register is
refused ("barycentric emulation has conflicting interpolation modes"); two such shaders in the title,
whose draws are dropped.
How it was tested
1a5286a7; the gates re-run there)darner-shader's barycentric tests pass.barycentrics from a geometry stage". 23 pipelines still got no geometry stage ("barycentric
fallback exceeds geometry output elements", the 32-element limit) and were not made; their draws
are dropped. The user saw mesh objects drawn.
Checklist
main.docs/asset-policy.md.Note: this branch and the paired-lanes PR (#43) edit the same place in
emit/lower.rs(
run(), after the phis are filled); whichever merges second needs a rebase there.Checked for overlap
crates/darner-hle/src/modules/gameinput.rs); #6 (also changescrates/darner-hle/src/modules/gameinput.rs); #10 (also changescrates/darner-shader/src/emit/lower.rs); #24 (also changescrates/darner-hle/src/modules/gameinput.rs); #25 (also changescrates/darner-gpu/src/host.rs).🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.