Skip to content

Instantly share code, notes, and snippets.

View lostgoat's full-sized avatar

Andres Rodriguez lostgoat

View GitHub Profile
@lostgoat
lostgoat / x
Created May 16, 2009 05:00
Search for episode lists in wikipedia using the google I'm feeling lucky option. Based on "quicky" by Royall
makeSearchCommand({
name: "episodes",
icon: "http://www.tv.com/favicon.ico",
url: "http://www.google.com/search?q=list+of+episodes+wikipedia+{QUERY}&btnI=kudos",
description: "Retreive an 'Episode Guide' page from wikipedia",
// Original author: author: { name: "Royall", email: "royallwithchees@gmail.com"},
//Thanks to Royall for the "quicky" command code which I used as the base for this code
//Note: This command was automatically generated by the create-new-search-command command.
CmdUtils.makeSearchCommand({
name: "dota",
url: "http://www.dota-allstars.com/wiki/Special:Search?search={QUERY}",
icon: "http://www.dota-allstars.com/favicon.ico",
description: "Searches www.dota-allstars.com"
});
./autogen.sh \
--prefix=/opt/radv \
--enable-dri3 \
--enable-debug=yes \
--enable-glx-tls \
--with-vulkan-drivers="radeon,intel" \
--with-dri-drivers="radeon,i965" \
--with-gallium-drivers="r300,r600,radeonsi" \
--with-llvm-prefix="/opt/radv"
@lostgoat
lostgoat / rfc-priority.txt
Last active December 20, 2016 06:44
[RFC] Mechanism for high priority scheduling in amdgpu
Hi Everyone,
We are interested in feedback for a mechanism to effectively schedule high
priority VR reprojection tasks (also referred to as time-warping) for Polaris10
running on the amdgpu kernel driver.
Brief context:
--------------
The main objective of reprojection is to avoid motion sickness for VR users in
gfx-226 [004] .... 621.348545: amdgpu_sched_run_job: sched_job=1174, timeline=gfx, context=529, seqno=762, ring_name=gfx, num_ibs=3
gfx-226 [004] .... 621.348555: dma_fence_signaled: driver=amd_sched timeline=gfx context=528 seqno=762
<idle>-0 [002] d.h. 621.348588: dma_fence_signaled: driver=amdgpu timeline=gfx context=1 seqno=1350
<idle>-0 [002] d.h. 621.351849: dma_fence_signaled: driver=amdgpu timeline=gfx context=1 seqno=1351
<idle>-0 [002] d.h. 621.351853: dma_fence_signaled: driver=amd_sched timeline=gfx context=529 seqno=762
Xorg-1192 [005] .... 622.346013: amdgpu_cs_ioctl: sched_job=1175, timeline=gfx, context=95, seqno=329, ring_name=gfx, num_ibs=3
gfx-226 [004] .... 622.346075: amdgpu_sched_run_job: sched_job=1175, timeline=gfx, context=95, seqno=329, ring_name=gfx, num_ibs=3
gfx-226 [004] .... 622.346088: dma_fence_signaled: driver=amd_sched timeline=gfx context=94 seq
andres@andres-vr:~/git/vk-samples/bin$ withlocaldisplay withradv ./ssa
Max: 3.075ms Min: 2.517ms MaxH: 3.075ms MinH: 2.517ms Med: 2.789ms Avg: 2.791ms Frames: 494 Cur: 2.690ms
Max: 3.075ms Min: 2.517ms MaxH: 3.075ms MinH: 2.517ms Med: 2.789ms Avg: 2.791ms Frames: 495 Cur: 2.755ms
[...]
andres@andres-vr:~/git/vk-samples/bin$ sudo QUEUE_NUM=0 withlocaldisplay withradv time nice -n 20 ./computeparticles -high-priority
Max: 0.798ms Min: 0.059ms MaxH: 0.798ms MinH: 0.059ms Med: 0.207ms Avg: 0.195ms Frames: 1224 Cur: 0.300ms
Max: 0.798ms Min: 0.059ms MaxH: 0.798ms MinH: 0.059ms Med: 0.207ms Avg: 0.195ms Frames: 1225 Cur: 0.181ms
Max: 0.798ms Min: 0.059ms MaxH: 0.798ms MinH: 0.059ms Med: 0.207ms Avg: 0.195ms Frames: 1226 Cur: 0.254ms
Max: 0.798ms Min: 0.059ms MaxH: 0.798ms MinH: 0.059ms Med: 0.207ms Avg: 0.195ms Frames: 1227 Cur: 0.262ms
X Error of failed request: GLXBadContext
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 55
Current serial number in output stream: 54
andres@andres-vr:~$ LD_DEBUG=libs withradv withlocaldisplay glxinfo 2>&1| grep libdrm | grep init
20404: calling init: /opt/drm/lib/libdrm.so.2
20404: calling init: /opt/drm/lib/libdrm_etnaviv.so.1
20404: calling init: /opt/drm/lib/libdrm_freedreno.so.1
20404: calling init: /opt/drm/lib/libdrm_amdgpu.so.1
20404: calling init: /opt/drm/lib/libdrm_radeon.so.1
{
"config" : [ "/home/YOURUSERNAME/.steam/steam/config" ],
"external_drivers" : null,
"jsonid" : "vrpathreg",
"log" : [ "/home/YOURUSERNAME/.steam/steam/logs" ],
"runtime" : [ "/mnt/git/src/valve/vr/steamvr/main/public/runtime" ],
"version" : 1
}
// Get the build deps, I think I remember something funky with pkg-config
sudo apt-get build-dep mesa:i386
// Get a 32 bit llvm
sudo apt-get install llvm-6.0:i386
// Get a meson cross file for 32 bit compiles, place it in your mesa root.
// Mine looks like this and I named it 32.cross:
[binaries]
c = 'gcc'