Skip to content

Commit

Permalink
Update Slang-RHI again to get more WGPU fixes
Browse files Browse the repository at this point in the history
This fixes a teardown crash, and a buffer usage mismatch issue during bind group creation.
This helps to address issue shader-slang#5222.
  • Loading branch information
aleino-nv committed Nov 1, 2024
1 parent c044ec2 commit 89f8aff
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion external/slang-rhi
1 change: 0 additions & 1 deletion tests/compute/column-major.slang
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -emit-spirv-via-glsl -Xslang -matrix-layout-column-major
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-cuda -compute -shaderobj -Xslang -matrix-layout-column-major
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-mtl -compute -shaderobj -Xslang -matrix-layout-column-major
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu

// This data is in column major layout order....
//TEST_INPUT:cbuffer(data=[1.0 0.0 0.0 10.0 0.0 1.0 0.0 20.0 0.0 0.0 1.0 30.0 0.0 0.0 0.0 1.0]):name matrixBuffer
Expand Down
2 changes: 0 additions & 2 deletions tests/compute/constant-buffer-memory-packing.slang
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
//TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute
//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-mtl -compute

//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -wgpu

// CPP/CUDA due to natural layout rules will recieve the following ROW matrix:
// {1,2,3}
// {0,4,5}
Expand Down
1 change: 0 additions & 1 deletion tests/compute/matrix-layout.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -xslang -matrix-layout-row-major -shaderobj
//TEST(compute,compatibility-issue):COMPARE_COMPUTE_EX:-slang -compute -dx12 -use-dxil -xslang -matrix-layout-row-major -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu

// Not testing on Vulkan because of lack of support
// for integer matrices in GLSL. Slang needs to
Expand Down
1 change: 0 additions & 1 deletion tests/compute/non-square-column-major.slang
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -output-using-type -xslang -matrix-layout-column-major -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -output-using-type -xslang -matrix-layout-column-major -shaderobj
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=METAL):-slang -output-using-type -shaderobj -mtl
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu

// matrix<R, C>
//TEST_INPUT:cbuffer(data=[1.0 0.0 10.0 0.0 0.0 1.0 20.0 0.0]):name matrixBuffer
Expand Down
1 change: 0 additions & 1 deletion tests/compute/row-major.slang
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -output-using-type -xslang -matrix-layout-row-major -shaderobj
//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 -output-using-type -xslang -matrix-layout-row-major -shaderobj
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -output-using-type -xslang -matrix-layout-row-major -shaderobj
//DISABLE_TEST(compute):COMPARE_COMPUTE:-wgpu

//TEST_INPUT:cbuffer(data=[1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 10.0 20.0 30.0 1.0]):name matrixBuffer
ConstantBuffer<float4x4> matrixBuffer;
Expand Down
1 change: 0 additions & 1 deletion tests/hlsl/packoffset.slang
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute -shaderobj -output-using-type
//TEST:SIMPLE(filecheck=HLSL): -target hlsl -profile cs_5_0 -entry computeMain -line-directive-mode none
//TEST:SIMPLE(filecheck=GLSL): -target glsl -profile glsl_450 -stage compute -entry computeMain -line-directive-mode none
//DISABLE_TEST(compute):COMPARE_COMPUTE_EX:-wgpu

// Metal does not support custom data layout.
//DISABLE_TEST(compute):COMPARE_COMPUTE:-slang -shaderobj -mtl
Expand Down

0 comments on commit 89f8aff

Please sign in to comment.