Skip to content
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 CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ option(
option(SLANG_ENABLE_DXIL "Enable generating DXIL with DXC" ON)

option(SLANG_ENABLE_FULL_IR_VALIDATION "Enable full IR validation (SLOW!)")
option(SLANG_ENABLE_IR_BREAK_ALLOC, "Enable _debugUID on IR allocation")
option(SLANG_ENABLE_IR_BREAK_ALLOC "Enable _debugUID on IR allocation")
option(SLANG_ENABLE_ASAN "Enable ASAN (address sanitizer)")

option(SLANG_ENABLE_PREBUILT_BINARIES "Enable using prebuilt binaries" ON)
Expand Down
7 changes: 4 additions & 3 deletions source/slang/slang-emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,10 @@ Result linkAndOptimizeIR(
if (requiredLoweringPassSet.autodiff)
{
dumpIRIfEnabled(codeGenContext, irModule, "BEFORE-AUTODIFF");
enableIRValidationAtInsert();
changed |= processAutodiffCalls(targetProgram, irModule, sink);
disableIRValidationAtInsert();
{
auto validationScope = enableIRValidationScope();
changed |= processAutodiffCalls(targetProgram, irModule, sink);
}
dumpIRIfEnabled(codeGenContext, irModule, "AFTER-AUTODIFF");
}

Expand Down
7 changes: 4 additions & 3 deletions source/slang/slang-ir-autodiff-cfg-norm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,10 @@ void normalizeCFG(
sortBlocksInFunc(func);
legalizeDefUse(func);

disableIRValidationAtInsert();
constructSSA(module, func);
enableIRValidationAtInsert();
{
auto validationScope = disableIRValidationScope();
constructSSA(module, func);
}

module->invalidateAnalysisForInst(func);
#if _DEBUG
Expand Down
3 changes: 1 addition & 2 deletions source/slang/slang-ir-autodiff-fwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1900,12 +1900,11 @@ SlangResult ForwardDiffTranscriber::prepareFuncForForwardDiff(IRFunc* func)

if (SLANG_SUCCEEDED(result))
{
disableIRValidationAtInsert();
auto validationScope = disableIRValidationScope();
auto simplifyOptions = IRSimplificationOptions::getDefault(nullptr);
simplifyOptions.removeRedundancy = true;
simplifyOptions.hoistLoopInvariantInsts = true;
simplifyFunc(autoDiffSharedContext->targetProgram, func, simplifyOptions);
enableIRValidationAtInsert();
}
return result;
}
Expand Down
3 changes: 1 addition & 2 deletions source/slang/slang-ir-autodiff-unzip.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,8 @@ struct DiffUnzipPass

if (intermediateVar)
{
disableIRValidationAtInsert();
auto validationScope = disableIRValidationScope();
diffBuilder->addBackwardDerivativePrimalContextDecoration(callInst, intermediateVar);
enableIRValidationAtInsert();
}

IRInst* diffVal = nullptr;
Expand Down
13 changes: 9 additions & 4 deletions source/slang/slang-ir-validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,19 @@ void validateIRInstOperands(IRValidateContext* context, IRInst* inst)
}

static thread_local bool _enableIRValidationAtInsert = false;
void disableIRValidationAtInsert()

// RAII class implementation for exception-safe IR validation state management
IRValidationScope::IRValidationScope(bool enableValidation)
: m_previousState(_enableIRValidationAtInsert)
{
_enableIRValidationAtInsert = false;
_enableIRValidationAtInsert = enableValidation;
}
void enableIRValidationAtInsert()

IRValidationScope::~IRValidationScope()
{
_enableIRValidationAtInsert = true;
_enableIRValidationAtInsert = m_previousState;
}

void validateIRInstOperands(IRInst* inst)
{
if (!_enableIRValidationAtInsert)
Expand Down
34 changes: 32 additions & 2 deletions source/slang/slang-ir-validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,38 @@ void validateIRModuleIfEnabled(CompileRequestBase* compileRequest, IRModule* mod

void validateIRModuleIfEnabled(CodeGenContext* codeGenContext, IRModule* module);

void disableIRValidationAtInsert();
void enableIRValidationAtInsert();
// RAII class to manage IR validation state in an exception-safe manner
class [[nodiscard]] IRValidationScope
{
public:
// Constructor saves current state and sets new state
explicit IRValidationScope(bool enableValidation);

// Destructor automatically restores previous state
~IRValidationScope();

// Non-copyable to prevent accidental copies
IRValidationScope(const IRValidationScope&) = delete;
IRValidationScope& operator=(const IRValidationScope&) = delete;

// Non-movable to keep it simple
IRValidationScope(IRValidationScope&&) = delete;
IRValidationScope& operator=(IRValidationScope&&) = delete;

private:
bool m_previousState;
};

// Convenience functions to create scoped guards
[[nodiscard]] inline IRValidationScope enableIRValidationScope()
{
return IRValidationScope(true);
}

[[nodiscard]] inline IRValidationScope disableIRValidationScope()
{
return IRValidationScope(false);
}

// Validate that the destination of an atomic operation is appropriate, meaning it's
// either 'groupshared' or in a device buffer.
Expand Down
2 changes: 1 addition & 1 deletion tests/bugs/import-with-error.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:SIMPLE:
//TEST:SIMPLE:

// Confirm that we correctly issue a diagnostic when
// we `import` a module that has some errors in it.
Expand Down
16 changes: 8 additions & 8 deletions tests/diagnostics/missing-return-target.slang
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target spirv
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target glsl
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target wgsl
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target spirv
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target glsl
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_NOT_SUPP): -entry computeMain -stage compute -target wgsl

//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP):
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target hlsl
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target metal
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target cpp
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target cuda
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP):
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target hlsl
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target metal
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target cpp
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SUPP): -entry computeMain -stage compute -target cuda

// Some compilation targets allow missing returns while some do not.
// This test ensures that either errors and warnings are emitted appropriately.
Expand Down
2 changes: 1 addition & 1 deletion tests/diagnostics/recursive-import.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):

// A file that recursively imports itself
// (including transitive cases) should be diagnosed.
Expand Down
4 changes: 2 additions & 2 deletions tests/diagnostics/unbound-loop.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:SIMPLE(filecheck=CHECK): -entry computeMain -target hlsl -profile cs_6_5
//TEST:SIMPLE(filecheck=CHECK): -entry computeMain -target hlsl -profile cs_6_5


RWStructuredBuffer<float> outputBuffer;
Expand Down Expand Up @@ -40,4 +40,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
__bwd_diff(test_loop_with_continue)(dpa, 1.0f);
outputBuffer[1] = dpa.d; // Expect: 0.0131072
}
}
}
4 changes: 2 additions & 2 deletions tests/diagnostics/uninitialized-resource-type.slang
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//DISABLE_DIAGNOSTIC_TEST:SIMPLE: -target hlsl -DTEST_1
//DISABLE_DIAGNOSTIC_TEST:SIMPLE: -target hlsl -DTEST_2
//DIAGNOSTIC_TEST:SIMPLE: -target hlsl -DTEST_1
//DIAGNOSTIC_TEST:SIMPLE: -target hlsl -DTEST_2

SamplerState sampler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//DISABLE_TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//DISABLE_TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA
//TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA

// not testing cpp due to missing impl
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CPP): -allow-glsl -stage compute -entry computeMain -target cpp -DTARGET_CPP

//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU -render-feature half
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU -render-feature half

// Not testing because CI runners may not support Metal's intrinsics.
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-metal -compute -entry computeMain -allow-glsl -xslang -DMETAL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//DISABLE_TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//DISABLE_TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA
//TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA

// not testing cpp due to missing impl
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CPP): -allow-glsl -stage compute -entry computeMain -target cpp -DTARGET_CPP

//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU

// Not testing because CI runners may not support Metal's intrinsics.
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-metal -compute -entry computeMain -allow-glsl -xslang -DMETAL
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//DISABLE_TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//DISABLE_TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA
//TEST:SIMPLE(filecheck=CHECK_GLSL): -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//TEST:SIMPLE(filecheck=CHECK_SPV): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
//TEST:SIMPLE(filecheck=CHECK_HLSL): -allow-glsl -stage compute -entry computeMain -target hlsl -DTARGET_HLSL
//TEST:SIMPLE(filecheck=CHECK_CUDA): -allow-glsl -stage compute -entry computeMain -target cuda -DTARGET_CUDA

// not testing cpp due to missing impl
//DISABLE_TEST:SIMPLE(filecheck=CHECK_CPP): -allow-glsl -stage compute -entry computeMain -target cpp -DTARGET_CPP

//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU -render-feature half
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl
//TEST(compute, vulkan):COMPARE_COMPUTE(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -emit-spirv-directly
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-wgpu -compute -entry computeMain -allow-glsl -xslang -DWGPU -render-feature half

// Not testing because CI runners may not support Metal's intrinsics.
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=BUF):-metal -compute -entry computeMain -allow-glsl -xslang -DMETAL
Expand Down
6 changes: 3 additions & 3 deletions tests/ir/dump-module.slang
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// is to see the file you requested. If there's a bug in slang-module output, it's
// important that -dump-module looks at the specific file you requested.

//DISABLE_TEST:COMPILE: tests/ir/dump-module.slang -o tests/ir/dump-module.slang-module -target spirv -embed-downstream-ir
//TEST:COMPILE: tests/ir/dump-module.slang -o tests/ir/dump-module.slang-module -target spirv -embed-downstream-ir

//DISABLE_TEST:SIMPLE(filecheck=CHECK1): -dump-module tests/ir/dump-module.slang-module
//DISABLE_TEST:SIMPLE(filecheck=CHECK2): -dump-module tests/ir/dump-module.slang
//TEST:SIMPLE(filecheck=CHECK1): -dump-module tests/ir/dump-module.slang-module
//TEST:SIMPLE(filecheck=CHECK2): -dump-module tests/ir/dump-module.slang

module "export-library-generics";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// error-in-nested-import.slang
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):

// CHECK: ([[#@LINE+1]]): error
import a;

int main()
{}
{}
2 changes: 1 addition & 1 deletion tests/language-server/robustness-2.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//
// tests broken generic parameter.

Expand Down
2 changes: 1 addition & 1 deletion tests/language-server/robustness-3.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//
// tests broken subscript decl.
//HOVER:7,24
Expand Down
2 changes: 1 addition & 1 deletion tests/language-server/robustness-4.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//
//Broken syntax
//HOVER:1,1
Expand Down
4 changes: 2 additions & 2 deletions tests/language-server/robustness-5.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//
//Broken syntax
//HOVER:9,11
Expand All @@ -10,4 +10,4 @@ struct MyStruct
{
int a = 5;

}
}
2 changes: 1 addition & 1 deletion tests/language-server/robustness-6.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//HOVER:4,8

float dsqr<T:II
Expand Down
4 changes: 2 additions & 2 deletions tests/language-server/robustness-7.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER:
//TEST:LANG_SERVER:
//HOVER:6,15

// Test that we can specialize a generic method called through a dynamic interface.
Expand Down Expand Up @@ -60,4 +60,4 @@ void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID)
float arr[3] = { 2, 3, 4 };
gOutputBuffer[0] = obj.run(arr);

}
}
4 changes: 2 additions & 2 deletions tests/language-server/robustness-8.slang
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//DISABLE_TEST:LANG_SERVER(filecheck=CHECK):
//TEST:LANG_SERVER(filecheck=CHECK):
//
__generic < T : struct> extension T
{
// CHECK: null
//HOVER:7,32
__init(StructuredBuffer<T>) {}
}
}
4 changes: 2 additions & 2 deletions tests/language-server/scalar-member.slang
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//DISABLE_TEST:LANG_SERVER(filecheck=CHECK):
//TEST:LANG_SERVER(filecheck=CHECK):
void f()
{
float v;
//COMPLETE:6,7
v.
}

// CHECK: x
// CHECK: x
2 changes: 1 addition & 1 deletion tests/language-server/smoke.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST(smoke):LANG_SERVER:
//TEST(smoke):LANG_SERVER:
//COMPLETE:31,21
//HOVER:25,30
//SIGNATURE:25,40
Expand Down
2 changes: 1 addition & 1 deletion tests/language-server/this-type-hover.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER(filecheck=CHECK):
//TEST:LANG_SERVER(filecheck=CHECK):

struct G
{}
Expand Down
4 changes: 2 additions & 2 deletions tests/language-server/typename-enum-intval.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER(filecheck=CHECK):
//TEST:LANG_SERVER(filecheck=CHECK):

namespace ns {
enum Test : uint32_t
Expand All @@ -21,4 +21,4 @@ void f()
}

// CHECK: ns.Foo<ns.Test.A>
// CHECK: ns.Foo<ns.Test(3)>
// CHECK: ns.Foo<ns.Test(3)>
4 changes: 2 additions & 2 deletions tests/language-server/vector-member.slang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//DISABLE_TEST:LANG_SERVER(filecheck=CHECK):
//TEST:LANG_SERVER(filecheck=CHECK):
void f()
{
float4 v;
Expand All @@ -9,4 +9,4 @@ void f()
// CHECK: x
// CHECK: y
// CHECK: z
// CHECK: w
// CHECK: w
4 changes: 2 additions & 2 deletions tests/spirv/empty-module.slang
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv

// missing entrypoint attribute
void vertMain()
{}

// CHECK: error 57004
// CHECK: error 57004
Loading