Skip to content

Instantly share code, notes, and snippets.

From 82ef9c33f7bde0bdba73d7cb7df5e52ee1dc5ca4 Mon Sep 17 00:00:00 2001
From: Christoph Haag <haagch+mesadev@frickel.club>
Date: Fri, 24 Mar 2017 16:42:23 +0100
Subject: [PATCH 1/4] support GALLIUM_HUD=low-fps graph
record the highest frame time in a period, then display 1/highest_frametime
---
src/gallium/auxiliary/hud/hud_context.c | 4 ++
src/gallium/auxiliary/hud/hud_fps.c | 57 +++++++++++++++++++++++--
src/gallium/auxiliary/hud/hud_private.h | 1 +
@ChristophHaag
ChristophHaag / PKGBUILD lib32-llvm-mesa
Last active April 29, 2018 22:53
mesa + llvm pkgbuilds
pkgname=('lib32-llvm-mesa')
pkgver=7.0.0svn_r163702
pkgrel=1
_prefix="/usr/lib32/llvm-mesa"
arch=('x86_64')
url="http://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
makedepends=('cmake' 'libffi' 'python2' 'python-sphinx' 'libedit' 'swig')
makedepends_x86_64=('gcc-multilib')
options=('staticlibs')
@ChristophHaag
ChristophHaag / PKGBUILD
Created April 1, 2018 23:02
mingw-opensuse-bin
pkgname=mingw-opensuse-bin
VER=$(curl http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Tumbleweed/x86_64/ | grep -Po 'mingw64-cross-gcc-[0-9\.\-]+\.x86_64\.rpm' | head -1 | grep -Po '[0-9]+\.[0-9]+\.[0-9]+-[0-9]+' | sed "s/-/\./") #hope they never change their versioning scheme
pkgver="$VER"
pkgrel=1
pkgdesc="Cross GCC for the MinGW-w64 cross-compiler from OpenSuse repositories"
arch=('x86_64')
url="http://gcc.gnu.org"
license=('GPL' 'LGPL' 'FDL' 'custom')
groups=('mingw-w64-toolchain' 'mingw-w64')
depends=('zlib' 'libmpc')
From b19b5f3385922473b14928d8bac7256f1ef4b67a Mon Sep 17 00:00:00 2001
From: Christoph Haag <haagch@frickel.club>
Date: Mon, 2 Apr 2018 00:08:32 +0200
Subject: [PATCH] fix up mingw makefile to work on linux mingw
build with:
CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ make -f Makefile.mingw
---
windows/Makefile.mingw | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@ChristophHaag
ChristophHaag / PKGBUILD
Last active April 27, 2018 16:57
PKGBUILD mesa git for tegra
pkgname=mesa-full-tegra
pkgver=r100838.c9b153fea7
_realver=18.0
pkgrel=1
pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch. Compiles tegra"
arch=(armv7h)
url="http://mesa3d.org/"
license=('LGPL')
depends=('libdrm' 'dri2proto' 'glproto' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu' 'talloc' 'llvm' 'wayland' 'libxvmc' 'python2-mako' 'libxcb')
makedepends=('pkgconfig' 'imake' 'xorg-server-devel' 'meson')
From a3ffa65494cf62d1b4bd2642ec3f637cf3492c6b Mon Sep 17 00:00:00 2001
From: Christoph Haag <haagch@frickel.club>
Date: Thu, 1 Mar 2018 14:10:49 +0100
Subject: [PATCH xf86-video-amdgpu] fix include order for present.h configure
test
xorg-server.h defines _XSERVER64 which is used in X.h to choose the correct definition of XID
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@ChristophHaag
ChristophHaag / gist:ece288d99ac1780f47f814c1ced4302b
Last active January 23, 2018 18:43
build dxvk in docker with opensuse tumbleweed
# get opensuse image and run interactive session:
docker pull opensuse:tumbleweed
docker run -it -u root opensuse:tumbleweed /bin/bash
# install all the stuff in the container
zypper addrepo https://download.opensuse.org/repositories/windows:mingw:win32/openSUSE_Tumbleweed/windows:mingw:win32.repo
zypper addrepo https://download.opensuse.org/repositories/windows:mingw:win64/openSUSE_Tumbleweed/windows:mingw:win64.repo
zypper refresh
SteamVR System Report created Sa Jan 20 01:59:18 2018
<Report>
SteamVR Version: 1516407801
SteamVR Date: 2018-01-20
Steam: No Steam available
Steam Branch:
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 4.15.0-rc4-g006a62b26fbb (chris@c-l) (gcc version 7.2.1 20171224 (GCC)) #5 SMP PREEMPT Fri Jan 19 09:36:13 CET 2018
@ChristophHaag
ChristophHaag / gist:b43c55223525f44ba976f7c69d8ab654
Created January 20, 2018 00:56
steamvr report tracking loss
SteamVR System Report created Sa Jan 20 01:55:24 2018
<Report>
SteamVR Version: 1516407801
SteamVR Date: 2018-01-20
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 4.15.0-rc4-g006a62b26fbb (chris@c-l) (gcc version 7.2.1 20171224 (GCC)) #5 SMP PREEMPT Fri Jan 19 09:36:13 CET 2018
@ChristophHaag
ChristophHaag / lowfps.diff
Created January 7, 2018 14:42
low fps mesa patch
From e6a144ecd9aef2438c66e9f57c2a3419c72df480 Mon Sep 17 00:00:00 2001
From: Christoph Haag <haagch+mesadev@frickel.club>
Date: Fri, 24 Mar 2017 16:42:23 +0100
Subject: [PATCH 1/5] support GALLIUM_HUD=low-fps graph
record the highest frame time in a period, then display 1/highest_frametime
---
src/gallium/auxiliary/hud/hud_context.c | 4 +++
src/gallium/auxiliary/hud/hud_fps.c | 53 +++++++++++++++++++++++++++++++--
src/gallium/auxiliary/hud/hud_private.h | 1 +