[clang] [HLSL][Driver][SPIRV] Default -fspv-extension to the DXC extension set (PR #239374)

Diego Novillo via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 11:52:53 PST 2026


dnovillo wrote:

> I’m not sure this is as simple as is defined in this ticket. We will need a way to enable extension in a similar way to how we enable features via shader model. Should something like spirv version be considered?

Agreed.

We discussed this at today's HLSL working group meeting ([minutes](https://github.com/llvm/wg-hlsl/pull/521)). The consensus was that defaulting to the DXC extension set makes sense as an interim solution. I filed #242027 to explore ideas for a longer-term plan for how and which extensions to enable.

I could fix `SPV_EXT_long_vector` to be enabled only for shaders that use long vectors. Then it can be added to the default. Would that work for you?

https://github.com/llvm/llvm-project/pull/239374


More information about the cfe-commits mailing list