D3D12.X: preserve extended state in translated graphics PSO streams #2606
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2606
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@KOLESNiii on GitHub · 2026-11-26 01:31 UTC · original
Part of #2508 (Pipeline Rebuild). Verified on
mainatb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.With a console VS,
CreatePipelineStateprojects the stream into a legacy graphics descriptor. The projection drops view instancing and the depth-bounds-enable field.DEPTH_STENCIL2uses the front face’s stencil masks for both faces, andRASTERIZER1/2truncates fractional depth bias. The legacy descriptor then goes through the normal graphics creation path. For a stream with an unknown later subobject, the parser can pass only a recognized prefix to this conversion. Parser and conversion · Dispatch to graphics creation · Known-prefix parser · D3D12 stream subobjectsPreserve supported extended state through translation and native creation. Start with descriptor-level regression tests for depth bounds, distinct front/back stencil masks and fractional bias, then verify a translated native stream with view instancing. Keep legacy conversion for descriptors it can faithfully represent. The original console shader bytecode still needs translation before native creation. Define how to handle a recognized prefix with an unknown suffix before using such a descriptor as cache identity.
This is distinct from #1661’s derived/depth-bias tracking fix. See also #1772 for legacy stream defaults and #902 for graphics cache identity. No affected title or native driver behavior was verified.
AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
@Decodere on GitHub · 2026-11-26 02:16 UTC · original
Claiming #2606: preserve supported extended graphics PSO stream state (
DEPTH_STENCIL1/2,RASTERIZER1/2,VIEW_INSTANCING) through console shader translation and nativeCreatePipelineState, keep legacy descriptor conversion for faithfully representable streams, mark unknown-suffix prefixes uncacheable, and add descriptor + native view-instancing tests.AI use: Google Antigravity (Gemini 4 Neon).