Skip to content

Add LIT capabilibies for vulkan extensions #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/D3DCOLORtoUBYTE4.test
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ DescriptorSets:


# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# RUN: split-file %s %t
# RUN: %dxc_target -HV 202x -T cs_6_5 -Fo %t.o %t/source.hlsl
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/dot.32.test
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# RUN: split-file %s %t
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
Expand Down
12 changes: 8 additions & 4 deletions test/Feature/HLSLLib/dot.fp16.test
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Buffers:
# [ 8.20125, 8.20125, 0.35125, 0.35125, 5.57625, 5.57625, -17.61125, -17.61125 ]
Results:
- Result: Test1
Rule: BufferFloatEpsilon
Epsilon: 0.008
Rule: BufferFloatULP
ULPT: 30
Actual: Out
Expected: ExpectedOut
DescriptorSets:
Expand Down Expand Up @@ -77,10 +77,14 @@ DescriptorSets:
Binding: 2
#--- end

# DXC is producing a compile-time value at a significantly higher precision than
# runtime computed values for case 3 (clang will likely do the same once it
# learns to constant evaluate `dot`).

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# REQUIRES: Half
# RUN: split-file %s %t
# RUN: %dxc_target -enable-16bit-types -T cs_6_5 -Fo %t.o %t/source.hlsl
# RUN: %dxc_target -enable-16bit-types -HV 202x -Gis -T cs_6_5 -Fo %t.o %t/source.hlsl
# RUN: %offloader %t/pipeline.yaml %t.o
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/dot.fp64.test
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# REQUIRES: Double
# RUN: split-file %s %t
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/fmod.16.test
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# REQUIRES: Half
# RUN: split-file %s %t
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/fmod.32.test
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# RUN: split-file %s %t
# RUN: %dxc_target -Gis -T cs_6_5 -Fo %t.o %t/source.hlsl
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/rcp.16.test
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# REQUIRES: Half
# RUN: split-file %s %t
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/rcp.32.test
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# RUN: split-file %s %t
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
Expand Down
2 changes: 1 addition & 1 deletion test/Feature/HLSLLib/rcp.64.test
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DescriptorSets:
#--- end

# https://github.com/llvm/llvm-project/issues/149561
# XFAIL: Clang-Vulkan
# XFAIL: Clang-Vulkan && !VK_KHR_shader_float_controls2

# REQUIRES: Double
# RUN: split-file %s %t
Expand Down
4 changes: 4 additions & 0 deletions test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def setDeviceFeatures(config, device, compiler):
if device["Features"].get("shaderInt64", False):
config.available_features.add("Int64")

# Add supported extensions.
for Extension in device["Extensions"]:
config.available_features.add(Extension["ExtensionName"])


if config.offloadtest_test_warp:
tools.append(
Expand Down
Loading