Skip to content

Instantly share code, notes, and snippets.

@zmike
zmike / gist:e8eec8fdb6eb1d264828b2affede993b
Last active May 9, 2024 17:43
parallel GL conformance runner
#!/usr/bin/env bash
CTS_DIR=~/src/VK-GL-CTS/release/external/openglcts/modules
# arg variable init
output_dir=
run_stress=
args=()
# by default run one job per cpu thread
nr_cpus=$(grep -w processor /proc/cpuinfo|wc -l)
while [[ $# -gt 0 ]]; do
KHR-GL46.compute_shader.shared-indexing
KHR-GL46.constant_expressions.array_clamp_float_tess_eval
KHR-GL46.constant_expressions.array_clamp_vec3_float_fragment
KHR-GL46.constant_expressions.array_degrees_vec3_vertex
KHR-GL46.constant_expressions.array_pow_vec3_fragment
KHR-GL46.constant_expressions.array_sin_vec2_fragment
KHR-GL46.constant_expressions.basic_cos_vec2_tess_eval
KHR-GL46.constant_expressions.basic_max_vec4_float_compute
KHR-GL46.constant_expressions.basic_min_vec4_float_vertex
KHR-GL46.constant_expressions.basic_radians_vec3_tess_control
RDOC 1394498: [10:38:06] core.cpp( 496) - Log - RenderDoc v1.26 Linux 64-bit Development (52e9404961277d1bb1ed03a376b722c2b91e3762) capturing application
RDOC 1394498: [10:38:06] core.cpp( 514) - Debug - Listening for target control on 38920
RDOC 1394498: [10:38:06] settings.cpp( 460) - Log - Loading config from /home/zmike/.renderdoc/renderdoc.conf
RDOC 1394498: [10:38:06] posix_libentry.cpp( 73) - Log - Loading into
RDOC 1394498: [10:38:06] vk_layer.cpp( 99) - Log - Registering Vulkan hooks
RDOC 1394498: [10:38:06] core.cpp(2001) - Log - Adding Vulkan device frame capturer for 0x0000555555C89900
RDOC 1394498: [10:38:06] vk_device_funcs.cpp( 887) - Log - Initialised capture layer in Vulkan instance.
RDOC 1394498: [10:38:06] vk_device_funcs.cpp(1453) - Log - physical device 0: Intel(R) Iris(R) Plus Graphics (ICL GT2) (ver 23.0 patch 0x63) - 8086:8a52
RDOC 1394498: [10:38:06] vk_device_funcs.cpp(1453) - Log - physical
#0 Vec16NotEqual (a=0x7fff88263360, b=0x7fff1dee3ea0) at /home/zmike/src/renderdoc/renderdoc/common/common.cpp:73
#1 0x00007fffdf3a232d in FindDiffRange (a=0x7fff88100000, b=0x7fff1dd80b40, bufSize=1572864, diffStart=@0x7fffb7ffe3e0: 1572865, diffEnd=@0x7fffb7ffe3d8: 0) at /home/zmike/src/renderdoc/renderdoc/common/common.cpp:101
#2 0x00007fffdeff63a2 in WrappedVulkan::CaptureQueueSubmit (this=0x555555d7b9d0, queue=0x555555c60720, commandBuffers=..., fence=0x0) at /home/zmike/src/renderdoc/renderdoc/driver/vulkan/wrappers/vk_queue_funcs.cpp:1198
#3 0x00007fffdeff6d71 in WrappedVulkan::vkQueueSubmit (this=0x555555d7b9d0, queue=0x555555c60720, submitCount=1, pSubmits=0x7fffb7ffec08, fence=0x0) at /home/zmike/src/renderdoc/renderdoc/driver/vulkan/wrappers/vk_queue_funcs.cpp:1394
#4 0x00007fffdee56370 in hooked_vkQueueSubmit (queue=0x555555c60720, submitCount=1, pSubmits=0x7fffb7ffec08, fence=0x0) at /home/zmike/src/renderdoc/renderdoc/driver/vulkan/vk_layer.cpp:243
#5 0x00007ffff6aef7f7 in submit_queue ()
[96/296] Building CXX object renderdoc/CMakeFiles/rdoc.dir/3rdparty/compressonator/BC6_Encode_kernel.cpp.o
/home/zmike/src/renderdoc/renderdoc/3rdparty/compressonator/BC6_Encode_kernel.cpp: In function ‘CGU_FLOAT lerpf(CGU_FLOAT, CGU_FLOAT, CGU_INT, CGU_INT)’:
/home/zmike/src/renderdoc/renderdoc/3rdparty/compressonator/BC6_Encode_kernel.cpp:1663:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
1663 | case 3: denom *= 5; i *= 5; // fall through to case 15
| ~~^~~~
/home/zmike/src/renderdoc/renderdoc/3rdparty/compressonator/BC6_Encode_kernel.cpp:1664:5: note: here
1664 | case 7: weights = g_aWeights3; break;
| ^~~~
/home/zmike/src/renderdoc/renderdoc/3rdparty/compressonator/BC6_Encode_kernel.cpp: In function ‘int lerp(int, int, int, int)’:
/home/zmike/src/renderdoc/renderdoc/3rdparty/compressonator/BC6_Encode_kernel.cpp:3625:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
[12/298] Building CXX object renderdoc/CMakeFiles/rdoc.dir/core/core.cpp.o
In file included from /home/zmike/src/renderdoc/renderdoc/core/core.cpp:37:
In member function ‘Serialiser<sertype>& Serialiser<sertype>::Serialise(const rdcliteral&, char (&)[N], SerialiserFlags) [with long unsigned int N = 128; SerialiserMode sertype = SerialiserMode::Writing]’,
inlined from ‘void DoSerialise(SerialiserType&, DriverInformation&) [with SerialiserType = Serialiser<SerialiserMode::Writing>]’ at /home/zmike/src/renderdoc/renderdoc/replay/renderdoc_serialise.inl:512:16:
/home/zmike/src/renderdoc/renderdoc/serialise/serialiser.h:576:13: warning: ‘void* memcpy(void*, const void*, size_t)’ forming offset [24, 126] is out of the bounds [0, 24] of object ‘str’ with type ‘rdcstr’ [-Warray-bounds]
576 | memcpy(el, str.c_str(), N - 1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/zmike/src/renderdoc/renderdoc/serialise/serialiser.h: In function ‘void DoSerialise(SerialiserType&, DriverInformation&) [with Seriali
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='trace.xsl'?>
<trace version='0.1'>
<call no='1' class='' method='pipe_screen_create'>
<ret><ptr>0x024ebbd0</ptr></ret>
<time><int>3</int></time>
</call>
<call no='2' class='pipe_screen' method='get_param'>
<arg name='screen'><ptr>0x024ebbd0</ptr></arg>
<arg name='param'><int>1</int></arg>
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='trace.xsl'?>
<trace version='0.1'>
<call no='1' class='' method='pipe_screen_create'>
<ret><ptr>0x00639650</ptr></ret>
<time><int>4</int></time>
</call>
<call no='2' class='pipe_screen' method='get_shader_param'>
<arg name='screen'><ptr>0x00639650</ptr></arg>
<arg name='shader'><uint>1</uint></arg>
@zmike
zmike / WineReload.py
Last active February 4, 2024 01:54
WineReload.py
from __future__ import print_function
import gdb
import subprocess
import sys
import re
import os.path
class WineReload (gdb.Command):
@zmike
zmike / consecratedground.diff
Created March 6, 2019 13:24
wip on consecrated ground changes
diff --git a/Modules/CalcOffence-3_0.lua b/Modules/CalcOffence-3_0.lua
index 80dfc15..b6bc675 100644
--- a/Modules/CalcOffence-3_0.lua
+++ b/Modules/CalcOffence-3_0.lua
@@ -780,6 +780,7 @@ function calcs.offence(env, actor, activeSkill)
local inc = skillModList:Sum("INC", cfg, "CritChance")
local more = skillModList:More(cfg, "CritChance")
local enemyExtra = env.mode_effective and enemyDB:Sum("BASE", nil, "SelfExtraCritChance") or 0
+ local enemyInc = skillModList:Sum("INC", cfg, "SelfIncCritChance")
output.CritChance = (baseCrit + base) * (1 + inc / 100) * more