[all-commits] [llvm/llvm-project] b3db0c: [HLSL][Driver] Make vk1.3 the default. (#143384)

Steven Perron via All-commits all-commits at lists.llvm.org
Wed Jun 11 07:31:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3db0c6a1d063ec9ee15253bde3d428c0ad5968b
      https://github.com/llvm/llvm-project/commit/b3db0c6a1d063ec9ee15253bde3d428c0ad5968b
  Author: Steven Perron <stevenperron at google.com>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

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

  Log Message:
  -----------
  [HLSL][Driver] Make vk1.3 the default. (#143384)

The HLSL driver currently defaults the triple to an unversioned os and
subarch when targeting SPIR-V. This means the SPIR-V backend decides the
default value. That is not a great option because a change the backend
could cause a change in Clang.

Now that we want to choose the default we need to consider the best
option. DXC currently defaults to Vulkan1.0. We are planning on not
supporting Vulkan1.0 in the Clang HLSL compiler because it is newer
versions of Vulkan are commonly supported on nearly all hardware, so
users do not use it.

Since we have to change from DXC anyway, we are using VK1.3. It has been
out long enough to be commonly available, and the initial implementation
of SPIR-V features for HLSL are assuming Vulkan 1.3.

---------

Co-authored-by: Nathan Gauër <github at keenuts.net>



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