[all-commits] [llvm/llvm-project] d72358: [HLSL] Explicitly set the SPIR-V version with spv-...

Steven Perron via All-commits all-commits at lists.llvm.org
Thu Jan 9 06:40:19 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7235876867dd21b636868e242400271cca15109
      https://github.com/llvm/llvm-project/commit/d7235876867dd21b636868e242400271cca15109
  Author: Steven Perron <stevenperron at google.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/dxc_spirv.hlsl
    M llvm/lib/TargetParser/Triple.cpp

  Log Message:
  -----------
  [HLSL] Explicitly set the SPIR-V version with spv-target-env (#121961)

In DXC, setting the vulkan version automatically sets the target spir-v
version to the maximum spir-v version that the vulkan version must
support. So for Vulkan 1.2, we set the spir-v version to spirv 1.5
because every implementation of Vulkan 1.2 must support spirv 1.5, but
not spir-v 1.6.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list