Skip to content

Instantly share code, notes, and snippets.

View danginsburg's full-sized avatar

Dan Ginsburg danginsburg

View GitHub Profile
@danginsburg
danginsburg / lavapipe_win32_build.md
Last active January 9, 2024 20:04
Building lavapipe for Windows with Visual Studio 2022

Steps I followed to build lavapipe on Windows (1/9/24). Documenting the steps so that I remember, and putting them on gist in case it's useful to anyone else. Much of this info is courtesy of Mike Blumenkrantz.

  1. From cmd.exe as Administrator:
choco install winflexbison pkgconfiglite /Y
  1. Clone mesa:
git clone https://gitlab.freedesktop.org/mesa/mesa.git
@danginsburg
danginsburg / amdvlk64.dll Dynamic rendering crash
Created January 31, 2022 21:10
amdvlk64.dll Dynamic rendering crash
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'rendersystemtest.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'rendersystemtest.exe' (Win32): Loaded '\\upsample-i7\h\dev\source2\main\game\bin\win64\libfontconfig-1.dll'. Symbols loaded.
@danginsburg
danginsburg / RADV Setup
Last active January 7, 2018 07:32
RADV Setup Ubuntu 16.04.2 LTS
First, I setup the padoka PPA:
https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa
I have the following packages installed from there:
i libclc-dev 0.2.0+git20170506.1647.1cb3fbf~x~padoka0 all OpenCL C language implementation - development files
ii libdrm-amdgpu1:amd64 2.4.81+git1706051541.16444e1~x~padoka0 amd64 Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii libdrm-amdgpu1:i386 2.4.81+git1706051541.16444e1~x~padoka0 i386 Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii libdrm-dev:amd64 2.4.81+git1706051541.16444e1~x~padoka0 amd64 Userspace interface to kernel DRM services -- development files
ii libdrm-intel1:amd64 2.4.81+git1706051541.16444e1~x~padoka0 amd64 Userspace interface to intel-specific kernel DRM services -- runtim
@danginsburg
danginsburg / gist:15c766bcea75a97b978916b3219bf836
Created June 9, 2017 19:23
AMDGPU side-by-side with RADV
This is how I was able to switch between RADV and AMDGPUPRO on a system.
tar xvf amdgpu-pro-17.10-414273.tar.xz
dpkg -x vulkan-amdgpu-pro_17.10-414273_amd64.deb ./
find . -iname "libdrm*_amd64.deb" -exec dpkg -x {} ./ \;
Edit amdgpu-pro-17.10-414273/etc/vulkan/icd.d to point to extracted path, i.e.:
{
"file_format_version": "1.0.0",
"ICD": {
@danginsburg
danginsburg / Build RADV with LLVM static libs
Last active January 5, 2018 01:01
Build RADV with LLVM static libs
This was done using:
LLVM from padoka PPA: llvm-5.0-dev 1:5.0~svn303494-0~x~padoka0
First, I needed to patch configure.ac to get the static libraries for LLVM:
diff --git a/configure.ac b/configure.ac
index 5caf316..7bf0fd9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2585,7 +2585,7 @@ if test "x$enable_llvm" = xyes; then
@danginsburg
danginsburg / steam gameoverlayrenderer.so
Created March 13, 2017 16:04
gameoverlayrenderer.so seg fault
dang@fx8350-amd:~/.steam/steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64$ gdb ./dota2
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see: