Skip to content

[dxsa][mlir] Add bufinfo, resinfo, samplepos, sampleinfo#214

Open
kuilpd wants to merge 1 commit into
dxsa-mlir-samplerfrom
kuilpd/dxsa-mlir-bufinfo-resinfo-samplepos-sampleinfo
Open

[dxsa][mlir] Add bufinfo, resinfo, samplepos, sampleinfo#214
kuilpd wants to merge 1 commit into
dxsa-mlir-samplerfrom
kuilpd/dxsa-mlir-bufinfo-resinfo-samplepos-sampleinfo

Conversation

@kuilpd

@kuilpd kuilpd commented Jul 1, 2026

Copy link
Copy Markdown

Add resource instructions bufinfo, resinfo, samplepos, sampleinfo.

This patch also changes verifyInstructionLength so that it fails only if parsed operands length is greater than the specified instruction length in the opcode, and it skips the unparsed tokens if the specified instruction length is longer than parsed operands. This matches the behavior of dxbc2dxil, which doesn't check if there are unparsed tokens left, and simply moves further to parse tokens past the specified instruction length. FXC can output samplepos with an extra token in the end, not sure about other instructions.

@kuilpd kuilpd requested review from asavonic and tagolog July 1, 2026 16:42
@kuilpd

kuilpd commented Jul 1, 2026

Copy link
Copy Markdown
Author

I based this patch on #182 because it needed the extended instructions support. However, it has regular unary and binary instructions that are not yet implemented in that branch, so I had to re-add the implementation so that I could run the tests. These extra function should be removed/updated to their versions in the main branch when merging with it.

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