Skip to content

[mlir][dxsa] Add raster instructions#202

Merged
tagolog merged 1 commit into
dxsa-mlirfrom
kuilpd/dxsa-add-deriv_rtxy_ops
Jul 1, 2026
Merged

[mlir][dxsa] Add raster instructions#202
tagolog merged 1 commit into
dxsa-mlirfrom
kuilpd/dxsa-add-deriv_rtxy_ops

Conversation

@kuilpd

@kuilpd kuilpd commented Jun 25, 2026

Copy link
Copy Markdown

Add instructions:
deriv_rtx
deriv_rty
deriv_rtx_coarse
deriv_rty_coarse
deriv_rtx_fine
deriv_rty_fine
lod

@kuilpd kuilpd requested review from asavonic and tagolog June 25, 2026 18:49
Comment thread mlir/include/mlir/Dialect/DXSA/IR/DXSARasterOps.td Outdated
Comment thread mlir/test/Target/DXSA/deriv_rtx_coarse.mlir Outdated
Comment thread mlir/test/Target/DXSA/deriv_rtx_coarse.mlir Outdated
@kuilpd kuilpd changed the title [mlir][dxsa] Add deriv_rtx/y_coarse and deriv_rtx/y_fine instructions [mlir][dxsa] Add raster instructions Jun 27, 2026
@kuilpd

kuilpd commented Jun 27, 2026

Copy link
Copy Markdown
Author

I'm still not sure if deriv_rtx and deriv_rty are supported in DX11, they're not in the documentation. The only reference I could find is this, so I took the description from there:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/deriv-rtx--sm4---asm-

@tagolog tagolog force-pushed the kuilpd/dxsa-add-deriv_rtxy_ops branch from 08e49ad to e7e966b Compare July 1, 2026 21:55
Example:
 dxsa.deriv_rtx r<0>, v<1>
 dxsa.deriv_rtx_coarse precise <x> r<0, <x>>, v<1, <y, z, w, y>>
 dxsa.lod r<0, <x>>, v<0, <x, y, x, x>>, t<0, vector, <x>>, s<0>
@tagolog tagolog force-pushed the kuilpd/dxsa-add-deriv_rtxy_ops branch from e7e966b to d865e45 Compare July 1, 2026 22:01
@tagolog tagolog merged commit 2abea1c into dxsa-mlir Jul 1, 2026
5 checks 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.

2 participants