Skip to content

Instantly share code, notes, and snippets.

@groleo
groleo / gist:e6e1bb8fb626b5bf7db362854914055b
Last active August 10, 2016 20:52 — forked from SaschaWillems/gist:47be6970a3e99a3d30e1
Intel Vulkan Mesa on Ubuntu 15.10
# Pre requisites
- Enable DRI3 as described in https://vulkan.lunarg.com/app/docs/v1.0.3.1/getting_started_linux
- Install a library for SHA, e.g. sudo apt-get install libgcrypt11-dev (if not already present)
- Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders
# Building
- Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b master
- cd mesa
- autoreconf -vfi
- ./configure --enable-debug --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel
@groleo
groleo / gist:4731938c7a207f388f8ed2233661c3b1
Last active April 12, 2016 14:17
GDB extension to automatically get the source files when doing a "backtrace"
# GDB python extension to pull the source files from a server, when executing "gdb backtrace"
# Modify file_server to match your needs
# Tested on gdb 7.10
# It depends on scp and password-less login.
# Adapted from a GDB example [https://sourceware.org/gdb/onlinedocs/gdb/Python.html#Python]
import gdb
from gdb.FrameDecorator import FrameDecorator
file_server='host where you've built'
@groleo
groleo / search-and-replace-2.xsl
Created March 15, 2016 10:05 — forked from ijy/search-and-replace-2.xsl
Alternative search and replace template for XSLT 1.0.
<!--
ALTERNATIVE SEARCH & REPLACE
string: The text to be evaluated
replace: The character or string to look for in the above string
with: What to replace it with
Slightly more long winded approach if that's how you prefer to roll.
-->
<xsl:template name="string-replace">