Skip to content

Conversation

@simoll
Copy link
Collaborator

@simoll simoll commented Jan 26, 2026

  • Lowering for all TriangleObjectPositions variants with tests (renaming HLSL intrinsics to match spec)
  • BuiltInTrianglePositions struct definition and tests
  • Validation logic with expected pass and fail tests

Closes #8030 #8031 #8032 #8033

- Lowering for all TriangleObjectPositions variants with tests
- BuiltInTrianglePositions struct definition and tests
- Validation logic with expected pass and fail tests

Closes microsoft#8030 microsoft#8031 microsoft#8032 #808033
@github-project-automation github-project-automation bot moved this from New to In progress in HLSL Roadmap Jan 26, 2026
@simoll simoll requested a review from tex3d January 27, 2026 12:39
@tex3d
Copy link
Contributor

tex3d commented Jan 27, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't necessarily think this must be addressed before mering, but one minor gripe I have is that neither the dxilgen lowering test nor the end-to-end DXIL test in CodeGenDXIL check that the returned vector components from the DXIL op are linked up correctly to the intended uses.

@damyanp
Copy link
Member

damyanp commented Jan 27, 2026

@tex3d

I don't necessarily think this must be addressed before merging

If you think this needs to be addressed before shipping then we might as well address it now?

@tex3d
Copy link
Contributor

tex3d commented Jan 27, 2026

@tex3d

I don't necessarily think this must be addressed before merging

If you think this needs to be addressed before shipping then we might as well address it now?

Yeah, I guess addressing this now would be better.

; REQUIRES: dxil-1-10

; CHECK-LABEL: define void {{.*}}ClosestHit
; CHECK: %{{.*}} = call <9 x float> @dx.op.triangleObjectPosition.f32(i32 -2147483641)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should check that components in the returned vectors for each of these operations are used where expected, which unit-tests that code in HLOperationLower.cpp.

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

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

[SM 6.10] TriangleObjectPositions: DXIL Validation / invalid-DXIL-fail tests

3 participants