Skip to content

[SPIR-V] DXC emits OpCapability RayQueryKHR even when not requested #5306

@natevm

Description

@natevm

I'm running into an unfortunate bug where DXC requests RayQueryKHR even when ray queries are never used.

This is an issue, because NVIDIA cards without RT cores using their software fallback do not support ray queries.

As a consequence, no ray tracing shaders compiled by DXC are compatible with GTX cards or NVIDIA cards like the A100 without RT cores.

Further, we get incorrect compilation errors stating generated SPIR-V is invalid: 1st operand of Capability: operand RayQueryKHR(4472) requires one of these extensions: SPV_KHR_ray_query

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashspirvWork related to SPIR-V

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions