You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to compile gpurt pipelines: Common.hlsl:553:18: error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V
#342
Closed
baryluk opened this issue
Oct 29, 2023
· 6 comments
DirectXShaderCompiler from Today's main branch at 64030a4e01e27c608b6c5f1ab5add43575e086f9
I know, README.md says to use tagged earlier release, but it has issues with gcc 13.2.
user@debian:~$ ./amdvlk-build.sh
+ cd /home/user
+ mkdir -p /home/user/amdvlk
+ cd /home/user/amdvlk
+ repo init --partial-clone --depth=1 -u https://github.com/GPUOpen-Drivers/AMDVLK.git -b master
/home/user/amdvlk/.repo/repo/main.py:569: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn("\n... A new version of repo (%s) is available.", exp_str)
... A new version of repo (2.37) is available.
/home/user/amdvlk/.repo/repo/main.py:580: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(
... New version is available at: /home/user/amdvlk/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
repo: reusing existing repo client checkout in /home/user/amdvlk
repo has been initialized in /home/user/amdvlk
++ nproc
+ repo sync --no-clone-bundle --no-tags -j32
/home/user/amdvlk/.repo/repo/main.py:569: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn("\n... A new version of repo (%s) is available.", exp_str)
... A new version of repo (2.37) is available.
/home/user/amdvlk/.repo/repo/main.py:580: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(
... New version is available at: /home/user/amdvlk/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching: 100% (8/8), done in 0.099s
repo sync has finished successfully.
+ cmake -GNinja -Sdrivers/xgl/ -Bdrivers/xgl/builds/Release64
CMake Warning at cmake/XglPackaging.cmake:32 (message):
PACKAGE_NAME is not specified, default is amdvlk
Call Stack (most recent call first):
CMakeLists.txt:56 (include)
CMake Warning at cmake/XglPackaging.cmake:37 (message):
PACKAGE_VERSION is not specified, default is 1.0
Call Stack (most recent call first):
CMakeLists.txt:56 (include)
CMake Warning (dev) at CMakeLists.txt:220 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at /home/user/amdvlk/drivers/third_party/metrohash/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /home/user/amdvlk/drivers/third_party/cwpack/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configured CWPACK compiler options for GCC.
CMake Warning at cmake/XglCompilerOptions.cmake:314 (message):
LTO enabled for xgl
Call Stack (most recent call first):
icd/CMakeLists.txt:36 (xgl_compiler_options)
-- Found XCB: /usr/include;/usr/include;/usr/include;/usr/include;/usr/include
-- PAL_SOURCE_DIR = /home/user/amdvlk/drivers/pal
-- PAL_CLIENT_INTERFACE_MAJOR_VERSION overridden to 827
-- PAL_BUILD_CORE not set. Defaulting to ON.
-- PAL_BUILD_GPUUTIL not set. Defaulting to ON.
-- PAL_DEVELOPER_BUILD not set. Defaulting to OFF.
-- PAL_ENABLE_RPC_SETTINGS not set. Defaulting to OFF.
-- PAL_BUILD_OSS not set. Defaulting to ON.
-- PAL_BUILD_OSS2_4 not set. Defaulting to ON.
-- PAL_BUILD_OSS4 not set. Defaulting to ON.
-- PAL_CLIENT overridden to VULKAN
-- PAL_BUILD_DRI3 overridden to ON
-- PAL_BUILD_WAYLAND overridden to ON
-- PAL_DISPLAY_DCC not set. Defaulting to ON.
-- PAL_BUILD_NULL_DEVICE not set. Defaulting to ON.
-- PAL_BUILD_GFX not set. Defaulting to ON.
CMake Warning (dev) at /home/user/amdvlk/drivers/pal/cmake/PalVersionHelper.cmake:167 (message):
PAL_BUILD_GFX9 not set. Defaulting to ON.
Call Stack (most recent call first):
/home/user/amdvlk/drivers/pal/cmake/PalBuildParameters.cmake:86 (pal_bp)
/home/user/amdvlk/drivers/pal/CMakeLists.txt:37 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- PAL_BUILD_NAVI12 overridden to ON
-- PAL_BUILD_NAVI14 overridden to ON
-- PAL_BUILD_NAVI21 overridden to ON
-- PAL_BUILD_NAVI22 overridden to ON
-- PAL_BUILD_NAVI23 overridden to ON
-- PAL_BUILD_NAVI24 overridden to ON
-- PAL_BUILD_REMBRANDT overridden to ON
-- PAL_BUILD_MENDOCINO overridden to ON
-- PAL_BUILD_RAPHAEL overridden to ON
-- PAL_BUILD_NAVI31 overridden to ON
-- PAL_BUILD_NAVI32 overridden to ON
-- PAL_BUILD_NAVI33 overridden to ON
-- PAL_BUILD_PHOENIX1 overridden to ON
-- PAL_BUILD_RDF not set. Defaulting to ON.
-- PAL_BUILD_RPM_GFX_SHADERS not set. Defaulting to ON.
-- ADDR_ENABLE_WERROR overridden to OFF
-- ADDR_LNX_KERNEL_BUILD not set. Defaulting to ON. Linux kernel build?
-- ADDR_SI_BUILD overridden to ON
-- ADDR_CI_BUILD overridden to ON
-- ADDR_SILENCE_ASSERT_ALWAYS not set. Defaulting to OFF.
-- ADDR_AM_BUILD not set. Defaulting to OFF. Build support for fmask addressing and addr5Swizzle?
-- ADDR_GFX9_BUILD overridden to ON
-- ADDR_GFX10_BUILD overridden to ON
-- ADDR_RENOIR_BUILD overridden to ON
-- ADDR_NAVI12_BUILD overridden to ON
-- ADDR_NAVI14_BUILD overridden to ON
-- ADDR_NAVI21_BUILD overridden to ON
-- ADDR_NAVI22_BUILD overridden to ON
-- ADDR_NAVI23_BUILD overridden to ON
-- ADDR_NAVI24_BUILD overridden to ON
-- ADDR_REMBRANDT_BUILD overridden to ON
-- ADDR_RAPHAEL_BUILD overridden to ON
-- ADDR_MENDOCINO_BUILD overridden to ON
-- ADDR_GFX11_BUILD overridden to ON
-- ADDR_NAVI31_BUILD overridden to ON
-- ADDR_NAVI32_BUILD overridden to ON
-- ADDR_NAVI33_BUILD overridden to ON
-- ADDR_PHOENIX_BUILD overridden to ON
-- ADDR_PHOENIX1_BUILD overridden to ON
-- [SWD]: PAL_SWD_BUILD_GFX11 overridden to ON
-- [SWD]: PAL_SWD_BUILD_NAVI3X overridden to ON
-- [SWD]: PAL_SWD_BUILD_NAVI31 overridden to ON
-- [SWD]: PAL_SWD_BUILD_NAVI32 overridden to ON
-- [SWD]: PAL_SWD_BUILD_NAVI33 overridden to ON
-- [SWD]: PAL_SWD_BUILD_PHX overridden to ON
-- [SWD]: PAL_SWD_BUILD_PHX1 overridden to ON
-- DK_X11 not set. Defaulting to /xfree86/1.19_64a
-- DK_XCB not set. Defaulting to /xcb/1.13_64a
-- Wayland Client is detected
CMake Warning (dev) at /home/user/amdvlk/drivers/pal/shared/devdriver/cmake/DevDriver.cmake:64 (message):
CMAKE_POSITION_INDEPENDENT_CODE not set!
Call Stack (most recent call first):
/home/user/amdvlk/drivers/pal/shared/devdriver/CMakeLists.txt:33 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- DD_BP_ENABLE_TOOL_LIBRARIES not set. Defaulting to OFF.
-- DD_BP_ENABLE_DD_MODULE_APIS not set. Defaulting to OFF.
-- DD_BP_BUILD_MODULES not set. Defaulting to OFF.
-- DD_BP_INSTALL not set. Defaulting to OFF.
-- DD_BP_ENABLE_DD_TEST_UTIL not set. Defaulting to OFF.
-- DD_BP_ENABLE_DD_SETTINGS overridden to ON
-- DD_BP_BUILD_TESTS_EXAMPLES not set. Defaulting to OFF.
-- DD_BP_BUILD_DOCS not set. Defaulting to OFF.
-- DD_MSVC_CODE_ANALYZE not set. Defaulting to OFF.
-- DD_BUILD_RDF not set. Defaulting to OFF.
-- DD_BUILD_RDF_MODULES not set. Defaulting to OFF.
-- DD_OPT_ASSERTS_ENABLE not set. Defaulting to OFF.
-- GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION overridden to 42
-- DD_BRANCH_STRING not set. Defaulting to unknown.
-- PAL build with amdgpu back-end enabled
-- PAL build with amdgpu back-end enabled
-- PAL build with amdgpu back-end enabled
CMake Warning at icd/CMakeLists.txt:328 (message):
LTO enabled for Linking
-- Found Python3: /usr/bin/python3 (found suitable version "3.11.6", minimum required is "3.6") found components: Interpreter
CMake Deprecation Warning at /home/user/amdvlk/drivers/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
The OLD behavior for policy CMP0114 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
/home/user/amdvlk/drivers/llvm-project/llvm/CMakeLists.txt:6 (include)
-- Found Python3: /usr/bin/python3 (found suitable version "3.11.6", minimum required is "3.0") found components: Interpreter
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- LLVM host triple: x86_64-unknown-linux-gnu
-- Native target X86 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.11.1
-- OCaml bindings disabled, need ctypes >=0.4.
-- LLVM default target triple:
-- Building with -fPIC
-- Targeting AMDGPU
-- Begin configuring llvm-dialects...
-- Assuming build as external project for LLVM 18.0 in same build tree
-- LLVM includes: /home/user/amdvlk/drivers/llvm-project/llvm/include;/home/user/amdvlk/drivers/xgl/builds/Release64/compiler/llpc/llvm/include
-- End configuring llvm-dialects
-- Registering ContinuationsPlugin as a pass plugin (static build: ON)
-- LLVM FileCheck Found: /home/user/DirectXShaderCompiler/builds/bin/FileCheck
-- git version: v0.0.0 normalized to 0.0.0
-- Version: 1.6.0
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- LLVM executables: /home/user/amdvlk/drivers/xgl/builds/Release64/compiler/llpc/llvm/./bin
-- LLVM libraries: /home/user/amdvlk/drivers/xgl/builds/Release64/compiler/llpc/llvm/./lib
-- LLVM link options:
CMake Warning at cmake/XglPackaging.cmake:139 (message):
changelog.Debian.gz is not found under /home/user/amdvlk/drivers/xgl,
please put it there
Call Stack (most recent call first):
CMakeLists.txt:329 (generateInstallTargets)
-- Configuring done (2.7s)
-- Generating done (1.1s)
-- Build files have been written to: /home/user/amdvlk/drivers/xgl/builds/Release64
Building (I was doing with ninja --keep-going 0, rest looks to compile, and this is the only failure I could find):
[1/148] Generating pipelines/g_internal_shaders.h, pipelines/g_GpuRtLibrary.h
FAILED: gpurt/src/pipelines/g_internal_shaders.h gpurt/src/pipelines/g_GpuRtLibrary.h /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/g_internal_shaders.h /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/g_GpuRtLibrary.h
cd /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src && /usr/bin/python3 /home/user/amdvlk/drivers/gpurt/tools/CompileRTShaders.py --vulkan --spirv --outputDir /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines --defines "GPURT_BUILD_RTIP2=1;GPURT_DEVELOPER=1;GPURT_CLIENT_API_VULKAN=1;GPURT_CLIENT_INTERFACE_MAJOR_VERSION=39" --shaderConfig /home/user/amdvlk/drivers/gpurt/tools/RTShaders.xml --whiteListPath /home/user/amdvlk/drivers/gpurt/tools/strip_whitelist.txt /home/user/amdvlk/drivers/gpurt/src/shaders/ --strict
Compilation failed for shader EncodeTriangleNodes
Output log:
Compiling EncodeNodes.hlsl:EncodeTriangleNodes -> EncodeTriangleNodes_spv.h...
Subprocess invocation failed. Error code 5. Additional details follow:
Environment: {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'XDG_ACTIVATION_TOKEN': 'gnome-shell/Terminator/3896174-26-debian_TIME3231826699', 'USER': 'user', 'XDG_SESSION_TYPE': 'wayland', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/user/DirectXShaderCompiler/builds/lib::', 'HOME': '/home/user', 'OLDPWD': '/home/user/amdvlk/drivers/xgl/builds/Release64', 'DESKTOP_SESSION': 'gnome', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'GTK_MODULES': 'gail:atk-bridge:appmenu-gtk-module:appmenu-gtk-module', 'MANAGERPID': '4057', 'SYSTEMD_EXEC_PID': '3896174', 'IM_CONFIG_CHECK_ENV': '1', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4144965', 'UBUNTU_MENUPROXY': '1', 'IM_CONFIG_PHASE': '1', 'WAYLAND_DISPLAY': 'wayland-0', 'LOGNAME': 'user', 'JOURNAL_STREAM': '8:3219158615', '_': '/usr/bin/ninja', 'XDG_SESSION_CLASS': 'user', 'USERNAME': 'user', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'PATH': '/home/user/DirectXShaderCompiler/builds/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin', 'SESSION_MANAGER': 'local/debian:@/tmp/.ICE-unix/3896118,unix/debian:/tmp/.ICE-unix/3896118', 'GDM_LANG': 'en_US.UTF-8', 'INVOCATION_ID': '092b66c0e4df46cb84a806a5e2f736eb', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SETUP_DISPLAY': ':1', 'XDG_RUNTIME_DIR': '/run/user/1000', 'ZEITGEIST_DATA_PATH': '/home/user/.local/share/zeitgeist', 'DISPLAY': ':0', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'gnome', 'XAUTHORITY': '/run/user/1000/.mutter-Xwaylandauth.LT3EC2', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'SSH_AGENT_LAUNCHER': 'openssh', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'SHELL': '/bin/bash', 'TERMINATOR_UUID': 'urn:uuid:09b47d0a-0ba2-4c76-9efc-7944b5ecc9db', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'gnome', 'GJS_DEBUG_OUTPUT': 'stderr', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src', 'XDG_DATA_DIRS': '/usr/share/gnome:/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', '_WSREP_START_POSITION': '', 'QTWEBENGINE_DICTIONARIES_PATH': '/usr/share/hunspell-bdic/', 'VTE_VERSION': '7401'}
Command arguments: ['dxc', '-fspv-target-env=vulkan1.1', '-spirv', '-E', 'EncodeTriangleNodes', '-DAMD_VULKAN', '-DAMD_VULKAN_DXC', '-DAMD_VULKAN_SPV', '-DGPURT_BUILD_RTIP2=1', '-DGPURT_DEVELOPER=1', '-DGPURT_CLIENT_API_VULKAN=1', '-DGPURT_CLIENT_INTERFACE_MAJOR_VERSION=39', '-DGPURT_BVH_BUILD_SHADER=1', '-fvk-use-scalar-layout', '-Od', '-Vd', '-T', 'cs_6_2', '-Wno-ignored-attributes', '-Wno-parentheses-equality', '-Fo', 'EncodeTriangleNodes.spv', '/home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl']
Expected empty output: False
Working directory: /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/spv/EncodeTriangleNodes
Stdout:
Stderr:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:160:3: warning: parameter 'status' is uninitialized when used here [-Wparameter-usage]
) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:159:5: note: variable 'status' is declared here
out_param(uint) status ///< Hit status
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerHi' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:39: note: variable 'timerHi' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerLo' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:64: note: variable 'timerLo' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:57:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodePairedTriangle.hlsl:29:
/home/user/amdvlk/drivers/gpurt/src/shaders/EncodePairedTriangleImpl.hlsl:382:29: error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V
triT0LocalIdx = firstbithigh(cachedQuadBitMaskCopy);
^
Failed to compile Vulkan shader config ShaderConfig< Path: EncodeNodes.hlsl, EntryPoint: EncodeTriangleNodes, OutputName: None, BaseLogicalId: None, RootSignaturePath: None, Defines: GPURT_BUILD_RTIP2=1,GPURT_DEVELOPER=1,GPURT_CLIENT_API_VULKAN=1,GPURT_CLIENT_INTERFACE_MAJOR_VERSION=39,GPURT_BVH_BUILD_SHADER=1, GroupTag: BVH >
Compilation failed for shader EncodeTriangleNodesIndirect
Output log:
Compiling EncodeNodes.hlsl:EncodeTriangleNodes -> EncodeTriangleNodesIndirect_spv.h...
Subprocess invocation failed. Error code 5. Additional details follow:
Environment: {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'XDG_ACTIVATION_TOKEN': 'gnome-shell/Terminator/3896174-26-debian_TIME3231826699', 'USER': 'user', 'XDG_SESSION_TYPE': 'wayland', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/user/DirectXShaderCompiler/builds/lib::', 'HOME': '/home/user', 'OLDPWD': '/home/user/amdvlk/drivers/xgl/builds/Release64', 'DESKTOP_SESSION': 'gnome', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'GTK_MODULES': 'gail:atk-bridge:appmenu-gtk-module:appmenu-gtk-module', 'MANAGERPID': '4057', 'SYSTEMD_EXEC_PID': '3896174', 'IM_CONFIG_CHECK_ENV': '1', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4144965', 'UBUNTU_MENUPROXY': '1', 'IM_CONFIG_PHASE': '1', 'WAYLAND_DISPLAY': 'wayland-0', 'LOGNAME': 'user', 'JOURNAL_STREAM': '8:3219158615', '_': '/usr/bin/ninja', 'XDG_SESSION_CLASS': 'user', 'USERNAME': 'user', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'PATH': '/home/user/DirectXShaderCompiler/builds/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin', 'SESSION_MANAGER': 'local/debian:@/tmp/.ICE-unix/3896118,unix/debian:/tmp/.ICE-unix/3896118', 'GDM_LANG': 'en_US.UTF-8', 'INVOCATION_ID': '092b66c0e4df46cb84a806a5e2f736eb', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SETUP_DISPLAY': ':1', 'XDG_RUNTIME_DIR': '/run/user/1000', 'ZEITGEIST_DATA_PATH': '/home/user/.local/share/zeitgeist', 'DISPLAY': ':0', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'gnome', 'XAUTHORITY': '/run/user/1000/.mutter-Xwaylandauth.LT3EC2', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'SSH_AGENT_LAUNCHER': 'openssh', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'SHELL': '/bin/bash', 'TERMINATOR_UUID': 'urn:uuid:09b47d0a-0ba2-4c76-9efc-7944b5ecc9db', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'gnome', 'GJS_DEBUG_OUTPUT': 'stderr', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src', 'XDG_DATA_DIRS': '/usr/share/gnome:/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', '_WSREP_START_POSITION': '', 'QTWEBENGINE_DICTIONARIES_PATH': '/usr/share/hunspell-bdic/', 'VTE_VERSION': '7401'}
Command arguments: ['dxc', '-fspv-target-env=vulkan1.1', '-spirv', '-E', 'EncodeTriangleNodes', '-DAMD_VULKAN', '-DAMD_VULKAN_DXC', '-DAMD_VULKAN_SPV', '-DGPURT_BUILD_RTIP2=1', '-DGPURT_DEVELOPER=1', '-DGPURT_CLIENT_API_VULKAN=1', '-DGPURT_CLIENT_INTERFACE_MAJOR_VERSION=39', '-DINDIRECT_BUILD=1', '-DGPURT_BVH_BUILD_SHADER=1', '-fvk-use-scalar-layout', '-Od', '-Vd', '-T', 'cs_6_2', '-Wno-ignored-attributes', '-Wno-parentheses-equality', '-Fo', 'EncodeTriangleNodesIndirect.spv', '/home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl']
Expected empty output: False
Working directory: /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/spv/EncodeTriangleNodesIndirect
Stdout:
Stderr:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:160:3: warning: parameter 'status' is uninitialized when used here [-Wparameter-usage]
) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:159:5: note: variable 'status' is declared here
out_param(uint) status ///< Hit status
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerHi' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:39: note: variable 'timerHi' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:53:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerLo' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:64: note: variable 'timerLo' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodeNodes.hlsl:57:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/EncodePairedTriangle.hlsl:29:
/home/user/amdvlk/drivers/gpurt/src/shaders/EncodePairedTriangleImpl.hlsl:382:29: error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V
triT0LocalIdx = firstbithigh(cachedQuadBitMaskCopy);
^
Failed to compile Vulkan shader config ShaderConfig< Path: EncodeNodes.hlsl, EntryPoint: EncodeTriangleNodes, OutputName: EncodeTriangleNodesIndirect, BaseLogicalId: None, RootSignaturePath: None, Defines: GPURT_BUILD_RTIP2=1,GPURT_DEVELOPER=1,GPURT_CLIENT_API_VULKAN=1,GPURT_CLIENT_INTERFACE_MAJOR_VERSION=39,INDIRECT_BUILD=1,GPURT_BVH_BUILD_SHADER=1, GroupTag: BVH >
Compilation failed for shader BuildParallel
Output log:
Compiling BuildParallel.hlsl:BuildBvh -> BuildParallel_spv.h...
Subprocess invocation failed. Error code 5. Additional details follow:
Environment: {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'XDG_ACTIVATION_TOKEN': 'gnome-shell/Terminator/3896174-26-debian_TIME3231826699', 'USER': 'user', 'XDG_SESSION_TYPE': 'wayland', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/user/DirectXShaderCompiler/builds/lib::', 'HOME': '/home/user', 'OLDPWD': '/home/user/amdvlk/drivers/xgl/builds/Release64', 'DESKTOP_SESSION': 'gnome', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'GTK_MODULES': 'gail:atk-bridge:appmenu-gtk-module:appmenu-gtk-module', 'MANAGERPID': '4057', 'SYSTEMD_EXEC_PID': '3896174', 'IM_CONFIG_CHECK_ENV': '1', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4144965', 'UBUNTU_MENUPROXY': '1', 'IM_CONFIG_PHASE': '1', 'WAYLAND_DISPLAY': 'wayland-0', 'LOGNAME': 'user', 'JOURNAL_STREAM': '8:3219158615', '_': '/usr/bin/ninja', 'XDG_SESSION_CLASS': 'user', 'USERNAME': 'user', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'PATH': '/home/user/DirectXShaderCompiler/builds/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin', 'SESSION_MANAGER': 'local/debian:@/tmp/.ICE-unix/3896118,unix/debian:/tmp/.ICE-unix/3896118', 'GDM_LANG': 'en_US.UTF-8', 'INVOCATION_ID': '092b66c0e4df46cb84a806a5e2f736eb', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SETUP_DISPLAY': ':1', 'XDG_RUNTIME_DIR': '/run/user/1000', 'ZEITGEIST_DATA_PATH': '/home/user/.local/share/zeitgeist', 'DISPLAY': ':0', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'gnome', 'XAUTHORITY': '/run/user/1000/.mutter-Xwaylandauth.LT3EC2', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'SSH_AGENT_LAUNCHER': 'openssh', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'SHELL': '/bin/bash', 'TERMINATOR_UUID': 'urn:uuid:09b47d0a-0ba2-4c76-9efc-7944b5ecc9db', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'gnome', 'GJS_DEBUG_OUTPUT': 'stderr', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src', 'XDG_DATA_DIRS': '/usr/share/gnome:/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', '_WSREP_START_POSITION': '', 'QTWEBENGINE_DICTIONARIES_PATH': '/usr/share/hunspell-bdic/', 'VTE_VERSION': '7401'}
Command arguments: ['dxc', '-fspv-target-env=vulkan1.1', '-spirv', '-E', 'BuildBvh', '-DAMD_VULKAN', '-DAMD_VULKAN_DXC', '-DAMD_VULKAN_SPV', '-DGPURT_BUILD_RTIP2=1', '-DGPURT_DEVELOPER=1', '-DGPURT_CLIENT_API_VULKAN=1', '-DGPURT_CLIENT_INTERFACE_MAJOR_VERSION=39', '-DGPURT_BVH_BUILD_SHADER=1', '-fvk-use-scalar-layout', '-Od', '-Vd', '-T', 'cs_6_2', '-Wno-ignored-attributes', '-Wno-parentheses-equality', '-Fo', 'BuildParallel.spv', '/home/user/amdvlk/drivers/gpurt/src/shaders/BuildParallel.hlsl']
Expected empty output: False
Working directory: /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/spv/BuildParallel
Stdout:
Stderr:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildParallel.hlsl:62:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommonScratch.hlsl:51:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommon.hlsl:34:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/IntersectCommon.hlsl:28:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:160:3: warning: parameter 'status' is uninitialized when used here [-Wparameter-usage]
) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:159:5: note: variable 'status' is declared here
out_param(uint) status ///< Hit status
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildParallel.hlsl:62:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommonScratch.hlsl:51:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommon.hlsl:34:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/IntersectCommon.hlsl:28:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerHi' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:39: note: variable 'timerHi' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildParallel.hlsl:62:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommonScratch.hlsl:51:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildCommon.hlsl:34:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/IntersectCommon.hlsl:28:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerLo' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:64: note: variable 'timerLo' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:553:18: error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V
return (63 - firstbithigh(value));
^
Failed to compile Vulkan shader config ShaderConfig< Path: BuildParallel.hlsl, EntryPoint: BuildBvh, OutputName: BuildParallel, BaseLogicalId: None, RootSignaturePath: None, Defines: GPURT_BUILD_RTIP2=1,GPURT_DEVELOPER=1,GPURT_CLIENT_API_VULKAN=1,GPURT_CLIENT_INTERFACE_MAJOR_VERSION=39,GPURT_BVH_BUILD_SHADER=1, GroupTag: BVH >
Compilation failed for shader BuildBVH
Output log:
Compiling BuildBVH.hlsl:BuildBVH -> BuildBVH_spv.h...
Subprocess invocation failed. Error code 5. Additional details follow:
Environment: {'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'XDG_ACTIVATION_TOKEN': 'gnome-shell/Terminator/3896174-26-debian_TIME3231826699', 'USER': 'user', 'XDG_SESSION_TYPE': 'wayland', 'SHLVL': '1', 'LD_LIBRARY_PATH': '/home/user/DirectXShaderCompiler/builds/lib::', 'HOME': '/home/user', 'OLDPWD': '/home/user/amdvlk/drivers/xgl/builds/Release64', 'DESKTOP_SESSION': 'gnome', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'GTK_MODULES': 'gail:atk-bridge:appmenu-gtk-module:appmenu-gtk-module', 'MANAGERPID': '4057', 'SYSTEMD_EXEC_PID': '3896174', 'IM_CONFIG_CHECK_ENV': '1', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'COLORTERM': 'truecolor', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4144965', 'UBUNTU_MENUPROXY': '1', 'IM_CONFIG_PHASE': '1', 'WAYLAND_DISPLAY': 'wayland-0', 'LOGNAME': 'user', 'JOURNAL_STREAM': '8:3219158615', '_': '/usr/bin/ninja', 'XDG_SESSION_CLASS': 'user', 'USERNAME': 'user', 'TERM': 'xterm-256color', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'PATH': '/home/user/DirectXShaderCompiler/builds/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin', 'SESSION_MANAGER': 'local/debian:@/tmp/.ICE-unix/3896118,unix/debian:/tmp/.ICE-unix/3896118', 'GDM_LANG': 'en_US.UTF-8', 'INVOCATION_ID': '092b66c0e4df46cb84a806a5e2f736eb', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_SETUP_DISPLAY': ':1', 'XDG_RUNTIME_DIR': '/run/user/1000', 'ZEITGEIST_DATA_PATH': '/home/user/.local/share/zeitgeist', 'DISPLAY': ':0', 'LANG': 'en_US.UTF-8', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XMODIFIERS': '@im=ibus', 'XDG_SESSION_DESKTOP': 'gnome', 'XAUTHORITY': '/run/user/1000/.mutter-Xwaylandauth.LT3EC2', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'SSH_AGENT_LAUNCHER': 'openssh', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'SHELL': '/bin/bash', 'TERMINATOR_UUID': 'urn:uuid:09b47d0a-0ba2-4c76-9efc-7944b5ecc9db', 'QT_ACCESSIBILITY': '1', 'GDMSESSION': 'gnome', 'GJS_DEBUG_OUTPUT': 'stderr', 'QT_IM_MODULE': 'ibus', 'PWD': '/home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src', 'XDG_DATA_DIRS': '/usr/share/gnome:/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', '_WSREP_START_POSITION': '', 'QTWEBENGINE_DICTIONARIES_PATH': '/usr/share/hunspell-bdic/', 'VTE_VERSION': '7401'}
Command arguments: ['dxc', '-fspv-target-env=vulkan1.1', '-spirv', '-E', 'BuildBVH', '-DAMD_VULKAN', '-DAMD_VULKAN_DXC', '-DAMD_VULKAN_SPV', '-DGPURT_BUILD_RTIP2=1', '-DGPURT_DEVELOPER=1', '-DGPURT_CLIENT_API_VULKAN=1', '-DGPURT_CLIENT_INTERFACE_MAJOR_VERSION=39', '-DUSE_BUILD_LBVH=1', '-DGPURT_BVH_BUILD_SHADER=1', '-fvk-use-scalar-layout', '-Od', '-Vd', '-T', 'cs_6_2', '-Wno-ignored-attributes', '-Wno-parentheses-equality', '-Fo', 'BuildBVH.spv', '/home/user/amdvlk/drivers/gpurt/src/shaders/BuildBVH.hlsl']
Expected empty output: False
Working directory: /home/user/amdvlk/drivers/xgl/builds/Release64/gpurt/src/pipelines/spv/BuildBVH
Stdout:
Stderr:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildBVH.hlsl:45:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:160:3: warning: parameter 'status' is uninitialized when used here [-Wparameter-usage]
) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:159:5: note: variable 'status' is declared here
out_param(uint) status ///< Hit status
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildBVH.hlsl:45:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerHi' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:39: note: variable 'timerHi' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/BuildBVH.hlsl:45:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:47:
In file included from /home/user/amdvlk/drivers/gpurt/src/shaders/Debug.hlsl:30:
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:89: warning: parameter 'timerLo' is uninitialized when used here [-Wparameter-usage]
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^~~~~~~~~~~~~~~
/home/user/amdvlk/drivers/gpurt/src/shaders/../shared/rayTracingDefs.h:62:29: note: expanded from macro 'DUMMY_VOID_FUNC'
#define DUMMY_VOID_FUNC { }
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Extensions.hlsl:202:64: note: variable 'timerLo' is declared here
__decl void AmdTraceRaySampleGpuTimer(out_param(uint) timerHi, out_param(uint) timerLo) DUMMY_VOID_FUNC
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:41:22: note: expanded from macro 'out_param'
#define out_param(x) out x
^
/home/user/amdvlk/drivers/gpurt/src/shaders/Common.hlsl:553:18: error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V
return (63 - firstbithigh(value));
^
Failed to compile Vulkan shader config ShaderConfig< Path: BuildBVH.hlsl, EntryPoint: BuildBVH, OutputName: None, BaseLogicalId: None, RootSignaturePath: None, Defines: GPURT_BUILD_RTIP2=1,GPURT_DEVELOPER=1,GPURT_CLIENT_API_VULKAN=1,GPURT_CLIENT_INTERFACE_MAJOR_VERSION=39,USE_BUILD_LBVH=1,GPURT_BVH_BUILD_SHADER=1, GroupTag: BVH >
Launching threads for raytracing shader compilation...
Raytracing shader compilation completed with no errors.
Launching threads for raytracing shader compilation...
ninja: build stopped: cannot make progress due to previous errors.
The text was updated successfully, but these errors were encountered:
patching one file for missing include (#include <cstdint> in DirectXShaderCompiler/tools/clang/include/clang/Basic/Version.h, and adding extra cmake flags (-DCMAKE_CXX_FLAGS="-Wno-error=stringop-overflow -Wno-changes-meaning") for the compiler to ignore some warnings / errors, I compiled this older dxc.
Then amdvlk does build:
[1/148] Generating pipelines/g_internal_shaders.h, pipelines/g_GpuRtLibrary.h
Launching threads for raytracing shader compilation...
Raytracing shader compilation completed with no errors.
Launching threads for raytracing shader compilation...
Raytracing shader compilation completed with no errors.
...
So, this looks like an issue of amdvlk xgl with newer dxc.
I've run into a similar issue trying to compile the latest AMDVLK release. Code compiles with an older version of DirectXShaderCompiler but the latest version fails with error: firstbithigh is not yet implemented for 64-bit width components when targetting SPIR-V.
gcc version 13.2.0 (Debian 13.2.0-6)
DirectXShaderCompiler from Today's main branch at 64030a4e01e27c608b6c5f1ab5add43575e086f9
I know, README.md says to use tagged earlier release, but it has issues with gcc 13.2.
Building (I was doing with
ninja --keep-going 0
, rest looks to compile, and this is the only failure I could find):The text was updated successfully, but these errors were encountered: