WIP: [pr-fix][rendering][shaders][INTEL] Fix the Arc shadow checkerboard; draw mesh objects on Intel cards #39
Loading…
Reference in a new issue
No description provided.
Delete branch "kisekinopureya/Darner:kisekinopureya/pr/arc-checkerboard"
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
The checkerboard. The interior checkerboard on Intel Arc (A770, and reported on a B580) came from
CS_GenerateShadowMasks_Checkerboard_NoHair. One lane hands each 4x8 group's atlas slot to the othersthrough LDS with no s_barrier, as one console wave may. In D3D12 that is a race, and Intel's compiler
reorders it, so lanes wrote their mask pixels into other tiles' slots. A shared-memory fence (barrier
mode 8, no wait) now goes before each LDS access of a compute program whose console wave is not split.
It is on by default on Intel;
DARNER_LDS_WAVE_FENCEsets it, and it is in the shader cache key.Mesh objects. A mesh pipeline's pixel program that needs the barycentric fallback gets approximate
barycentrics, since no geometry stage can follow a mesh stage. Such pipelines are no longer refused,
and this works with Darner's link fallback.
How it was tested
be1dacf557(rebased onto1a5286a7; the gates re-run there)emit::lower::testspass.checkerboard and the mesh objects drawn. The log showed the LDS fence on.
Checklist
main.docs/asset-policy.md.Checked for overlap
crates/darner-shader/src/emit/lower.rs); #25 (also changescrates/darner-gpu/src/host.rs).🤖 Generated with Claude Code
41e5d35f1etobe1dacf557View 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.