yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
08f27157
vulkan-sdk-1.4.350.0
1// 2// Copyright (C) 2016 Google, Inc. 3// Copyright (C) 2019, 2022-2024 Arm Limited. 4// Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. 5// 6// All rights reserved. 7// 8// Redistribution and use in source and binary forms, with or without 9// modification, are permitted provided that the following conditions 10// are met: 11// 12// Redistributions of source code must retain the above copyright 13// notice, this list of conditions and the following disclaimer. 14// 15// Redistributions in binary form must reproduce the above 16// copyright notice, this list of conditions and the following 17// disclaimer in the documentation and/or other materials provided 18// with the distribution. 19// 20// Neither the name of Google Inc. nor the names of its 21// contributors may be used to endorse or promote products derived 22// from this software without specific prior written permission. 23// 24// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 27// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 28// COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 29// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 30// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 31// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 34// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35// POSSIBILITY OF SUCH DAMAGE. 36 37#include <algorithm> 38 39#include <gtest/gtest.h> 40 41#include "TestFixture.h" 42 43namespace glslangtest { 44namespace { 45 46struct IoMapData { 47const char * fileName ; 48const char * entryPoint ; 49int baseSamplerBinding ; 50int baseTextureBinding ; 51int baseImageBinding ; 52int baseUboBinding ; 53int baseSsboBinding ; 54bool autoMapBindings ; 55bool flattenUniforms ; 56} ; 57 58std :: string FileNameAsCustomTestSuffixIoMap ( 59const :: testing :: TestParamInfo < IoMapData >& info ) { 60std :: string name = info . param . fileName ; 61// A valid test case suffix cannot have '.' and '-' inside. 62std :: replace ( name . begin () , name . end () , '.' , '_' ) ; 63std :: replace ( name . begin () , name . end () , '-' , '_' ) ; 64return name ; 65} 66 67using CompileVulkanToSpirvTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 68using CompileVulkanToSpirvTestNoLink = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 69using CompileVulkanToSpirvDeadCodeElimTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 70using CompileVulkan1_1ToSpirvTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 71using CompileToSpirv14Test = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 72using CompileToSpirv16Test = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 73using CompileOpenGLToSpirvTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 74using VulkanSemantics = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 75using OpenGLSemantics = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 76using VulkanAstSemantics = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 77using HlslIoMap = GlslangTest <:: testing :: TestWithParam < IoMapData >> ; 78using GlslIoMap = GlslangTest <:: testing :: TestWithParam < IoMapData >> ; 79using CompileVulkanToSpirvTestQCOM = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 80using CompileVulkanToSpirv13TestQCOM = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 81using CompileVulkanToSpirv14TestQCOM = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 82using CompileVulkanToSpirvTestAMD = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 83using CompileVulkanToSpirvTestNV = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 84using CompileVulkanToSpirv14TestNV = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 85using CompileUpgradeTextureToSampledTextureAndDropSamplersTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 86using GlslSpirvDebugInfoTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 87using GlslNonSemanticShaderDebugInfoTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 88using GlslNonSemanticShaderDebugInfoVulkanLatestTest = GlslangTest <:: testing :: TestWithParam < std :: string >> ; 89 90// Compiling GLSL to SPIR-V under Vulkan semantics. Expected to successfully 91// generate SPIR-V. 92TEST_P ( CompileVulkanToSpirvTest , FromFile ) 93{ 94loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 95Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 96Target :: Spv ) ; 97} 98 99// Compiling GLSL to SPIR-V under Vulkan semantics without linking. Expected to successfully generate SPIR-V. 100TEST_P ( CompileVulkanToSpirvTestNoLink , FromFile ) 101{ 102options () . compileOnly = true ; 103// NOTE: Vulkan 1.3 is currently required to use the linkage capability 104// TODO(ncesario) make sure this is actually necessary 105loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , Source :: GLSL , Semantics :: Vulkan , 106glslang :: EShTargetVulkan_1_3 , glslang :: EShTargetSpv_1_0 , Target :: Spv ) ; 107} 108 109TEST_P ( CompileVulkanToSpirvDeadCodeElimTest , FromFile ) 110{ 111loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 112Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 113Target :: Spv ) ; 114} 115 116 117TEST_P ( CompileVulkan1_1ToSpirvTest , FromFile ) 118{ 119loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 120Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_1 , glslang :: EShTargetSpv_1_3 , 121Target :: Spv ) ; 122} 123 124TEST_P ( CompileToSpirv14Test , FromFile ) 125{ 126loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 127Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_1 , glslang :: EShTargetSpv_1_4 , 128Target :: Spv ) ; 129} 130 131TEST_P ( CompileToSpirv16Test , FromFileTargetVulkan1_3 ) 132{ 133loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 134Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_3 , glslang :: EShTargetSpv_1_6 , 135Target :: Spv ) ; 136} 137 138TEST_P ( CompileToSpirv16Test , FromFileTargetVulkan1_4 ) 139{ 140loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 141Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_4 , glslang :: EShTargetSpv_1_6 , 142Target :: Spv ) ; 143} 144 145// Compiling GLSL to SPIR-V under OpenGL semantics. Expected to successfully 146// generate SPIR-V. 147TEST_P ( CompileOpenGLToSpirvTest , FromFile ) 148{ 149loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 150Source :: GLSL , Semantics :: OpenGL , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 151Target :: Spv ) ; 152} 153 154// GLSL-level Vulkan semantics test. Expected to error out before generating 155// SPIR-V. 156TEST_P ( VulkanSemantics , FromFile ) 157{ 158loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 159Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 160Target :: Spv , false ) ; 161} 162 163// GLSL-level Vulkan semantics test. Expected to error out before generating 164// SPIR-V. 165TEST_P ( OpenGLSemantics , FromFile ) 166{ 167loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 168Source :: GLSL , Semantics :: OpenGL , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 169Target :: Spv , false ) ; 170} 171 172// GLSL-level Vulkan semantics test that need to see the AST for validation. 173TEST_P ( VulkanAstSemantics , FromFile ) 174{ 175loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 176Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 177Target :: AST ) ; 178} 179 180// HLSL-level Vulkan semantics tests. 181TEST_P ( HlslIoMap , FromFile ) 182{ 183loadFileCompileIoMapAndCheck ( GlobalTestSettings . testRoot , GetParam () . fileName , 184Source :: HLSL , Semantics :: Vulkan , 185Target :: Spv , GetParam () . entryPoint , 186GetParam () . baseSamplerBinding , 187GetParam () . baseTextureBinding , 188GetParam () . baseImageBinding , 189GetParam () . baseUboBinding , 190GetParam () . baseSsboBinding , 191GetParam () . autoMapBindings , 192GetParam () . flattenUniforms ) ; 193} 194 195// GLSL-level Vulkan semantics tests. 196TEST_P ( GlslIoMap , FromFile ) 197{ 198loadFileCompileIoMapAndCheck ( GlobalTestSettings . testRoot , GetParam () . fileName , 199Source :: GLSL , Semantics :: Vulkan , 200Target :: Spv , GetParam () . entryPoint , 201GetParam () . baseSamplerBinding , 202GetParam () . baseTextureBinding , 203GetParam () . baseImageBinding , 204GetParam () . baseUboBinding , 205GetParam () . baseSsboBinding , 206GetParam () . autoMapBindings , 207GetParam () . flattenUniforms ) ; 208} 209 210// Compiling GLSL to SPIR-V under Vulkan semantics (QCOM extensions enabled). 211// Expected to successfully generate SPIR-V. 212TEST_P ( CompileVulkanToSpirvTestQCOM , FromFile ) 213{ 214loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 215Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 216Target :: Spv ) ; 217} 218 219TEST_P ( CompileVulkanToSpirv13TestQCOM , FromFile ) 220{ 221loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 222Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_1 , glslang :: EShTargetSpv_1_3 , 223Target :: Spv ) ; 224} 225 226TEST_P ( CompileVulkanToSpirv14TestQCOM , FromFile ) 227{ 228loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 229Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_1 , glslang :: EShTargetSpv_1_4 , 230Target :: Spv ) ; 231} 232 233// Compiling GLSL to SPIR-V under Vulkan semantics (AMD extensions enabled). 234// Expected to successfully generate SPIR-V. 235TEST_P ( CompileVulkanToSpirvTestAMD , FromFile ) 236{ 237loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 238Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 239Target :: Spv ) ; 240} 241 242// Compiling GLSL to SPIR-V under Vulkan semantics (NV extensions enabled). 243// Expected to successfully generate SPIR-V. 244TEST_P ( CompileVulkanToSpirvTestNV , FromFile ) 245{ 246loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 247Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , 248Target :: Spv ) ; 249} 250 251TEST_P ( CompileVulkanToSpirv14TestNV , FromFile ) 252{ 253loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , 254Source :: GLSL , Semantics :: Vulkan , glslang :: EShTargetVulkan_1_1 , glslang :: EShTargetSpv_1_4 , 255Target :: Spv ) ; 256} 257 258TEST_P ( CompileUpgradeTextureToSampledTextureAndDropSamplersTest , FromFile ) 259{ 260loadCompileUpgradeTextureToSampledTextureAndDropSamplersAndCheck ( GlobalTestSettings . testRoot , 261GetParam () , 262Source :: GLSL , 263Semantics :: Vulkan , 264Target :: Spv ) ; 265} 266 267TEST_P ( GlslSpirvDebugInfoTest , FromFile ) 268{ 269loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , Source :: GLSL , Semantics :: Vulkan , 270glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , Target :: Spv , true , "" , 271"/baseResults/" , false , true , false ) ; 272} 273 274TEST_P ( GlslNonSemanticShaderDebugInfoTest , FromFile ) 275{ 276loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , Source :: GLSL , Semantics :: Vulkan , 277glslang :: EShTargetVulkan_1_0 , glslang :: EShTargetSpv_1_0 , Target :: Spv , true , "" , 278"/baseResults/" , false , true , true ) ; 279} 280 281TEST_P ( GlslNonSemanticShaderDebugInfoVulkanLatestTest , FromFile ) 282{ 283loadFileCompileAndCheck ( GlobalTestSettings . testRoot , GetParam () , Source :: GLSL , Semantics :: Vulkan , 284glslang :: EShTargetVulkan_1_4 , glslang :: EShTargetSpv_1_6 , Target :: Spv , true , "" , 285"/baseResults/" , false , true , true ) ; 286} 287 288// clang-format off 289INSTANTIATE_TEST_SUITE_P ( 290Glsl , CompileVulkanToSpirvTest , 291:: testing :: ValuesIn ( std :: vector < std :: string > ({ 292// Test looping constructs. 293// No tests yet for making sure break and continue from a nested loop 294// goes to the innermost target. 295"spv.barrier.vert" , 296"spv.do-simple.vert" , 297"spv.do-while-continue-break.vert" , 298"spv.for-complex-condition.vert" , 299"spv.for-continue-break.vert" , 300"spv.for-simple.vert" , 301"spv.for-notest.vert" , 302"spv.for-nobody.vert" , 303"spv.while-continue-break.vert" , 304"spv.while-simple.vert" , 305// vulkan-specific tests 306"rayQuery.rgen" , 307"rayQuery-no-cse.rgen" , 308"rayQuery-initialize.rgen" , 309"rayQuery-allOps.rgen" , 310"rayQuery-allOps.Error.rgen" , 311"rayQuery-committed.Error.rgen" , 312"rayQuery-allOps.comp" , 313"rayQuery-allOps.frag" , 314"rayQuery-initialization.Error.comp" , 315"rayQuery-global.rgen" , 316"rayQuery-types.comp" , 317"rayQuery-OpConvertUToAccelerationStructureKHR.comp" , 318"spv.set.vert" , 319"spv.double.comp" , 320"spv.100ops.frag" , 321"spv.130.frag" , 322"spv.140.frag" , 323"spv.150.geom" , 324"spv.150.vert" , 325"spv.16bitstorage.frag" , 326"spv.16bitstorage_Error.frag" , 327"spv.16bitstorage-int.frag" , 328"spv.16bitstorage_Error-int.frag" , 329"spv.16bitstorage-uint.frag" , 330"spv.16bitstorage_Error-uint.frag" , 331"spv.300BuiltIns.vert" , 332"spv.300layout.frag" , 333"spv.300layout.vert" , 334"spv.300layoutp.vert" , 335"spv.310.comp" , 336"spv.310.bitcast.frag" , 337"spv.330.geom" , 338"spv.400.frag" , 339"spv.400.tesc" , 340"spv.400.tese" , 341"spv.420.geom" , 342"spv.430.frag" , 343"spv.430.vert" , 344"spv.450.tesc" , 345"spv.450.geom" , 346"spv.450.noRedecl.tesc" , 347"spv.8bitstorage-int.frag" , 348"spv.8bitstorage_Error-int.frag" , 349"spv.8bitstorage-uint.frag" , 350"spv.8bitstorage_Error-uint.frag" , 351"spv.8bitstorage-ubo.vert" , 352"spv.8bitstorage-ssbo.vert" , 353"spv.8bit-16bit-construction.frag" , 354"spv.accessChain.frag" , 355"spv.aggOps.frag" , 356"spv.always-discard.frag" , 357"spv.always-discard2.frag" , 358"spv.arbPostDepthCoverage.frag" , 359"spv.arbPostDepthCoverage_Error.frag" , 360"spv.atomicCounter.comp" , 361"spv.bitCast.frag" , 362"spv.bool.vert" , 363"spv.boolInBlock.frag" , 364"spv.branch-return.vert" , 365"spv.bufferhandle11.frag" , 366"spv.bufferhandle12.frag" , 367"spv.bufferhandle13.frag" , 368"spv.bufferhandle14.frag" , 369"spv.bufferhandle15.frag" , 370"spv.bufferhandle16.frag" , 371"spv.bufferhandle17_Errors.frag" , 372"spv.bufferhandle18.frag" , 373"spv.bufferhandle19_Errors.frag" , 374"spv.bufferhandle2.frag" , 375"spv.bufferhandle3_Errors.frag" , 376"spv.bufferhandle4.frag" , 377"spv.bufferhandle5.frag" , 378"spv.bufferhandle6.frag" , 379"spv.bufferhandle7.frag" , 380"spv.bufferhandle8.frag" , 381"spv.bufferhandle9.frag" , 382"spv.bufferhandle20.frag" , 383"spv.bufferhandle21.frag" , 384"spv.bufferhandle22.frag" , 385"spv.bufferhandle23.frag" , 386"spv.bufferhandle24.frag" , 387"spv.bufferhandle25.frag" , 388"spv.bufferhandleRuntimeArray.frag" , 389"spv.bufferhandleUvec2.frag" , 390"spv.bufferhandle_Error.frag" , 391"spv.builtInXFB.vert" , 392"spv.conditionalDemote.frag" , 393"spv.conditionalDiscard.frag" , 394"spv.constructComposite.comp" , 395"spv.constStruct.vert" , 396"spv.constConstruct.vert" , 397"spv.controlFlowAttributes.frag" , 398"spv.conversion.frag" , 399"spv.dataOut.frag" , 400"spv.dataOutIndirect.frag" , 401"spv.dataOutIndirect.vert" , 402"spv.debugPrintf.frag" , 403"spv.debugPrintf_Error.frag" , 404"spv.demoteDisabled.frag" , 405"spv.deepRvalue.frag" , 406"spv.depthOut.frag" , 407"spv.depthUnchanged.frag" , 408"spv.discard-dce.frag" , 409"spv.doWhileLoop.frag" , 410"spv.earlyReturnDiscard.frag" , 411"spv.expect_assume.assumeEXT.comp" , 412"spv.expect_assume.expectEXT.comp" , 413"spv.expect_assume.expectEXT.exttypes.comp" , 414"spv.ext.ShaderTileImage.color.frag" , 415"spv.ext.ShaderTileImage.depth_stencil.frag" , 416"spv.ext.ShaderTileImage.subpassinput.frag" , 417"spv.ext.ShaderTileImage.typemismatch.frag" , 418"spv.ext.ShaderTileImage.overlap.frag" , 419"spv.ext.ShaderTileImage.wronglayout.frag" , 420"spv.extPostDepthCoverage.frag" , 421"spv.extPostDepthCoverage_Error.frag" , 422"spv.float16convertonlyarith.comp" , 423"spv.float16convertonlystorage.comp" , 424"spv.flowControl.frag" , 425"spv.forLoop.frag" , 426"spv.forwardFun.frag" , 427"spv.fp8_error.frag" , 428"spv.fragmentDensity.frag" , 429"spv.fragmentDensity.vert" , 430"spv.fragmentDensity-es.frag" , 431"spv.fragmentDensity-neg.frag" , 432"spv.fsi.frag" , 433"spv.fsi_Error.frag" , 434"spv.fullyCovered.frag" , 435"spv.functionCall.frag" , 436"spv.functionNestedOpaque.vert" , 437"spv.functionSemantics.frag" , 438"spv.functionParameterTypes.frag" , 439"spv.GeometryShaderPassthrough.geom" , 440"spv.funcall.array.frag" , 441"spv.load.bool.array.interface.block.frag" , 442"spv.int_dot.frag" , 443"spv.int_dot_Error.frag" , 444"spv.interpOps.frag" , 445"spv.int64.frag" , 446"spv.intOps.vert" , 447"spv.intrinsicsDebugBreak.frag" , 448"spv.intrinsicsSpirvByReference.vert" , 449"spv.intrinsicsSpirvDecorate.frag" , 450"spv.intrinsicsSpirvDecorateId.comp" , 451"spv.intrinsicsSpirvDecorateString.comp" , 452"spv.intrinsicsSpirvExecutionMode.frag" , 453"spv.intrinsicsSpirvInstruction.vert" , 454"spv.intrinsicsSpirvLiteral.vert" , 455"spv.intrinsicsSpirvStorageClass.rchit" , 456"spv.intrinsicsSpirvType.rgen" , 457"spv.intrinsicsSpirvTypeLocalVar.vert" , 458"spv.intrinsicsSpirvTypeWithTypeSpecifier.vert" , 459"spv.invariantAll.vert" , 460"spv.layer.tese" , 461"spv.layoutNested.vert" , 462"spv.length.frag" , 463"spv.localAggregates.frag" , 464"spv.loops.frag" , 465"spv.loopsArtificial.frag" , 466"spv.matFun.vert" , 467"spv.matrix.frag" , 468"spv.matrix2.frag" , 469"spv.maximalReconvergence.vert" , 470"spv.memoryQualifier.frag" , 471"spv.merge-unreachable.frag" , 472"spv.multiStruct.comp" , 473"spv.multiStructFuncall.frag" , 474"spv.newTexture.frag" , 475"spv.noDeadDecorations.vert" , 476"spv.nonSquare.vert" , 477"spv.nonuniform.frag" , 478"spv.nonuniform2.frag" , 479"spv.nonuniform3.frag" , 480"spv.nonuniform4.frag" , 481"spv.nonuniform5.frag" , 482"spv.noWorkgroup.comp" , 483"spv.nvAtomicFp16Vec.frag" , 484"spv.nv.explicittypecast.frag" , 485"spv.nv.explicittypecast.error.vert" , 486"spv.nullInit.comp" , 487"spv.offsets.frag" , 488"spv.Operations.frag" , 489"spv.paramMemory.frag" , 490"spv.paramMemory.420.frag" , 491"spv.precision.frag" , 492"spv.precisionArgs.frag" , 493"spv.precisionNonESSamp.frag" , 494"spv.precisionTexture.frag" , 495"spv.prepost.frag" , 496"spv.privateVariableTypes.frag" , 497"spv.qualifiers.vert" , 498"spv.sample.frag" , 499"spv.sampleId.frag" , 500"spv.samplePosition.frag" , 501"spv.sampleMaskOverrideCoverage.frag" , 502"spv.scalarlayout.frag" , 503"spv.scalarlayoutfloat16.frag" , 504"spv.shaderBallot.comp" , 505"spv.shaderDrawParams.vert" , 506"spv.shaderGroupVote.comp" , 507"spv.shaderStencilExport.frag" , 508"spv.shiftOps.frag" , 509"spv.simpleFunctionCall.frag" , 510"spv.simpleMat.vert" , 511"spv.sparseTexture.frag" , 512"spv.sparseTextureClamp.frag" , 513"spv.structAssignment.frag" , 514"spv.structCopy.comp" , 515"spv.structDeref.frag" , 516"spv.structure.frag" , 517"spv.switch.frag" , 518"spv.swizzle.frag" , 519"spv.swizzleInversion.frag" , 520"spv.test.frag" , 521"spv.test.vert" , 522"spv.texture.frag" , 523"spv.texture.vert" , 524"spv.textureBuffer.vert" , 525"spv.image.frag" , 526"spv.imageAtomic64.frag" , 527"spv.imageAtomic64.comp" , 528"spv.types.frag" , 529"spv.uint.frag" , 530"spv.uniformArray.frag" , 531"spv.variableArrayIndex.frag" , 532"spv.varyingArray.frag" , 533"spv.varyingArrayIndirect.frag" , 534"spv.vecMatConstruct.frag" , 535"spv.voidFunction.frag" , 536"spv.whileLoop.frag" , 537"spv.AofA.frag" , 538"spv.queryL.frag" , 539"spv.separate.frag" , 540"spv.shortCircuit.frag" , 541"spv.pushConstant.vert" , 542"spv.pushConstantAnon.vert" , 543"spv.subpass.frag" , 544"spv.specConstant.vert" , 545"spv.specConstant.comp" , 546"spv.specConstantComposite.vert" , 547"spv.specConstantOperations.vert" , 548"spv.specConstant.float16.comp" , 549"spv.specConstant.int16.comp" , 550"spv.specConstant.int8.comp" , 551"spv.specConstantOp.int16.comp" , 552"spv.specConstantOp.int8.comp" , 553"spv.specConstantOp.float16.comp" , 554"spv.storageBuffer.vert" , 555"spv.terminate.frag" , 556"spv.subgroupUniformControlFlow.vert" , 557"spv.subgroupSizeARB.frag" , 558"spv.precise.tese" , 559"spv.precise.tesc" , 560"spv.viewportindex.tese" , 561"spv.volatileAtomic.comp" , 562"spv.vulkan100.subgroupArithmetic.comp" , 563"spv.vulkan100.subgroupPartitioned.comp" , 564"spv.xfb.vert" , 565"spv.xfb2.vert" , 566"spv.xfb3.vert" , 567"spv.samplerlessTextureFunctions.frag" , 568"spv.smBuiltins.vert" , 569"spv.smBuiltins.frag" , 570"spv.ARMCoreBuiltIns.vert" , 571"spv.ARMCoreBuiltIns.frag" , 572"spv.builtin.PrimitiveShadingRateEXT.vert" , 573"spv.builtin.ShadingRateEXT.frag" , 574"spv.fragmentShaderBarycentric3.frag" , 575"spv.fragmentShaderBarycentric4.frag" , 576"spv.ext.textureShadowLod.frag" , 577"spv.ext.textureShadowLod.error.frag" , 578"spv.ext.small_types.comp" , 579"spv.floatFetch.frag" , 580"spv.atomicRvalue.error.vert" , 581"spv.sampledImageBlock.frag" , 582"spv.multiple.var.same.const.frag" , 583"spv.textureoffset_non_const.vert" , 584"spv.sparsetextureoffset_non_const.vert" , 585"spv.sparsetextureoffset_non_const_fail.vert" , 586"spv.tensorARM.access_qualifiers.comp" , 587"spv.tensorARM.all_accesses.comp" , 588"spv.tensorARM.array.comp" , 589"spv.tensorARM.declare.comp" , 590"spv.tensorARM.frag" , 591"spv.tensorARM.invalid_access.comp" , 592"spv.tensorARM.invalid_declare.comp" , 593"spv.tensorARM.invalid_operands.comp" , 594"spv.tensorARM.invalid_params.comp" , 595"spv.tensorARM.invalid_size.comp" , 596"spv.tensorARM.invalid_tensor_type.comp" , 597"spv.tensorARM.params.comp" , 598"spv.tensorARM.read.comp" , 599"spv.tensorARM.size.comp" , 600"spv.tensorARM.unrequested_extension_types.comp" , 601})) , 602FileNameAsCustomTestSuffix 603) ; 604 605INSTANTIATE_TEST_SUITE_P ( 606Glsl , CompileVulkanToSpirvTestNoLink , 607:: testing :: ValuesIn ( std :: vector < std :: string > ({ 608"spv.exportFunctions.comp" , 609})) , 610FileNameAsCustomTestSuffix 611) ; 612 613// Cases with deliberately unreachable code. 614// By default the compiler will aggressively eliminate 615// unreachable merges and continues. 616INSTANTIATE_TEST_SUITE_P ( 617GlslWithDeadCode , CompileVulkanToSpirvDeadCodeElimTest , 618:: testing :: ValuesIn ( std :: vector < std :: string > ({ 619"spv.dead-after-continue.vert" , 620"spv.dead-after-discard.frag" , 621"spv.dead-after-return.vert" , 622"spv.dead-after-loop-break.vert" , 623"spv.dead-after-switch-break.vert" , 624"spv.dead-complex-continue-after-return.vert" , 625"spv.dead-complex-merge-after-return.vert" , 626})) , 627FileNameAsCustomTestSuffix 628) ; 629 630// clang-format off 631INSTANTIATE_TEST_SUITE_P ( 632Glsl , CompileVulkan1_1ToSpirvTest , 633:: testing :: ValuesIn ( std :: vector < std :: string > ({ 634"spv.1.3.8bitstorage-ubo.vert" , 635"spv.1.3.8bitstorage-ssbo.vert" , 636"spv.1.3.coopmat.comp" , 637"spv.deviceGroup.frag" , 638"spv.drawParams.vert" , 639"spv.int8.frag" , 640"spv.vulkan110.int16.frag" , 641"spv.int32.frag" , 642"spv.bitops.int8int16.frag" , 643"spv.explicittypes.frag" , 644"spv.float16NoRelaxed.vert" , 645"spv.float32.frag" , 646"spv.float64.frag" , 647"spv.memoryScopeSemantics.comp" , 648"spv.memoryScopeSemantics_Error.comp" , 649"spv.multiView.frag" , 650"spv.queueFamilyScope.comp" , 651"spv.RayGenShader11.rgen" , 652"spv.subgroup.frag" , 653"spv.subgroup.geom" , 654"spv.subgroup.tesc" , 655"spv.subgroup.tese" , 656"spv.subgroup.vert" , 657"spv.subgroupArithmetic.comp" , 658"spv.subgroupBasic.comp" , 659"spv.subgroupBallot.comp" , 660"spv.subgroupBallotNeg.comp" , 661"spv.subgroupClustered.comp" , 662"spv.subgroupClusteredNeg.comp" , 663"spv.subgroupPartitioned.comp" , 664"spv.subgroupRotate.comp" , 665"spv.subgroupShuffle.comp" , 666"spv.subgroupShuffleRelative.comp" , 667"spv.subgroupQuad.comp" , 668"spv.subgroupVote.comp" , 669"spv.subgroupExtendedTypesArithmetic.comp" , 670"spv.subgroupExtendedTypesArithmeticNeg.comp" , 671"spv.subgroupExtendedTypesBallot.comp" , 672"spv.subgroupExtendedTypesBallotNeg.comp" , 673"spv.subgroupExtendedTypesClustered.comp" , 674"spv.subgroupExtendedTypesClusteredNeg.comp" , 675"spv.subgroupExtendedTypesPartitioned.comp" , 676"spv.subgroupExtendedTypesPartitionedNeg.comp" , 677"spv.subgroupExtendedTypesRotate.comp" , 678"spv.subgroupExtendedTypesRotateNeg.comp" , 679"spv.subgroupExtendedTypesShuffle.comp" , 680"spv.subgroupExtendedTypesShuffleNeg.comp" , 681"spv.subgroupExtendedTypesShuffleRelative.comp" , 682"spv.subgroupExtendedTypesShuffleRelativeNeg.comp" , 683"spv.subgroupExtendedTypesQuad.comp" , 684"spv.subgroupExtendedTypesQuadNeg.comp" , 685"spv.subgroupExtendedTypesVote.comp" , 686"spv.subgroupExtendedTypesVoteNeg.comp" , 687"spv.vulkan110.storageBuffer.vert" , 688 689// These tests use the Vulkan memory model. 690"spv.bfloat16.comp" , 691"spv.bfloat16_error.comp" , 692"spv.bfloat16_error.frag" , 693"spv.bufferhandle1.frag" , 694"spv.bufferhandle10.frag" , 695"spv.coopmat.comp" , 696"spv.coopmat_Error.comp" , 697"spv.coopmatKHR.comp" , 698"spv.coopmat_armlayout.comp" , 699"spv.coopmatKHR_arithmetic.comp" , 700"spv.coopmatKHR_arithmeticError.comp" , 701"spv.coopmatKHR_Error.comp" , 702"spv.coopmatKHR_constructor.comp" , 703"spv.coopmatKHR_constructorError.comp" , 704"spv.coopmatKHR_matmuladd_Error.comp" , 705"spv.coopvec.comp" , 706"spv.coopvec2.comp" , 707"spv.coopvecloadstore.comp" , 708"spv.coopvec_Error.comp" , 709"spv.coopvecloadstore_Error.comp" , 710"spv.coopvecStoreLocal.comp" , 711"spv.coopvecTraining.comp" , 712"spv.coopvecTraining_Error.comp" , 713"spv.intcoopmat.comp" , 714"spv.intrinsicsInteractWithCoopMat.comp" , 715"spv.longVector.comp" , 716"spv.longVectorLiteral234.comp" , 717"spv.longVectorMatMul.comp" , 718"spv.longVectorNotReserved.comp" , 719"spv.longVectorSpecConst.comp" , 720"spv.longVectorOperators.comp" , 721"spv.longVectorBadParams.decls.comp" , 722"spv.longVectorBadParams.constructors.comp" , 723"spv.longVectorBadParams.constructors.as.type.comp" , 724"spv.longVectorBuiltins.comp" , 725"spv.longVectorBuiltinsfp16.comp" , 726"spv.longVectorBuiltinsfp64.comp" , 727"spv.longVectorBuiltinsint8.comp" , 728"spv.longVectorBuiltinsint16.comp" , 729"spv.longVectorBuiltinsint32.comp" , 730"spv.longVectorBuiltinsint64.comp" , 731"spv.longVectorBuiltinsuint8.comp" , 732"spv.longVectorBuiltinsuint16.comp" , 733"spv.longVectorBuiltinsuint32.comp" , 734"spv.longVectorBuiltinsuint64.comp" , 735"spv.longVectorBuiltinsBitcast.comp" , 736"spv.longVectorBuiltinsError.comp" , 737"spv.longVectorBuiltinsSpecConst.comp" , 738"spv.longVectorBuiltinsSpecConstint32.comp" , 739"spv.longVectorBuiltinsSubgroup.comp" , 740"spv.longVectorBuiltins.frag" , 741"spv.longVectorStorage.comp" , 742"spv.replicate.comp" , 743"spv.replicatespec.comp" , 744"spv.atomicAdd.bufferReference.comp" , 745"spv.nontemporalbuffer.frag" , 746"spv.atomicFloat.comp" , 747})) , 748FileNameAsCustomTestSuffix 749) ; 750 751// clang-format off 752INSTANTIATE_TEST_SUITE_P ( 753Glsl , CompileToSpirv14Test , 754:: testing :: ValuesIn ( std :: vector < std :: string > ({ 755"spv.1.4.LoopControl.frag" , 756"spv.1.4.NonWritable.frag" , 757"spv.1.4.OpEntryPoint.frag" , 758"spv.1.4.OpEntryPoint.opaqueParams.vert" , 759"spv.1.4.OpSelect.frag" , 760"spv.1.4.OpCopyLogical.comp" , 761"spv.1.4.OpCopyLogicalBool.comp" , 762"spv.1.4.OpCopyLogical.funcall.frag" , 763"spv.1.4.funcall.array.frag" , 764"spv.1.4.load.bool.array.interface.block.frag" , 765"spv.1.4.image.frag" , 766"spv.1.4.sparseTexture.frag" , 767"spv.1.4.texture.frag" , 768"spv.1.4.constructComposite.comp" , 769"spv.ext.AnyHitShader.rahit" , 770"spv.ext.AnyHitShader_Errors.rahit" , 771"spv.ext.ClosestHitShader.rchit" , 772"spv.ext.ClosestHitShader_Subgroup.rchit" , 773"spv.ext.ClosestHitShader_Errors.rchit" , 774"spv.ext.IntersectShader.rint" , 775"spv.ext.IntersectShader_Errors.rint" , 776"spv.ext.MissShader.rmiss" , 777"spv.ext.MissShader_Errors.rmiss" , 778"spv.ext.RayPrimCull_Errors.rgen" , 779"spv.ext.RayCallable.rcall" , 780"spv.ext.RayCallable_Errors.rcall" , 781"spv.ext.RayConstants.rgen" , 782"spv.ext.RayGenShader.rgen" , 783"spv.ext.RayGenShader_Errors.rgen" , 784"spv.ext.RayGenShader11.rgen" , 785"spv.ext.RayGenShaderArray.rgen" , 786"spv.ext.RayGenSBTlayout.rgen" , 787"spv.ext.RayGenSBTlayout140.rgen" , 788"spv.ext.RayGenSBTlayout430.rgen" , 789"spv.ext.RayGenSBTlayoutscalar.rgen" , 790"spv.ext.World3x4.rahit" , 791"spv.ext.AccelDecl.frag" , 792"spv.ext.RayQueryDecl.frag" , 793 794// SPV_KHR_workgroup_memory_explicit_layout depends on SPIR-V 1.4. 795"spv.WorkgroupMemoryExplicitLayout.SingleBlock.comp" , 796"spv.WorkgroupMemoryExplicitLayout.MultiBlock.comp" , 797"spv.WorkgroupMemoryExplicitLayout.8BitAccess.comp" , 798"spv.WorkgroupMemoryExplicitLayout.16BitAccess.comp" , 799"spv.WorkgroupMemoryExplicitLayout.NonBlock.comp" , 800"spv.WorkgroupMemoryExplicitLayout.MixBlockNonBlock_Errors.comp" , 801"spv.WorkgroupMemoryExplicitLayout.std140.comp" , 802"spv.WorkgroupMemoryExplicitLayout.std430.comp" , 803"spv.WorkgroupMemoryExplicitLayout.scalar.comp" , 804"spv.khrComputeShaderDerivatives.comp" , 805"spv.khrComputeShaderDerivatives2.comp" , 806 807// SPV_EXT_mesh_shader 808"spv.ext.meshShaderBuiltins.mesh" , 809"spv.ext.meshShaderBuiltinsShadingRate.mesh" , 810"spv.ext.meshShaderRedeclBuiltins.mesh" , 811"spv.ext.meshShaderTaskMem.mesh" , 812"spv.ext.meshShaderUserDefined.mesh" , 813"spv.ext.meshTaskShader.task" , 814"spv.atomiAddEXT.error.mesh" , 815"spv.atomiAddEXT.task" , 816"spv.460.subgroupEXT.task" , 817"spv.460.subgroupEXT.mesh" , 818"spv.khrComputeShaderDerivatives.task" , 819"spv.khrComputeShaderDerivatives.mesh" , 820 821// SPV_NV_shader_execution_reorder 822 823"spv.nv.hitobject-errors.rgen" , 824"spv.nv.hitobject-allops.rgen" , 825"spv.nv.hitobject-allops.rchit" , 826"spv.nv.hitobject-allops.rmiss" , 827 828// SPV_EXT_shader_execution_reorder 829 830"spv.ext.hitobject-errors.rgen" , 831"spv.ext.hitobject-allops.rgen" , 832"spv.ext.hitobject-allops.rchit" , 833"spv.ext.hitobject-allops.rmiss" , 834 835// SPV_NV_displacment_micromap 836 837"spv.nv.dmm-allops.rgen" , 838"spv.nv.dmm-allops.rchit" , 839"spv.nv.dmm-allops.rahit" , 840"spv.nv.dmm-allops.mesh" , 841"spv.nv.dmm-allops.comp" , 842 843// SPV_NV_cluster_acceleration_structure 844"spv.nv.cluster-allops.rgen" , 845"spv.nv.cluster-allops.rchit" , 846"spv.nv.cluster-allops.rmiss" , 847"spv.nv.cluster-allops.rahit" , 848"spv.nv.cluster-allops.frag" , 849 850// SPV_NV_linear_swept_spheres 851 852"spv.nv.lss-allops.rgen" , 853"spv.nv.lss-allops.rchit" , 854"spv.nv.lss-allops.rmiss" , 855"spv.nv.lss-allops.frag" , 856"spv.nv.lss-spheregeomcap.rgen" , 857"spv.nv.lss-lssgeomcap.rgen" , 858 859// SPV_EXT_descriptor_heap 860 861"spv.descriptorHeap.AtomicImage.comp" , 862"spv.descriptorHeap.AtomicImage.error.comp" , 863"spv.descriptorHeap.Buffer.comp" , 864"spv.descriptorHeap.Stride.comp" , 865"spv.descriptorHeap.DebugPrintf.comp" , 866"spv.descriptorHeap.HeapNotArray.error.comp" , 867"spv.descriptorHeap.HeapStrideNotHeap.error.comp" , 868"spv.descriptorHeap.HeapStrideNotPow2.error.comp" , 869"spv.descriptorHeap.PushConstant.comp" , 870"spv.tensorARM.descriptorHeap.comp" , 871"spv.descriptorHeap.valid.frag" , 872 873// SPV_KHR_abort 874"spv.shader.abort.comp" , 875})) , 876FileNameAsCustomTestSuffix 877) ; 878 879// clang-format off 880INSTANTIATE_TEST_SUITE_P ( 881Glsl , CompileToSpirv16Test , 882:: testing :: ValuesIn ( std :: vector < std :: string > ({ 883"spv.1.6.conditionalDiscard.frag" , 884"spv.1.6.helperInvocation.frag" , 885"spv.1.6.helperInvocation.memmodel.frag" , 886"spv.1.6.specConstant.comp" , 887"spv.1.6.samplerBuffer.frag" , 888"spv.1.6.separate.frag" , 889"spv.1.6.quad.frag" , 890"spv.64bit_indexing.comp" , 891"spv.64bit_indexing_error.comp" , 892"spv.coopmat2_constructor.comp" , 893"spv.coopmat2_error.comp" , 894"spv.coopmat2_tensor.comp" , 895"spv.1.6.nontemporalimage.frag" , 896"spv.noexplicitlayout.comp" , 897"spv.floate4m3.comp" , 898"spv.floate4m3.const.comp" , 899"spv.floate4m3_error.comp" , 900"spv.floate5m2.comp" , 901"spv.floate5m2.const.comp" , 902"spv.floate5m2_error.comp" , 903"spv.promote_uint32_indices.comp" , 904})) , 905FileNameAsCustomTestSuffix 906) ; 907 908 909// clang-format off 910INSTANTIATE_TEST_SUITE_P ( 911Hlsl , HlslIoMap , 912:: testing :: ValuesIn ( std :: vector < IoMapData > { 913{ "spv.register.autoassign.frag" , "main_ep" , 5 , 10 , 0 , 20 , 30 , true , false } , 914{ "spv.register.noautoassign.frag" , "main_ep" , 5 , 10 , 0 , 15 , 30 , false , false } , 915{ "spv.register.autoassign-2.frag" , "main" , 5 , 10 , 0 , 15 , 30 , true , true } , 916{ "spv.register.subpass.frag" , "main" , 0 , 20 , 0 , 0 , 0 , true , true } , 917{ "spv.buffer.autoassign.frag" , "main" , 5 , 10 , 0 , 15 , 30 , true , true } , 918{ "spv.ssbo.autoassign.frag" , "main" , 5 , 10 , 0 , 15 , 30 , true , true } , 919{ "spv.ssboAlias.frag" , "main" , 0 , 0 , 0 , 0 , 83 , true , false } , 920{ "spv.rw.autoassign.frag" , "main" , 5 , 10 , 20 , 15 , 30 , true , true } , 921{ "spv.register.autoassign.rangetest.frag" , "main" , 922glslang :: TQualifier :: layoutBindingEnd - 2 , 923glslang :: TQualifier :: layoutBindingEnd + 5 , 9240 , 20 , 30 , true , false } , 925}) , 926FileNameAsCustomTestSuffixIoMap 927) ; 928 929// clang-format off 930INSTANTIATE_TEST_SUITE_P ( 931Hlsl , GlslIoMap , 932:: testing :: ValuesIn ( std :: vector < IoMapData > { 933{ "spv.glsl.register.autoassign.frag" , "main" , 5 , 10 , 0 , 20 , 30 , true , false } , 934{ "spv.glsl.register.noautoassign.frag" , "main" , 5 , 10 , 0 , 15 , 30 , false , false } , 935}) , 936FileNameAsCustomTestSuffixIoMap 937) ; 938 939// clang-format off 940INSTANTIATE_TEST_SUITE_P ( 941Glsl , CompileOpenGLToSpirvTest , 942:: testing :: ValuesIn ( std :: vector < std :: string > ({ 943"spv.460.frag" , 944"spv.460.vert" , 945"spv.460.comp" , 946"spv.atomic.comp" , 947"spv.atomicFloat_Error.comp" , 948"spv.glFragColor.frag" , 949"spv.rankShift.comp" , 950"spv.specConst.vert" , 951"spv.specTexture.frag" , 952"spv.OVR_multiview.vert" , 953"spv.uniformInitializer.frag" , 954"spv.uniformInitializerSpecConstant.frag" , 955"spv.uniformInitializerStruct.frag" , 956"spv.xfbOffsetOnBlockMembersAssignment.vert" , 957"spv.xfbOffsetOnStructMembersAssignment.vert" , 958"spv.xfbOverlapOffsetCheckWithBlockAndMember.vert" , 959"spv.xfbStrideJustOnce.vert" , 960})) , 961FileNameAsCustomTestSuffix 962) ; 963 964INSTANTIATE_TEST_SUITE_P ( 965Glsl , VulkanSemantics , 966:: testing :: ValuesIn ( std :: vector < std :: string > ({ 967"vulkan.frag" , 968"vulkan.vert" , 969"vulkan.comp" , 970"samplerlessTextureFunctions.frag" , 971"spv.intrinsicsFakeEnable.vert" , 972"spv.specConstArrayCheck.vert" , 973"spv.khrComputeShaderDerivativesMissingLayout.comp" , 974"spv.khrComputeShaderDerivativesNoLayout.comp" , 975"spv.khrComputeShaderDerivativesBoth.comp" , 976"spv.khrComputeShaderDerivativesBadSize.comp" , 977})) , 978FileNameAsCustomTestSuffix 979) ; 980 981INSTANTIATE_TEST_SUITE_P ( 982Glsl , OpenGLSemantics , 983:: testing :: ValuesIn ( std :: vector < std :: string > ({ 984"glspv.esversion.vert" , 985"glspv.version.frag" , 986"glspv.version.vert" , 987"glspv.frag" , 988"glspv.vert" , 989})) , 990FileNameAsCustomTestSuffix 991) ; 992 993INSTANTIATE_TEST_SUITE_P ( 994Glsl , VulkanAstSemantics , 995:: testing :: ValuesIn ( std :: vector < std :: string > ({ 996"vulkan.ast.vert" , 997})) , 998FileNameAsCustomTestSuffix 999) ; 1000 1001INSTANTIATE_TEST_SUITE_P ( 1002Glsl , CompileVulkanToSpirvTestQCOM , 1003:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1004"spv.qcom.tileShading.0.comp" , 1005"spv.qcom.tileShading.1.comp" , 1006"spv.qcom.es.tileShading.0.comp" , 1007"spv.qcom.es.tileShading.1.comp" , 1008"spv.qcom.es.tileShading.2.comp" , 1009"spv.qcom.tileShading.0.frag" , 1010"spv.qcom.tileShading.1.frag" , 1011"spv.qcom.es.tileShading.0.frag" , 1012"spv.qcom.es.tileShading.1.frag" , 1013})) , 1014FileNameAsCustomTestSuffix 1015) ; 1016 1017INSTANTIATE_TEST_SUITE_P ( 1018Glsl , CompileVulkanToSpirv13TestQCOM , 1019:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1020"spv.qcom.coopmatConversion.1.comp" , 1021"spv.qcom.coopmatConversion.2.comp" , 1022})) , 1023FileNameAsCustomTestSuffix 1024) ; 1025 1026INSTANTIATE_TEST_SUITE_P ( 1027Glsl , CompileVulkanToSpirv14TestQCOM , 1028:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1029"spv.tpipSampleWeighted.frag" , 1030"spv.tpipBoxFilter.frag" , 1031"spv.tpipBlockMatchSSD.frag" , 1032"spv.tpipBlockMatchSAD.frag" , 1033"spv.tpipTextureArrays.frag" , 1034"spv.tpipBlockMatchGatherSAD.frag" , 1035"spv.tpipBlockMatchGatherSSD.frag" , 1036"spv.tpipBlockMatchWindowSAD.frag" , 1037"spv.tpipBlockMatchWindowSSD.frag" , 1038})) , 1039FileNameAsCustomTestSuffix 1040) ; 1041 1042INSTANTIATE_TEST_SUITE_P ( 1043Glsl , CompileVulkanToSpirvTestAMD , 1044:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1045"spv.16bitxfb.vert" , 1046"spv.float16.frag" , 1047"spv.float16Fetch.frag" , 1048"spv.imageLoadStoreLod.frag" , 1049"spv.int16.frag" , 1050"spv.int16.amd.frag" , 1051"spv.shaderBallotAMD.comp" , 1052"spv.shaderFragMaskAMD.frag" , 1053"spv.textureGatherBiasLod.frag" , 1054})) , 1055FileNameAsCustomTestSuffix 1056) ; 1057 1058INSTANTIATE_TEST_SUITE_P ( 1059Glsl , CompileVulkanToSpirvTestNV , 1060:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1061"spv.sampleMaskOverrideCoverage.frag" , 1062"spv.GeometryShaderPassthrough.geom" , 1063"spv.viewportArray2.vert" , 1064"spv.viewportArray2.tesc" , 1065"spv.stereoViewRendering.vert" , 1066"spv.stereoViewRendering.tesc" , 1067"spv.multiviewPerViewAttributes.vert" , 1068"spv.multiviewPerViewAttributes.tesc" , 1069"spv.atomicInt64.comp" , 1070"spv.atomicStoreInt64.comp" , 1071"spv.shadingRate.frag" , 1072"spv.RayGenShader.rgen" , 1073"spv.RayGenShaderArray.rgen" , 1074"spv.RayGenShader_Errors.rgen" , 1075"spv.RayConstants.rgen" , 1076"spv.IntersectShader.rint" , 1077"spv.IntersectShader_Errors.rint" , 1078"spv.AnyHitShader.rahit" , 1079"spv.AnyHitShader_Errors.rahit" , 1080"spv.ClosestHitShader.rchit" , 1081"spv.ClosestHitShader_Errors.rchit" , 1082"spv.MissShader.rmiss" , 1083"spv.MissShader_Errors.rmiss" , 1084"spv.RayCallable.rcall" , 1085"spv.RayCallable_Errors.rcall" , 1086"spv.fragmentShaderBarycentric.frag" , 1087"spv.fragmentShaderBarycentric2.frag" , 1088"spv.computeShaderDerivatives.comp" , 1089"spv.computeShaderDerivatives2.comp" , 1090"spv.computeShaderDerivativesSpec.comp" , 1091"spv.computeShaderDerivativesSpec2.comp" , 1092"spv.shaderImageFootprint.frag" , 1093"spv.meshShaderBuiltins.mesh" , 1094"spv.meshShaderUserDefined.mesh" , 1095"spv.meshShaderPerViewBuiltins.mesh" , 1096"spv.meshShaderPerViewUserDefined.mesh" , 1097"spv.meshShaderPerView_Errors.mesh" , 1098"spv.meshShaderSharedMem.mesh" , 1099"spv.meshShaderTaskMem.mesh" , 1100"spv.320.meshShaderUserDefined.mesh" , 1101"spv.meshShaderRedeclBuiltins.mesh" , 1102"spv.meshShaderRedeclPerViewBuiltins.mesh" , 1103"spv.meshTaskShader.task" , 1104"spv.perprimitiveNV.frag" , 1105"spv.nvgpushader5.frag" , 1106"spv.pushConstantBank.vert" , 1107})) , 1108FileNameAsCustomTestSuffix 1109) ; 1110 1111INSTANTIATE_TEST_SUITE_P ( 1112Glsl , CompileVulkanToSpirv14TestNV , 1113:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1114"spv.RayGenShaderMotion.rgen" , 1115"spv.IntersectShaderMotion.rint" , 1116"spv.AnyHitShaderMotion.rahit" , 1117"spv.ClosestHitShaderMotion.rchit" , 1118"spv.MissShaderMotion.rmiss" , 1119})) , 1120FileNameAsCustomTestSuffix 1121) ; 1122 1123INSTANTIATE_TEST_SUITE_P ( 1124Glsl , CompileUpgradeTextureToSampledTextureAndDropSamplersTest , 1125:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1126"spv.texture.sampler.transform.frag" , 1127})) , 1128FileNameAsCustomTestSuffix 1129) ; 1130 1131INSTANTIATE_TEST_SUITE_P ( 1132Glsl , GlslSpirvDebugInfoTest , 1133:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1134"spv.pp.line.frag" , 1135})) , 1136FileNameAsCustomTestSuffix 1137) ; 1138 1139INSTANTIATE_TEST_SUITE_P ( 1140Glsl , GlslNonSemanticShaderDebugInfoTest , 1141:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1142"spv.debuginfo.glsl.vert" , 1143"spv.debuginfo.glsl.frag" , 1144"spv.debuginfo.glsl.comp" , 1145"spv.debuginfo.glsl.geom" , 1146"spv.debuginfo.glsl.tesc" , 1147"spv.debuginfo.glsl.tese" , 1148"spv.debuginfo.bufferref.glsl.frag" , 1149"spv.debuginfo.const_params.glsl.comp" , 1150"spv.debuginfo.scalar_types.glsl.frag" , 1151"spv.debuginfo.include.glsl.frag" , 1152"spv.debuginfo.macro.include.glsl.frag" , 1153"spv.debuginfo.multiline.glsl.frag" , 1154"spv.debuginfo.implicit_br.glsl.frag" , 1155"spv.debuginfo.non_ascii.glsl.frag" , 1156"spv.debuginfo.continued.glsl.vert" , 1157"spv.debuginfo.interface_bool.glsl.comp" , 1158"spv.debuginfo.sampler_type.glsl.frag" , 1159"spv.debuginfo.const_variables.glsl.frag" , 1160"spv.debuginfo.ubo.glsl.frag" , 1161"spv.debuginfo.declaration.glsl.frag" , 1162})) , 1163FileNameAsCustomTestSuffix 1164) ; 1165 1166INSTANTIATE_TEST_SUITE_P ( 1167Glsl , GlslNonSemanticShaderDebugInfoVulkanLatestTest , 1168:: testing :: ValuesIn ( std :: vector < std :: string > ({ 1169"spv.debuginfo.rt_types.glsl.rgen" , 1170"spv.debuginfo.rt_nv_builtins.glsl.rahit" , 1171"spv.debuginfo.rt_ext_builtins.glsl.rahit" , 1172})) , 1173FileNameAsCustomTestSuffix 1174) ; 1175// clang-format on 1176 1177} // anonymous namespace 1178} // namespace glslangtest