Skip to content

Interpolate compact UNORM elements in CPU rectangle expansion - #113

Open
Yoshi-233 wants to merge 1 commit into
Zettrox:mainfrom
Yoshi-233:fix/compact-unorm-rect-corners
Open

Yoshi-233 wants to merge 1 commit into
Zettrox:mainfrom
Yoshi-233:fix/compact-unorm-rect-corners

Conversation

@Yoshi-233

Copy link
Copy Markdown

The CPU rectangle fallback computes the missing vertex from three input vertices. With an R8G8_UNORM, R8_UNORM, or R16_UNORM element, it instead kept the first vertex's bytes. A gradient or texture coordinate could consequently repeat the first corner on the second triangle.

Register these three DXGI formats with the existing normalized component readers and writers. The regression uses an interleaved vertex and checks both saturation limits, two interior values and the padding byte. On main, the fourth vertex exactly matched the first one.

Verification

All five primitive tests passed in the Windows victory-gpu unit-test binary and in the same module compiled on WSL. The full repository asset-policy check passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant