Skip to content

Instantly share code, notes, and snippets.

View Riesi's full-sized avatar
🍃
🐸 sitting on a lily pad

Riesi Riesi

🍃
🐸 sitting on a lily pad
View GitHub Profile
@Riesi
Riesi / gfxrecon_trace.md
Last active April 27, 2024 20:24
D3D11 Tracing and Replay with GFXReconstruct

Get GFXReconstruct with D3D11 support

The PR in question: LunarG/gfxreconstruct#1267

Issue about getting support merged: LunarG/gfxreconstruct#1393

Sadly D3D11 support isn't merged yet and the original CI build expired. So here is a backup from the PR via a CI built release. The dlls of interest for capturing D3D11 are inside the d3d12_capture folder of the corresponding zip archive.

@Riesi
Riesi / TRACE.md
Last active September 7, 2023 13:09
Advanced apitracing

Advanced capturing via hooking the game exe

Some games don't load the apitrace DLLs from their working directory, so you can use apitrace to hook the graphics API you are interested in instead with the following command:

apitrace.exe trace -a <API> <game.exe>

Advanced capturing for games not loading local DLLS via path overrides

Some programs prevent apitrace DLLs to be loaded from next to their executable or directly load system DLLs. This means we have to put apitrace into the system folder, but this prevents apitrace from loading a proper DirectX implementation since it will try to load itself. Luckily apitrace has a feature to set a custom folder from which the DirectX DLLs will be loaded.

@Riesi
Riesi / tracealot.sh
Last active May 25, 2023 09:16
Script for making apitracing via hooking of Windows apps easy on Linux!
#!/bin/bash
# "THE BEER-WARE LICENSE" (Revision 42):
# Stefan Riesenberger wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return.
echo "Make sure to have wget, 7z and wine installed!"
echo "Environment variables that can be set externally to reduce the manual input:"
echo " TRACEALOT_ARCH=[32,64]"
@Riesi
Riesi / prev_page_fix.patch
Created September 2, 2022 13:29
fixes Evince in non-continous mode
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 1ffbf16b..3ed571fe 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -1090,6 +1090,8 @@ ev_view_scroll (EvView *view,
} else if (value == lower) {
value = upper - page_size;
ev_view_previous_page (view);
+ // show bottom when going backwards
+ view->pending_point.y = value;
@Riesi
Riesi / wsioctl_success_stub.patch
Created February 18, 2021 18:14
Fixes The Guild 2 Mupltiplayer with native DirectPlay in wine
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 6e783f87ee7..55d4ac5f04e 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -4966,8 +4966,10 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
completion = NULL;
overlapped = NULL;
}
- else
+ else{
@Riesi
Riesi / fix_intel_hda_delayed_loading.patch
Last active December 21, 2022 12:07
removes the timeout for waiting on the i915 driver; fixes delayed loading of the realtek audio device, due to i915 being broken when doing gpu passthrough of the iGPU
diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c
index 3c2db3816029..ad1b38020231 100644
--- a/sound/hda/hdac_i915.c
+++ b/sound/hda/hdac_i915.c
@@ -135,14 +135,6 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
acomp = bus->audio_component;
if (!acomp)
return -ENODEV;
- if (!acomp->ops) {
- if (!IS_ENABLED(CONFIG_MODULES) ||
@Riesi
Riesi / reshade_dxvk.patch
Last active March 18, 2019 17:29
Potential Reshade fix
diff --git a/src/d3d11/d3d11_main.cpp b/src/d3d11/d3d11_main.cpp
index 4ab16ca..f5a2a4b 100644
--- a/src/d3d11/d3d11_main.cpp
+++ b/src/d3d11/d3d11_main.cpp
@@ -97,8 +97,7 @@ extern "C" {
}
}
-
- DLLEXPORT HRESULT __stdcall D3D11CreateDevice(
@Riesi
Riesi / steam-379720.log
Created October 27, 2018 05:54
ChromaSDK error log
This file has been truncated, but you can view the full file.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/