DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

[SM6.10] DXIL opcodes for ClusterID and TriangleObjectPositions

Open simoll opened this issue 1 year ago • 8 comments

  • DXIL opcode definitions
  • DXIL validation tests showing correct uses pass

SM6.10 tracking bug: #7824

simoll avatar Oct 22 '25 21:10 simoll

Hey Simon!

We've actually been talking about DXIL op stuff internally that this PR is going to fall under. Specially we want a better system to mark ops as experimental before they are upgraded to stable!

I have a proposal up (https://github.com/microsoft/hlsl-specs/pull/698) but due to scheduling conflicts we aren't going to be able to make a final decision until ~Nov 4th.

Since the decision there has impacts on this PR we are holding off on the review for just a little bit. I wanted to give you a heads up so you weren't surprised by the silence from our side

V-FEXrt avatar Oct 24 '25 01:10 V-FEXrt

https://github.com/microsoft/hlsl-specs/pull/729

The proposal is up here, once the implementation lands the ops here will need to be renumbered. I suspect the implementation will land quite quickly

V-FEXrt avatar Nov 12 '25 22:11 V-FEXrt

Spec has been merged! I'm on vacation the next few weeks but @tex3d should be uploading the infrastructure change soon. Then this can be rebased on that

V-FEXrt avatar Nov 14 '25 00:11 V-FEXrt

Spec has been merged! I'm on vacation the next few weeks but @tex3d should be uploading the infrastructure change soon. Then this can be rebased on that

@tex3d What's the status of the experimental opcode infra change to unblock this PR?

simoll avatar Dec 01 '25 15:12 simoll

@tex3d What's the status of the experimental opcode infra change to unblock this PR?

I'm trying to get a second review on this: #7947. Once merged, you can update the branch and move the intrinsic definitions in hctdb.py into experimental and update any references to the opcode numbers that changed.

tex3d avatar Dec 01 '25 23:12 tex3d

I believe we'll also want to reserve high-level intrinsic IDs for these ASAP. It might be good to do this in the same PR, but a separate PR for that would be ok too.

That means updates to gen_intrin_main.txt, generated files, as well as manually adding EmptyLower entries for gLowerTable in HLOperationLower.cpp for each new high-level intrinsic operation.

This could serve as a good example for how to reserve HLSL intrinsics and DXIL opcodes for a feature before it's implemented, using the new experimental DXIL op table.

tex3d avatar Dec 08 '25 21:12 tex3d

I've created a PR to reserve HL and DXIL ops for these operations here: #7995.

So, you should be able to re-apply just the changes necessary on top of main when that PR merges.

tex3d avatar Dec 10 '25 03:12 tex3d

Thanks @tex3d. I'll rebase when #7995 lands

simoll avatar Dec 10 '25 06:12 simoll