dawn-tools for Debian ====================== Basic invocation of dawn_end2end_tests -------------------------------------- $ dawn_end2end_tests --backend=vulkan --gtest_filter='BasicTests.*' --gtest_brief=1 If it crashes with SIGSEGV, try the following $ GLIBC_TUNABLES=glibc.rtld.optional_static_tls=4194304 \ dawn_end2end_tests ... Full test list: $ dawn_end2end_tests --gtest_list_tests Basic invocation of dawn programs on non-webgpu-conform GPUs ------------------------------------------------------------ This env var raises Vulkan limits that fall below the WebGPU floor, instead of rejecting the adapter, matching whichever feature level (Core or Compatibility) the requesting app actually asked for/ qualifies for. Use with caution: exceeding the real (unraised) limits may corrupt or crash. DEBIAN_DAWN_RAISE_LIMITS=1 riscv64 (JH7110, IMG BXE-4-32 PowerVR) -------------------------------------- Depending on your mesa version you may need https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44008 pvr: add ASTC LDR support https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44082 pvr: raise size limits to real HW capabilities VK_DRIVER_FILES points at a Vulkan ICD manifest like icd.json below: $ cat icd.json { "ICD": { "api_version": "1.2.359", "library_path": "/src/imagination/vulkan/libvulkan_powervr_mesa.so" }, "file_format_version": "1.0.1" } $ VK_DRIVER_FILES= \ PVR_I_WANT_A_BROKEN_VULKAN_DRIVER=1 \ MESA_VK_DEVICE_SELECT=1010:36054182 \ DEBIAN_DAWN_RAISE_LIMITS=1 \ dawn_end2end_tests --backend=vulkan --exclusive-device-type-preference=integrated --gtest_filter='BasicTests.*' --gtest_brief=1 MESA: warning: ../src/imagination/vulkan/winsys/powervr/pvr_drm.c:344: FINISHME: Core count fetching is unimplemented. Setting 1 for now. WARNING: powervr is not a conformant Vulkan implementation, testing use only. Warning: DEBIAN_DAWN_RAISE_LIMITS set - textureCompressionASTC_LDR unsupported, accepting adapter anyway Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimension1D 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimension2D 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimensionCube 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxFramebufferWidth 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxFramebufferHeight 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxViewportDimensions[0] 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxViewportDimensions[1] 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: viewportBoundsRange[1] 8191 -> 16383 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxColorAttachments 4 -> 8 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxUniformBufferRange 16384 -> 65536 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupInvocations 128 -> 256 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupSize[0] 128 -> 256 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupSize[1] 128 -> 256 Warning: maxInterStageShaderVariables clamped to the feature-level floor (hardware maximum is below the spec minimum): 14 -> 16 Warning: eglInitialize failed with EGL_NOT_INITIALIZED - While trying to discover a BackendType::OpenGL adapter. at CheckEGL (./src/dawn/native/opengl/UtilsEGL.cpp:89) Warning: eglInitialize failed with EGL_NOT_INITIALIZED - While trying to discover a BackendType::OpenGLES adapter. at CheckEGL (./src/dawn/native/opengl/UtilsEGL.cpp:89) Info: Testing configuration --------------------- UseWire: false Implicit device synchronization: disabled Run suppressed tests: false BackendValidation: disabled BeginCaptureOnStartup: false System adapters: - "PowerVR B-Series BXE-4-32 MC1" - "Imagination open-source Mesa driver: Mesa 26.3.0-devel 26.2.99 [Selected]" type: Integrated GPU, backend: Vulkan, compatibilityMode: false vendorId: 0x1010, deviceId: 0x36054182 vendorName: img-tec, architecture: b-series - "Null backend" - "" type: CPU, backend: Null, compatibilityMode: false vendorId: 0x0000, deviceId: 0x0000 WARNING: powervr is not a conformant Vulkan implementation, testing use only. Warning: DEBIAN_DAWN_RAISE_LIMITS set - textureCompressionASTC_LDR unsupported, accepting adapter anyway Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimension1D 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimension2D 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxImageDimensionCube 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxFramebufferWidth 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxFramebufferHeight 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxViewportDimensions[0] 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxViewportDimensions[1] 4096 -> 8192 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: viewportBoundsRange[1] 8191 -> 16383 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxColorAttachments 4 -> 8 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxUniformBufferRange 16384 -> 65536 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupInvocations 128 -> 256 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupSize[0] 128 -> 256 Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxComputeWorkGroupSize[1] 128 -> 256 Warning: maxInterStageShaderVariables clamped to the feature-level floor (hardware maximum is below the spec minimum): 14 -> 16 Info: Test unsupported: !HasVendorIdFilter() ./src/dawn/tests/end2end/BasicTests.cpp:43: Skipped [==========] 6 tests from 1 test suite ran. (776 ms total) [ PASSED ] 5 tests. [ SKIPPED ] 1 test. arm64 (Raspberry Pi 4, VideoCore VI) ------------------------------------ $ V3D_WEBGPU_OVERRIDE=1 \ DEBIAN_DAWN_RAISE_LIMITS=1 \ dawn_end2end_tests --backend=vulkan --exclusive-device-type-preference=integrated --gtest_filter='BasicTests.*' --gtest_brief=1 Warning: ../src/intel/vulkan/anv_physical_device.c:2836: Unable to open device : No such file or directory (VK_ERROR_INCOMPATIBLE_DRIVER) Warning: DEBIAN_DAWN_RAISE_LIMITS set - fullDrawIndexUint32 unsupported, accepting adapter anyway Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxColorAttachments 4 -> 8 Warning: eglInitialize failed with EGL_NOT_INITIALIZED - While trying to discover a BackendType::OpenGL adapter. at CheckEGL (./src/dawn/native/opengl/UtilsEGL.cpp:89) Warning: eglInitialize failed with EGL_NOT_INITIALIZED - While trying to discover a BackendType::OpenGLES adapter. at CheckEGL (./src/dawn/native/opengl/UtilsEGL.cpp:89) Info: Testing configuration --------------------- UseWire: false Implicit device synchronization: disabled Run suppressed tests: false BackendValidation: disabled BeginCaptureOnStartup: false System adapters: - "V3D 4.2.14.0" - "V3DV Mesa: Mesa 26.2.1-2~bpo13+0~rpt1 [Selected]" type: Integrated GPU, backend: Vulkan, compatibilityMode: false vendorId: 0x14E4, deviceId: 0xBE485FD3 vendorName: broadcom, architecture: videocore - "llvmpipe (LLVM 19.1.7, 128 bits)" - "llvmpipe: Mesa 26.2.1-2~bpo13+0~rpt1 (LLVM 19.1.7)" type: CPU, backend: Vulkan, compatibilityMode: false vendorId: 0x10005, deviceId: 0x0000 vendorName: mesa, architecture: software - "Null backend" - "" type: CPU, backend: Null, compatibilityMode: false vendorId: 0x0000, deviceId: 0x0000 Warning: ../src/intel/vulkan/anv_physical_device.c:2836: Unable to open device : No such file or directory (VK_ERROR_INCOMPATIBLE_DRIVER) Warning: DEBIAN_DAWN_RAISE_LIMITS set - fullDrawIndexUint32 unsupported, accepting adapter anyway Warning: DEBIAN_DAWN_RAISE_LIMITS set - raising driver limits below the Core feature-level floor: maxColorAttachments 4 -> 8 Info: Test unsupported: !HasVendorIdFilter() ./src/dawn/tests/end2end/BasicTests.cpp:43: Skipped [==========] 6 tests from 1 test suite ran. (147 ms total) [ PASSED ] 5 tests. [ SKIPPED ] 1 test.