Skip to content

[SPIR-V] Fix r-value being used in mul intrinsic#7489

Merged
Keenuts merged 1 commit intomicrosoft:mainfrom
Keenuts:fix-7246
May 30, 2025
Merged

[SPIR-V] Fix r-value being used in mul intrinsic#7489
Keenuts merged 1 commit intomicrosoft:mainfrom
Keenuts:fix-7246

Conversation

@Keenuts
Copy link
Collaborator

@Keenuts Keenuts commented May 27, 2025

When dealing with the Load method on buffers, the operator call can emit a pointer instead of an actual load, and the user is then responsible on loading the value if required.
The mul instrinsic code was not handling this, hence caused the pointer to be passed as-is in SPIR-V.

Fixes #7246

When dealing with the Load method on buffers, the operator call
can emit a pointer instead of an actual load, and the user is then
responsible on loading the value if required.
The `mul` instrinsic code was not handling this, hence caused the
pointer to be passed as-is in SPIR-V.

Fixes microsoft#7246

Signed-off-by: Nathan Gauër <brioche@google.com>
@Keenuts Keenuts merged commit dc59ed0 into microsoft:main May 30, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap May 30, 2025
@Keenuts Keenuts deleted the fix-7246 branch May 30, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] invalid matrix-vector multiplication output

2 participants