Skip to content

Instantly share code, notes, and snippets.

View lostgoat's full-sized avatar

Andres Rodriguez lostgoat

View GitHub Profile
([vega10]) (sample @ 10ms, report @ 1000ms) -- Tue Sep 24 13:40:36 2019
GRBM Bits:
TA => 0 % | GDS => 0 %
WD_NO_DMA => 0 % | VGT => 0 %
IA_NO_DMA => 0 % | IA => 0 %
SX => 0 % | WD => 0 %
SPI => 0 % | BCI => 0 %
SC => 0 % | PA => 0 %
DB => 0 % | CP_COHERENCY => 0 %
CP => 0 % | CB => 0 %
andres@andres-dev:~$ cat bin/deadead.sh
#!/bin/bash
sudo sync
sudo bash -c '
echo s > /proc/sysrq-trigger;
echo u > /proc/sysrq-trigger;
echo s > /proc/sysrq-trigger;
echo b > /proc/sysrq-trigger;
'
andres@andres-vr:~/git/mesa$ git diff
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index cdff336f8a3..a8e214f7c50 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -1133,7 +1133,7 @@ VkResult radv_GetQueryPoolResults(
if (flags & VK_QUERY_RESULT_WAIT_BIT) {
while (*(volatile uint64_t *)src == TIMESTAMP_NOT_READY)
;
- available = *(uint64_t *)src != TIMESTAMP_NOT_READY;
RDOC 013556: [00:20:24] core.cpp( 312) - Log - RenderDoc v1.3 64-bit Development (2ec0096bc27c288c2f76f4201b68db667da0de2d) loaded in replay application
QTRD 013556: [00:20:24] qrenderdoc.cpp( 88) - Log - QRenderDoc initialising.
RDOC 013556: [00:22:36] target_control.cpp( 560) - Log - Got remote handshake: vrcompositor [14571]
RDOC 013556: [00:22:36] posix_network.cpp( 462) - Debug - ECONNREFUSED: A connection was refused.
RDOC 013556: [00:22:36] posix_network.cpp( 462) - Debug - ECONNREFUSED: A connection was refused.
RDOC 013556: [00:22:36] posix_network.cpp( 474) - Debug - Failed to connect to localhost:38921
RDOC 013556: [00:22:36] posix_network.cpp( 462) - Debug - ECONNREFUSED: A connection was refused.
RDOC 013556: [00:22:36] posix_network.cpp( 462) - Debug - ECONNREFUSED: A connection was refused.
RDOC 013556: [00:22:36] posix_network.cpp( 474) - Debug - Failed to connect to localhost:38922
RDOC 013556: [00:22:36] posix_network.cpp( 462
#!/bin/bash
sudo bash -c 'echo s > /proc/sysrq-trigger'
sudo bash -c 'echo u > /proc/sysrq-trigger'
sudo bash -c 'echo s > /proc/sysrq-trigger'
sudo bash -c 'echo b > /proc/sysrq-trigger'
"driver_null" : {
"enable" : true
},
"steamvr" : {
"forcedDriver" : "null",
}
// 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'
{
"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
}
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
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