|
@@ -2415,142 +2415,109 @@ TEST_F(FileTest, CompatibilityWithVk1p1) {
|
|
}
|
|
}
|
|
|
|
|
|
// Tests for Rich Debug Information
|
|
// Tests for Rich Debug Information
|
|
-// TODO: change |runValidation| parameter back to 'true' once the following bug
|
|
|
|
-// has been fixed in SPIRV-Tools:
|
|
|
|
-// https://github.com/KhronosGroup/SPIRV-Tools/issues/3086
|
|
|
|
-const bool runValidationForRichDebugInfo = true;
|
|
|
|
|
|
|
|
TEST_F(FileTest, RichDebugInfoDebugSource) {
|
|
TEST_F(FileTest, RichDebugInfoDebugSource) {
|
|
- runFileTest("rich.debug.debugsource.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugsource.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoDebugCompilationUnit) {
|
|
TEST_F(FileTest, RichDebugInfoDebugCompilationUnit) {
|
|
- runFileTest("rich.debug.debugcompilationunit.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugcompilationunit.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoDebugLexicalBlock) {
|
|
TEST_F(FileTest, RichDebugInfoDebugLexicalBlock) {
|
|
- runFileTest("rich.debug.debuglexicalblock.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debuglexicalblock.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeBool) {
|
|
TEST_F(FileTest, RichDebugInfoTypeBool) {
|
|
- runFileTest("rich.debug.type.bool.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.bool.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeInt) {
|
|
TEST_F(FileTest, RichDebugInfoTypeInt) {
|
|
- runFileTest("rich.debug.type.int.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.int.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeFloat) {
|
|
TEST_F(FileTest, RichDebugInfoTypeFloat) {
|
|
- runFileTest("rich.debug.type.float.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.float.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeVector) {
|
|
TEST_F(FileTest, RichDebugInfoTypeVector) {
|
|
- runFileTest("rich.debug.type.vector.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.vector.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeMatrix) {
|
|
TEST_F(FileTest, RichDebugInfoTypeMatrix) {
|
|
- runFileTest("rich.debug.type.matrix.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.matrix.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeArray) {
|
|
TEST_F(FileTest, RichDebugInfoTypeArray) {
|
|
- runFileTest("rich.debug.type.array.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.array.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeArrayFromSameType) {
|
|
TEST_F(FileTest, RichDebugInfoTypeArrayFromSameType) {
|
|
- runFileTest("rich.debug.type.array-from-same-type.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.array-from-same-type.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeFunction) {
|
|
TEST_F(FileTest, RichDebugInfoTypeFunction) {
|
|
- runFileTest("rich.debug.type.function.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.function.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeMemberFunction) {
|
|
TEST_F(FileTest, RichDebugInfoTypeMemberFunction) {
|
|
- runFileTest("rich.debug.type.member.function.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.member.function.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeCompositeBeforeFunction) {
|
|
TEST_F(FileTest, RichDebugInfoTypeCompositeBeforeFunction) {
|
|
- runFileTest("rich.debug.type.composite.before.function.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.composite.before.function.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoMemberFunctionParam) {
|
|
TEST_F(FileTest, RichDebugInfoMemberFunctionParam) {
|
|
- runFileTest("rich.debug.member.function.param.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.member.function.param.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, DISABLED_RichDebugInfoMemberFunctionWithoutCall) {
|
|
TEST_F(FileTest, DISABLED_RichDebugInfoMemberFunctionWithoutCall) {
|
|
- runFileTest("rich.debug.member.function.without-call.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.member.function.without-call.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeComposite) {
|
|
TEST_F(FileTest, RichDebugInfoTypeComposite) {
|
|
- runFileTest("rich.debug.type.composite.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.composite.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeCompositeEmpty) {
|
|
TEST_F(FileTest, RichDebugInfoTypeCompositeEmpty) {
|
|
- runFileTest("rich.debug.type.composite.empty.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
-}
|
|
|
|
-TEST_F(FileTest, RichDebugInfoTypeStructuredBuffer) {
|
|
|
|
- runFileTest("rich.debug.structured-buffer.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ false);
|
|
|
|
|
|
+ runFileTest("rich.debug.type.composite.empty.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoLocalVariable) {
|
|
TEST_F(FileTest, RichDebugInfoLocalVariable) {
|
|
- runFileTest("rich.debug.local-variable.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.local-variable.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoGlobalVariable) {
|
|
TEST_F(FileTest, RichDebugInfoGlobalVariable) {
|
|
- runFileTest("rich.debug.global-variable.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.global-variable.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoFunction) {
|
|
TEST_F(FileTest, RichDebugInfoFunction) {
|
|
- runFileTest("rich.debug.function.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.function.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoFunctionParent) {
|
|
TEST_F(FileTest, RichDebugInfoFunctionParent) {
|
|
- runFileTest("rich.debug.function.parent.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.function.parent.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoFunctionParam) {
|
|
TEST_F(FileTest, RichDebugInfoFunctionParam) {
|
|
- runFileTest("rich.debug.function.param.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.function.param.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoDebugSourceMultiple) {
|
|
TEST_F(FileTest, RichDebugInfoDebugSourceMultiple) {
|
|
- runFileTest("rich.debug.debugsource.multiple.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugsource.multiple.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoDeclare) {
|
|
TEST_F(FileTest, RichDebugInfoDeclare) {
|
|
- runFileTest("rich.debug.debugdeclare.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugdeclare.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoDeclareWithoutInit) {
|
|
TEST_F(FileTest, RichDebugInfoDeclareWithoutInit) {
|
|
- runFileTest("rich.debug.debugdeclare.without.init.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugdeclare.without.init.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoScope) {
|
|
TEST_F(FileTest, RichDebugInfoScope) {
|
|
- runFileTest("rich.debug.debugscope.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.debugscope.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeTexture) {
|
|
TEST_F(FileTest, RichDebugInfoTypeTexture) {
|
|
- runFileTest("rich.debug.texture.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.texture.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeRWTexture) {
|
|
TEST_F(FileTest, RichDebugInfoTypeRWTexture) {
|
|
- runFileTest("rich.debug.rwtexture.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.rwtexture.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoTypeSampler) {
|
|
TEST_F(FileTest, RichDebugInfoTypeSampler) {
|
|
- runFileTest("rich.debug.sampler.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.sampler.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoCbuffer) {
|
|
TEST_F(FileTest, RichDebugInfoCbuffer) {
|
|
- runFileTest("rich.debug.cbuffer.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.cbuffer.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoSortTypeTemplate) {
|
|
TEST_F(FileTest, RichDebugInfoSortTypeTemplate) {
|
|
- runFileTest("rich.debug.sort.type.template.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.sort.type.template.hlsl");
|
|
}
|
|
}
|
|
TEST_F(FileTest, RichDebugInfoSwitchDebugScope) {
|
|
TEST_F(FileTest, RichDebugInfoSwitchDebugScope) {
|
|
- runFileTest("rich.debug.switch.debugscope.hlsl", Expect::Success,
|
|
|
|
- /*runValidation*/ runValidationForRichDebugInfo);
|
|
|
|
|
|
+ runFileTest("rich.debug.switch.debugscope.hlsl");
|
|
|
|
+}
|
|
|
|
+TEST_F(FileTest, RichDebugInfoScopeAfterCompoundStatement) {
|
|
|
|
+ runFileTest("rich.debug.scope.after.compound.statement.hlsl");
|
|
|
|
+}
|
|
|
|
+TEST_F(FileTest, RichDebugInfoTypeStructuredBuffer) {
|
|
|
|
+ runFileTest("rich.debug.structured-buffer.hlsl", Expect::Success,
|
|
|
|
+ /*runValidation*/ false);
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace
|
|
} // namespace
|