Skip to content

[SM6.10] LinAlg: Fix thread-scope InterlockedAccumulate params#8367

Open
tex3d wants to merge 1 commit intomicrosoft:mainfrom
tex3d:fix-thread-intacc-params
Open

[SM6.10] LinAlg: Fix thread-scope InterlockedAccumulate params#8367
tex3d wants to merge 1 commit intomicrosoft:mainfrom
tex3d:fix-thread-intacc-params

Conversation

@tex3d
Copy link
Copy Markdown
Contributor

@tex3d tex3d commented Apr 11, 2026

The thread-scope overload wasn't supposed to have Stride and Layout, since the Layout must be OuterProductOptimal for thread scope.

Additionally, Align is device-dependent for OuterProductOptimal, so there's no point supplying it from HLSL or DXIL.

This change removes these three parameters from this function in the HLSL Header, supplying 0 for Stride, MatrixLayout::OuterProductOptimal for Layout, and 0 for Align to the builtin operation which will pass these values along to the DXIL operation.

Fixes #8360

The thread-scope overload wasn't supposed to have Stride and Layout, since the Layout must be OuterProductOptimal for thread scope.

Additionally, Align is device-dependent for OuterProductOptimal, so there's no point supplying it from HLSL or DXIL.

This change removes these three parameters from this function in the HLSL Header, supplying 0 for Stride, MatrixLayout::OuterProductOptimal for Layout, and 0 for Align to the builtin operation which will pass these values along to the DXIL operation.

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

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

[SM6.10] LinAlg: InterlockedAccumulate has extra params for thread scope

2 participants