Lines Matching +full:vulkan +full:- +full:layers
8 # https://www.apache.org/licenses/LICENSE-2.0
17 # - Python3 (apt-get install -y python3.x)
18 # - GO (apt-get install -y golang-go)
19 # - cmake (version 3.13 or later)
20 # - ninja (apt-get install -y ninja-build)
21 # - git (sudo apt-get install -y git)
24 # - crypto/openpgp (go get -u golang.org/x/crypto/openpgp...)
43 "-d",
44 "--directory",
48 default=str(Path(tempfile.gettempdir()) / "deqp-swiftshader")
51 "-u",
52 "--url",
59 "-l",
60 "--vlayer_url",
63 help="URL of Validation Layers Git repository.",
64 default="https://github.com/KhronosGroup/Vulkan-ValidationLayers.git",
67 "-b",
68 "--sws_build_type",
76 "-q",
77 "--deqp_vk",
80 help="Path to deqp-vk binary.",
83 "-v",
84 "--vk_gl_cts",
87 help="Path to vk-gl-cts source directory.",
90 "-w",
91 "--vk_gl_cts_build",
94 help="Path to vk-gl-cts build directory.",
95 default=str(Path(tempfile.gettempdir()) / "deqp-swiftshader" / "vk-gl-cts-build"),
98 "-t",
99 "--vk_gl_cts_build_type",
102 help="vk-gl-cts build type.",
107 "-r",
108 "--recipe",
112 choices=["run-deqp", "check-comparison"],
113 default="run-deqp",
116 "-f",
117 "--files",
124 "-a",
125 "--validation",
128 help="Enable vulkan validation layers.",
133 "-o",
134 "--result_output",
143 # Check that we have everything needed to run the script when using recipe run-deqp.
144 if ARGS.recipe == "run-deqp":
146 raise RuntimeError("go not found. (apt-get install -y golang-go)")
150 raise RuntimeError("Ninja not found. (apt-get install -y ninja-build)")
152 raise RuntimeError("Git not found. (apt-get install -y git)")
154 raise RuntimeError("vk-gl-cts source directory must be provided. Use --help for more info.")
174 MUSTPASS_LIST = VK_GL_CTS_ROOT_DIR / "external" / "vulkancts" / "mustpass" / "main" / "vk-default.t…
176 … DEQP_VK_BINARY = VK_GL_CTS_BUILD_DIR / "external" / "vulkancts" / "modules" / "vulkan" / "deqp-vk"
218 if line.find(test) != -1:
227 # Run deqp-vk with regres.
229 deqpVkParam = "--deqp-vk=" + deqp_path
230 validationLayerParam = "--validation=" + ARGS.validation
231 testListParam = "--test-list=" + testlist_path
235 def run(command: str, working_dir: str = Path.cwd()) -> None:
396 # Build VK-GL-CTS
403 # Build VK-GL-CTS
404 buildType = "-DCMAKE_BUILD_TYPE=" + ARGS.vk_gl_cts_build_type
405 …run([which("cmake"), "-GNinja", str(VK_GL_CTS_ROOT_DIR), buildType], working_dir=VK_GL_CTS_BUILD_D…
406 run([which("ninja"), "deqp-vk"], working_dir=VK_GL_CTS_BUILD_DIR)
407 print(f"vk-gl-cts built to: {VK_GL_CTS_BUILD_DIR}")
409 # Clone and build SwiftShader and Vulkan validation layers.
420 "-GNinja",
422 "-DSWIFTSHADER_BUILD_EGL:BOOL=OFF",
423 "-DSWIFTSHADER_BUILD_GLESv2:BOOL=OFF",
424 "-DSWIFTSHADER_BUILD_TESTS:BOOL=OFF",
425 "-DINSTALL_GTEST=OFF",
426 "-DBUILD_TESTING:BOOL=OFF",
427 "-DENABLE_CTEST:BOOL=OFF",
428 "-DCMAKE_BUILD_TYPE=" + ARGS.sws_build_type],
430 run([which("cmake"), "--build", ".", "--target", "vk_swiftshader"], working_dir=SWS_BUILD_DIR)
432 # Set Vulkan validation layers if flag is set.
434 # Clone Vulkan validation layers or update if they already exist.
441 # Build and set Vulkan validation layers.
446 "-GNinja",
447 "-C",
451 run([which("cmake"), "--build", "."], working_dir=LAYERS_BUILD_DIR)
452 LAYERS_PATH = str(LAYERS_BUILD_DIR / "layers")
470 if ARGS.recipe == "run-deqp":
477 if ARGS.recipe == "check-comparison":
479 …meError("No comparable files provided. Please provide them with flag --files. Use --help for more …