aboutsummaryrefslogtreecommitdiffstats
path: root/steamvr/patches.toml
blob: 3061ede639831ed1d5d26627b4141a9291f06af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# SPDX-FileCopyrightText: 2026 Tomasz Kramkowski <tomasz@kramkow.ski>
# SPDX-License-Identifier: CC0-1.0

target = "Beta 2.19.3, build 26655409"

[[targets]]
path = "bin/linux64/vrcompositor"
sha256 = "b3747b541c86f683286f13fcce9ed7761e0258ecef3827c5ce915167226947fe"
edits = [
    # Stop reusing GPU work identifiers across frames so that the (now fixed
    # upstream) wait on prior GPU work waits on the _correct_ work (#952).
    # TODO: Maybe this _can't_ actually happen? Needs more investigation.
    [0x41eb34, "31c09090909090"],
    [0x41f449, "31c09090909090"],
    [0x41f484, "909090909090"],
    # Fix shader descriptor texture array counts (should be 3, not 1) for
    # bindings 9, 17, and 20. Affected shaders:
    # - distort_none_ps
    # - distort_none_ps_layered
    # - distort_panorama_ps
    # - distort_panorama_solid_color_ps
    # - distort_ps_achromatic_nd
    [0x4061c1, "498b5500b80300000089424ceb22"],
    [0x4061f1, "89828c0000008982a4000000eb12"],
    [0x406211, "4c8bbd18feffffe9b2200100"],
    [0x4182c8, "e9f4defeff9090"],
    # Increase Vulkan descriptor pool capacity from 200 to 1024. (#1067)
    # Some games hit this (including Alyx for me since 2.19.3, despite the
    # limit pre-dating this version) limit and crash since the error handling
    # consists of logging, followed ignoring the error and passing a NULL
    # pointer back to Vulkan.
    # The correct fix would be to resize when the limit is hit. But 200 seemed
    # to have worked for a long time so 1024 _ought to be enough for
    # anybody_...
    [0x4365ba, "00200000"],
    [0x4365c9, "00100000"],
    [0x4365e0, "00400000"],
    [0x4365f3, "00400000"],
    [0x436614, "00040000"],
]

[[targets]]
path = "drivers/vrlink/bin/linux64/driver_vrlink.so"
sha256 = "b78a5a6bbfcb0cd80cd44f4b88ed97f5a93110ad62ebaaffff20768d0a7a9135"
edits = [
    # Keep increasing (mod(2^16)) the ACK cutoff instead of clearing it (#965).
    # If the headset's ACKs start to fall behind, the driver throttles new
    # frame generation to once every 0.3s. Normally the driver stores the last
    # ACK number regardless of whether it is newer or older than the currently
    # stored one. This ACK number is used to determine if the headset has
    # fallen behind. When a reset occurs, throttling should stop to allow the
    # new frame (which does not depend on any prior frames) to be sent out
    # immediately. But clearing the ACK cutoff means that the next frame
    # immediately following that one can get throttled if the host is still
    # receiving old ACKs.
    [0xd7a6d, "89838401000090909090"],
    # Ignore stale tracking IDs and repeated older tracking attempts
    [0x116581, "89d02b47084189c6c1e004"],
    [0x11658c, "0f8853050000"],
    [0x116894, "0f84970ffdff"],
    [0xe7831, "410fb644240988430ee9a6f20200"],
    # Reset tracking and encoding when starting a new streaming session.
    # The tracking ID rejection code above could otherwise drop some packets
    # after a reconnect (since their IDs will start from 0 again).
    # Resetting the encoder eagerly here avoids the high chance it will end up
    # reset due to errors shortly after.
    [0x10db61, "57488b7f184885ff740feb04"],
    [0x10db71, "488b076a015eff50285fe91013feff"],
    [0x1154c1, "4c89a30804000031c0894308c3"],
    [0x115511, "e8abffffff6690"],
    [0x115524, "e83886ffff"],
]