Repository navigation
Conversation
The host pipeline library matches stored pipelines by raw description bytes, padding included. GraphicsState::read copied the title's blend and depth- stencil descriptions as they stood, so the two bytes between StencilWriteMask and FrontFace (and the write-mask padding in each blend target) carried the title's stack. With the debug layer on, mesh pipelines of one run then differed from a copy of themselves only in that padding and LoadPipeline refused them. Zero that padding after kinds 8, 11 and 21, and in Default. Final mesh-stream outer padding stays with the complementary follow-up; this covers the descriptions graphics and mesh paths share through GraphicsState. Co-authored-by: Matsvey Makushenka <matvey.myown@gmail.com>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
) RDNA2 flushes denormal operands of the legacy multiplies to zero, so 0 x anything = 0 also holds for them. The lowering only tested for an exact float zero, whose result also depends on the host's denormal mode. Test the exponent bits instead. Follow-up to #2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's wrong
The host's pipeline library tells stored pipelines apart by the raw bytes of their descriptions, padding included.
GraphicsState::readcopied the title's blend (kind 8) and depth-stencil (kinds 11 and 21) descriptions as they stood, so the two bytes betweenStencilWriteMaskandFrontFace— and the write-mask padding in each blend target — carried whatever was on the title's stack. With the debug layer on, mesh pipelines of one run then differed from a copy of themselves only in that padding, andLoadPipelinerefused them (Marvisak#1683).Closed attempts (Marvisak#1041, Marvisak#1690) did not land. Open Marvisak#1739 clears final mesh-stream outer/nested padding after typed moves; it does not clean the descriptions held in
GraphicsStatethat the classic graphics PSO path and the stream both read from.What the change does
In
crates/victory-gpu/src/pipeline/host.rs:GraphicsState::default.Tests
read_states_carry_no_padding: reads kinds 21/11/8 from0xffbytes and checks padding is zero while fields keep the title's values; also checksDefault.ml64.exe, so Windows MSVC clippy/tests are left to CI.No game data was used.
Refs Marvisak#1683. Complementary to Marvisak#1739.