Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
fa28145
d3d12_xs tests: enable experimental shader models before the first re…
MeNoSkills Nov 22, 2026
202c763
Merge #171 (MeNoSkills): enable experimental shader models before the…
omonkeyz Nov 22, 2026
85d4b0b
r25: gpu_va keeps overlapping larger ranges (smallest-containing look…
omonkeyz Nov 22, 2026
98d3e72
progress: d3d12x CommandList 64/70/74/85/86/101 and Device 29 done (H…
omonkeyz Nov 22, 2026
0fdc0dc
console libs: offline network view (netview), xtfdiaginfo #10 section…
omonkeyz Nov 22, 2026
d22f894
tombox-xshader: support 256-thread mesh shaders and per-primitive PSG…
GDAgent Nov 22, 2026
23505f0
tombox-xshader: map root Constants parameter values onto user SGPRs o…
adriaespii Nov 22, 2026
f0213ec
Merge #172 (GDAgent) and #170 (adriaespii): 256-thread mesh shaders w…
omonkeyz Nov 22, 2026
01a7018
docs: close the s_bfe width blocker from the ISA pseudocode and LLVM …
iseaprojects Nov 22, 2026
6ef1fea
Merge #178 (iseaprojects): close the s_bfe width blocker with ISA and…
omonkeyz Nov 22, 2026
a70dcb0
netview: bind/listen/accept/closesocket socket-table hooks, emulator …
omonkeyz Nov 22, 2026
3159ffa
netview: process-wide shared WFP store across DLLs
omonkeyz Nov 22, 2026
7047013
d3d12_xs: drop primitive topology subobject from mesh shader PSO streams
GDAgent Nov 22, 2026
c852615
tombox-xshader: address buffer atomics with SOFFSET and IDXEN+OFFEN
AntonioEspana Nov 22, 2026
190a4b3
Merge #176 (GDAgent) and #177 (AntonioEspana): drop PRIMITIVE_TOPOLOG…
omonkeyz Nov 22, 2026
d759b31
r27: translator batch (#170 root-constant user SGPRs, #172 256-thread…
omonkeyz Nov 22, 2026
7748afd
d3d12_xs: match mesh PSO primitive topology to PSV0 and drop empty le…
GDAgent Nov 22, 2026
0d5f02a
Merge PR #176 update (GDAgent Team): mesh PSO topology from PSV0, dro…
omonkeyz Nov 22, 2026
12ba607
r28: mesh PSO topology from PSV0 + SUB_PRIMITIVE_TOPOLOGY 14 (#176 up…
omonkeyz Nov 22, 2026
a541bbb
compat-common os_host: pin modules during import sweeps (fix xmem+0x2…
omonkeyz Nov 22, 2026
27122f7
XVMAudioService round 8: guest notifications, session events, enumera…
omonkeyz Nov 22, 2026
f8e28c9
d3d12_xs: remap Xbox Series PSO stream subobjects when console-numbered
GDAgent Nov 22, 2026
811c96f
d3d12_xs: classify PSO streams by record size and map console subobje…
GDAgent Nov 22, 2026
1a45c7d
d3d12_xs: cite xgs12_10d parser and handler RVAs in console subobject…
omonkeyz Nov 22, 2026
47ee74d
Merge PR #168 (GDAgent Team): classify PSO streams by record size, ma…
omonkeyz Nov 22, 2026
132d8cc
netview: WFP object model and formatters, AcceptEx/ConnectEx and SYN_…
omonkeyz Nov 22, 2026
30a1b53
r29: removed-device guard, PSO prewarm + library save fixes, gpu_va n…
omonkeyz Nov 22, 2026
233d56f
tombox-xshader: bit-exact RDNA2 f32 rcp, rcp_iflag, rsq, sqrt
SchmashinPrunes Nov 22, 2026
13ae0c6
tombox-xshader: bit-exact RDNA2 f32 log, exp, sin, cos
SchmashinPrunes Nov 22, 2026
227e258
tombox-xshader: bit-exact RDNA2 f64 rcp, rsq, sqrt
SchmashinPrunes Nov 22, 2026
b9055dd
xshader: ignore unmapped position export 13 without SV_ClipDistance/S…
adriaespii Nov 22, 2026
05c1caf
THIRD_PARTY: credit AMD rocjitsu for the #180 f32 transcendental models
omonkeyz Nov 22, 2026
f850f50
Merge #180 (SchmashinPrunes) and the export-13 half of #181 (adriaesp…
omonkeyz Nov 22, 2026
42f449c
net_guard: chain ext extension-pointer guard onto shared WSAIoctl hoo…
omonkeyz Nov 22, 2026
3828799
tombox-xshader: lower ds_swizzle_b32 bit and quad modes in compute sh…
MeNoSkills Nov 22, 2026
f6639fe
tombox-xshader: lower ds_swizzle_b32 rotate and FFT modes in compute …
MeNoSkills Nov 22, 2026
cde6015
tombox-xshader: translate s_getpc_b64 + s_add_u32 + s_addc_u32 + s_se…
MeNoSkills Nov 22, 2026
42511d7
Merge #184, #186 and #185 (MeNoSkills): ds_swizzle_b32 in compute (bi…
omonkeyz Nov 22, 2026
5a25b00
d3d12_xs: answer the Xbox Series Device8 IID from the device wrapper
brcly Nov 22, 2026
05f7422
THIRD_PARTY: credit brcly/TuxBox reference patches (Apache-2.0) and a…
omonkeyz Nov 22, 2026
baadb80
Merge brcly/TuxBox port: Xbox Series Device8 IID in the device wrappe…
omonkeyz Nov 22, 2026
1f37ca3
CI: exclude the three crates that need local data files from the work…
MeNoSkills Nov 22, 2026
b2a77f3
tombox-xshader tests: pin the FLAT/GLOBAL/SCRATCH offset width agains…
MeNoSkills Nov 22, 2026
59c2475
RDNA2 silicon evidence for 16 held-back or unverified instructions
SchmashinPrunes Nov 22, 2026
a4cc592
Merge #189, #190 (MeNoSkills) and #191 (SchmashinPrunes): workspace c…
omonkeyz Nov 23, 2026
c4b7607
pixrt10: ETW controller layer for slot 0 (StartTraceW/EnableTraceEx2/…
omonkeyz Nov 23, 2026
b17ef2c
tombox-xshader, d3d12_xs: support 64-bit SM 6.6 image atomics with OP…
GDAgent Nov 22, 2026
267d08e
d3d12_xs: probe OPTIONS9 only on objects that answer IID_ID3D12Device
GDAgent Nov 22, 2026
c2a3522
Merge #173 (GDAgent Team): 64-bit SM 6.6 image atomics behind an OPTI…
omonkeyz Nov 23, 2026
50a13be
tombox-xshader tests: replay RDNA2-recorded image atomic results
SchmashinPrunes Nov 23, 2026
c4e72f0
Merge #195 (SchmashinPrunes): replay RDNA2-recorded image atomic results
omonkeyz Nov 23, 2026
06110e0
rdna2_silicon: compare f16 FMA NaN results as a class on hardware GPUs
SchmashinPrunes Nov 23, 2026
6e6095f
pixrt10: capture session 0x1a94c, XgsKmd10 IOCTL 0x7900c1e0 in xgs_km…
omonkeyz Nov 23, 2026
9e62058
Merge #197: compare f16 FMA NaN results as a class on hardware GPUs (…
omonkeyz Nov 23, 2026
2e981c5
tombox-xshader: translate image_gather4_l with an explicit LOD
GDAgent Nov 22, 2026
9a77dd6
BLOCKERS: record that the gather4_l footprint ignores sampler bias an…
omonkeyz Nov 23, 2026
2eda8b0
Merge #196: translate image_gather4_l with an explicit LOD
omonkeyz Nov 23, 2026
a7f858d
xshader: v_med3_f32 with a NaN operand is MIN3 with the NaN ignored
QuentinDanblon Nov 23, 2026
8e4abb5
xshader: inline float constants in f16 operands
QuentinDanblon Nov 23, 2026
54db2e3
tombox-xshader: translate the RDNA2 VOP3P packed 16-bit integer ops
GDAgent Nov 22, 2026
2820575
xshader: check RDNA2 opcode tables against gfx1013 references; fix f1…
QuentinDanblon Nov 21, 2026
f04f768
leonida tests: drop trailing comments from the new vectors
omonkeyz Nov 23, 2026
24e6c10
Merge #203, #202, #198, #201: v_med3_f32 NaN, f16 inline constants, V…
omonkeyz Nov 23, 2026
28f54b2
tombox-xshader: decode and translate the LDS D16 loads and ds_write_b…
GDAgent Nov 22, 2026
3f728a6
xshader: the SMEM immediate is signed
QuentinDanblon Nov 23, 2026
0f84770
Host input for the virtual pad: XInput controllers, keyboard mapping,…
QuentinDanblon Nov 21, 2026
35c979b
rdna2-hwprobe: VALU/SALU probe kernels for f16 FMA, s_bfe widths, NaN…
QuentinDanblon Nov 23, 2026
52b2890
rdna2-hwprobe: check the measured NaN rules in valu_probe.py show
SchmashinPrunes Nov 22, 2026
17dd550
rdna2-hwprobe: README section for valu_probe.py and its gfx1036 results
QuentinDanblon Nov 23, 2026
f9c3ec5
Drop trailing comments from the new pad_host key table, the SMEM offs…
omonkeyz Nov 23, 2026
563322a
pad_host: host XInput and keyboard input are opt-in (TOMBOX_PAD_XINPU…
omonkeyz Nov 23, 2026
ad24144
Merge #205, #206, #207, #208: LDS D16 loads, signed SMEM offset, opt-…
omonkeyz Nov 23, 2026
a1ff5be
r31: Trackmania race renders by default (MSAA dim, Durango VS vertex …
omonkeyz Nov 23, 2026
9a782d2
compat-common: XTaskQueue / XAsync conformance scenarios as tests
QuentinDanblon Nov 23, 2026
439a010
BLOCKERS: record the XTaskQueue / XAsync conformance differences from…
omonkeyz Nov 23, 2026
a4c2355
Merge #211: XTaskQueue / XAsync conformance scenarios as tests
omonkeyz Nov 23, 2026
3de1b1f
r31.1 hotfix: game-scan runtime prewarm opt-in (TOMBOX_GAME_SCAN_PREW…
omonkeyz Nov 23, 2026
d6ae2cb
compat-common tests: keep TOMBOX_DXC and TOMBOX_DXC_DIR for the neste…
QuentinDanblon Nov 23, 2026
c16f0fa
Merge #212: keep TOMBOX_DXC and TOMBOX_DXC_DIR for the nested DLL bui…
omonkeyz Nov 23, 2026
a246352
xshader: v_mad_f32 flushes a subnormal result again after the output …
QuentinDanblon Nov 23, 2026
2f1a94c
Merge #213: v_mad_f32 flushes a subnormal result again after the outp…
omonkeyz Nov 23, 2026
689f690
xshader: lower ds_mskor_b32 and ds_wrxchg2_rtn_b32 on compute LDS
QuentinDanblon Nov 23, 2026
44597ab
Merge #214: lower ds_mskor_b32 and ds_wrxchg2_rtn_b32 on compute LDS
omonkeyz Nov 23, 2026
8d6f934
xshader: an f16 output modifier acts only with IEEE 0 and f16 denorma…
omonkeyz Nov 23, 2026
ab3fcc8
xshader: image_get_resinfo past the last level returns 0 size, keeps …
omonkeyz Nov 23, 2026
e35aa5a
Merge port/leo-f16omod: f16 output modifier follows MODE (Leonida port)
omonkeyz Nov 23, 2026
7e85f79
Merge port/leo-resinfo: resinfo past the last level (Leonida SHADER-388)
omonkeyz Nov 23, 2026
691b84b
xshader: packed int16 VOP3P takes float inline constants, mad clamp s…
omonkeyz Nov 23, 2026
a7a98e0
r32c: Trackmania campaign scene, PSO root-signature fix, pso_lib fina…
omonkeyz Nov 23, 2026
c998b44
Merge port/leo-pk16: packed int16 VOP3P float constants and mad clamp…
omonkeyz Nov 23, 2026
dfed19f
README: per-title milestones and tested titles (Trackmania, Terraria,…
omonkeyz Nov 23, 2026
f6ae886
Merge commit 'c998b447438e3b6c9fbad8f5f1d75da575ce752f'
omonkeyz Nov 23, 2026
8e9987b
ci: run the xshader exec tests in four parallel jobs
QuentinDanblon Nov 23, 2026
55011fb
ci: keep rust-core as the single gate over the test jobs
QuentinDanblon Nov 23, 2026
3eac085
Match 19041 XMem hysteresis query width at 4 GiB
bambermf Nov 23, 2026
8e8a97c
Reset the XMem free hook when clearing the allocator
bambermf Nov 23, 2026
9475037
Reject invalid XMem allocation statistic types on build 19041
bambermf Nov 23, 2026
9e8d6d7
CONTRIBUTING: list the hooked and unsupported export statuses
azerioxfr Nov 23, 2026
1dc9fff
Merge #215, #217, #218, #219, #220: CI exec shards with rust-core gat…
omonkeyz Nov 23, 2026
a615344
gdk save: log the first call of each XGameSave slot
omonkeyz Nov 23, 2026
417f934
Port build 19041 XMem partition and in-place heap creation
bambermf Nov 23, 2026
84987a6
Query partition page counts in the 19041 XMem statistics layout
bambermf Nov 23, 2026
5603d8c
Report the emulated title frame range through both 19041 layout queries
bambermf Nov 23, 2026
6e9eb2f
pr_gate: check added lines that start with ++
azerioxfr Nov 23, 2026
fe843fa
xshader: exec test for v_pk_mul_lo_u16, v_pk_ashrrev_i16 and packed i…
azerioxfr Nov 23, 2026
d1fe8b5
BLOCKERS: flaky d3d12_xs alias title-heap unmap/free test
omonkeyz Nov 23, 2026
b7f137f
Merge #224, #226: pr_gate checks ++ lines, packed int16 mul/shift/min…
omonkeyz Nov 23, 2026
ee06399
progress: 36 RDNA2 mnemonics verified by existing exec tests
azerioxfr Nov 23, 2026
6d0e24a
progress: v_pk_mul_lo_u16, v_pk_ashrrev_i16 and packed int16 min/max …
azerioxfr Nov 23, 2026
ac7cd85
tombox-archive: warn when a large entry claims zero compressed bytes
azerioxfr Nov 23, 2026
ed9863a
BLOCKERS: mark the xdxr ds_swizzle and SOFFSET atomic refusals fixed
azerioxfr Nov 23, 2026
bfd70be
Merge #228, #230, #231: progress mnemonics, tombox-archive zero-compr…
omonkeyz Nov 23, 2026
f73fd27
BLOCKERS: debug-layer probe result (r32f_9), r32f Trackmania board an…
omonkeyz Nov 23, 2026
ad0fbf3
Merge commit 'bfd70bedcecef75b0b315cf4a533c7f418ec85b7'
omonkeyz Nov 23, 2026
283ac34
tombox-xshader: decode and translate the MUBUF D16 byte/short loads a…
azerioxfr Nov 23, 2026
6a1a4b1
r32g: write-watch hash-confirmed uploads, unwatched resources on the …
omonkeyz Nov 23, 2026
4796d81
Decode stream-zero OSG5 output signatures on both Xbox shader paths
bambermf Nov 23, 2026
4ebf862
Merge #222: decode stream-zero OSG5 output signatures on both Xbox sh…
omonkeyz Nov 23, 2026
9226252
BLOCKERS: Fortnite GDK hooks and fortnite_match inert without local o…
omonkeyz Nov 23, 2026
451fe11
Record the r32g batch authorship (#221, #223, #225, XGameSave slot lo…
omonkeyz Nov 23, 2026
d66ae9c
Merge commit '451fe119fa8b6e921b889cc44e3d77754d27995a'
omonkeyz Nov 23, 2026
82e330a
pr_gate: reject title RVA-style constants in compat crates
omonkeyz Nov 23, 2026
902209a
pr_gate: limit the RVA rule to 6-8 significant hex digits
omonkeyz Nov 23, 2026
df8e0c0
Merge commit '902209ac26cbacae18d4c96da4d8a29d3ffc03bd'
omonkeyz Nov 23, 2026
4e8fbbf
BLOCKERS: the run-35 system-function gap list is closed (671/671)
azerioxfr Nov 23, 2026
5544d41
BLOCKERS: tests/amp.rs is ignored without the console fixtures, the P…
azerioxfr Nov 23, 2026
6e81ffc
Merge #259 and #260: BLOCKERS updates for the run-35 system-function …
omonkeyz Nov 23, 2026
e70ae11
BLOCKERS: replace title RVAs and offsets with symbolic references (ex…
omonkeyz Nov 23, 2026
1172d5d
Merge commit '6e81ffc4a05788a84c29e589370020573d645862'
omonkeyz Nov 23, 2026
e67e3d4
r32h: residency cache, passcap ps_ms trigger, xmem fixes, title offse…
omonkeyz Nov 23, 2026
d8d37e4
Record #235 authorship (MUBUF D16 byte/short loads and d16_hi stores)
omonkeyz Nov 23, 2026
bcecd4c
BLOCKERS: Fortnite GDK hooks resolve from Symbols.bin (r32i)
omonkeyz Nov 23, 2026
f10c620
BLOCKERS: board second-resource entry in symbolic form
omonkeyz Nov 23, 2026
377a22a
r32i: GPU queue/wait profiling, VRAM and upload logging, VA alias cen…
omonkeyz Nov 23, 2026
f552e9c
BLOCKERS: board second-resource theory ruled out; mip lead
omonkeyz Nov 23, 2026
883d1c8
gdk rt: XAsync return codes match the reference (6 conformance scenar…
QuentinDanblon Nov 23, 2026
e3c62b7
Merge #266: XAsync return codes match the reference
omonkeyz Nov 23, 2026
19806e8
Merge commit 'e3c62b71bb8229be43029daca1569316cacb2220'
omonkeyz Nov 23, 2026
de1e1da
r32j: per-kind GPU timing of injected and title non-draw commands, fi…
omonkeyz Nov 23, 2026
148cf0f
r32k: calibrated CPU/GPU timeline profiler, save long-name hashing, 4…
omonkeyz Nov 23, 2026
c47dfc2
BLOCKERS: the GWS counter ops are lowered, only the wait ops are refused
azerioxfr Nov 23, 2026
d3a5928
BLOCKERS: the write-watch submit hook and the xmem reservations have …
azerioxfr Nov 23, 2026
2d4cbd5
Merge #274 and #275: BLOCKERS updates for the GWS counter ops and the…
omonkeyz Nov 23, 2026
fdd426f
docs: BLOCKERS gap for rectlist expansion on stream-built PSOs
omonkeyz Nov 23, 2026
4eec5e8
BLOCKERS: XUser pad association and token requests (r32m)
omonkeyz Nov 23, 2026
20f9340
Merge remote-tracking branch 'origin/main'
omonkeyz Nov 23, 2026
f89e410
r32l: gpuprof 2 s interval cap + longest events + b014 draw args, pas…
omonkeyz Nov 23, 2026
50901fd
Merge upstream omonkeyz/xbox-emulator main (f89e410) into the fork
claude Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion .github/scripts/pr_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
".psm1": re.compile(r"^\s*(#|<#|#>)"),
}
COMMENT_OK = re.compile(r"^\s*#Requires\b")
RVA_CONST = re.compile(r"\bconst\s+[A-Za-z_][A-Za-z0-9_]*\s*:\s*(usize|u64)\s*=\s*0x([0-9a-fA-F_]+)")
RVA_PATH = re.compile(r"^crates/compat/.*\.rs$")


def git(*args):
Expand All @@ -47,12 +49,14 @@ def changed(base, head):
def added_lines(base, head, path):
out = git("diff", "-U0", "--no-color", "--no-ext-diff", base, head, "--", path).decode("utf-8", "replace")
n = 0
in_hunk = False
for line in out.splitlines():
if line.startswith("@@"):
m = re.search(r"\+(\d+)", line)
n = int(m.group(1)) if m else 0
in_hunk = True
continue
if line.startswith("+++"):
if not in_hunk:
continue
if line.startswith("+"):
yield n, line[1:]
Expand Down Expand Up @@ -88,6 +92,10 @@ def check_lines(base, head, paths):
for rx, why in PRIVATE:
if rx.search(text):
errors.append(("%s:%d" % (p, n), why))
if RVA_PATH.search(p):
m = RVA_CONST.search(text)
if m and 6 <= len(m.group(2).replace("_", "").lstrip("0")) <= 8:
errors.append(("%s:%d" % (p, n), "title RVA-style constant (usize/u64 with 6-8 significant hex digits) in a compat crate"))
if rule and rule.search(text) and not (n == 1 and text.startswith("#!")) and not COMMENT_OK.search(text):
errors.append(("%s:%d" % (p, n), "comment line (the project keeps code free of comment lines)"))
return errors
Expand Down
77 changes: 77 additions & 0 deletions .github/scripts/test_pr_gate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import os
import subprocess
import sys
import tempfile
import unittest

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import pr_gate

TOKEN = "ghp_" + "A" * 36


class AddedLinesTests(unittest.TestCase):
def setUp(self):
self.old = os.getcwd()
self.tmp = tempfile.TemporaryDirectory()
os.chdir(self.tmp.name)
self.run_git("init", "-q")
self.run_git("config", "core.autocrlf", "false")
self.run_git("commit", "-q", "--allow-empty", "-m", "base")

def tearDown(self):
os.chdir(self.old)
self.tmp.cleanup()

def run_git(self, *args):
subprocess.run(["git", "-c", "user.name=t", "-c", "user.email=t@t", *args], check=True, capture_output=True)

def commit(self, name, text):
with open(name, "w", encoding="utf-8", newline="\n") as f:
f.write(text)
self.run_git("add", name)
self.run_git("commit", "-q", "-m", "change")

def test_lines_starting_with_two_plus_signs_are_checked(self):
self.commit("notes.md", "a\n++ " + TOKEN + "\nb\n")
lines = list(pr_gate.added_lines("HEAD^1", "HEAD", "notes.md"))
self.assertEqual(lines, [(1, "a"), (2, "++ " + TOKEN), (3, "b")])
errors = pr_gate.check_lines("HEAD^1", "HEAD", ["notes.md"])
self.assertEqual(errors, [("notes.md:2", "access token")])

def test_file_headers_are_not_added_lines(self):
self.commit("a.rs", "fn a() {}\n")
self.assertEqual(list(pr_gate.added_lines("HEAD^1", "HEAD", "a.rs")), [(1, "fn a() {}")])

def test_line_numbers_follow_each_hunk(self):
self.commit("b.md", "".join("%d\n" % i for i in range(1, 11)))
self.commit("b.md", "".join(("+++x\n" if i in (3, 8) else "%d\n" % i) for i in range(1, 11)))
self.assertEqual(list(pr_gate.added_lines("HEAD^1", "HEAD", "b.md")), [(3, "+++x"), (8, "+++x")])

def test_rva_constants_in_compat_crates_are_rejected(self):
os.makedirs("crates/compat/x/src")
os.makedirs("crates/other/src")
body = ("const TITLE_RVA: usize = 0x1a2b3c;\n"
"pub const OFF: u64 = 0x0014_5e90;\n"
"const SMALL: usize = 0x1f0;\n"
"const PADDED: u64 = 0x0000_00ff;\n"
"const WORD: u32 = 0x8007_0057;\n"
"const SENTINEL: usize = 0x5842_4F58_4F45_4D11;\n"
"const MASK: u64 = 0xffff_ffff_ff00_0000;\n"
"const NINE: u64 = 0x1_2345_6789;\n"
"const SEVEN: usize = 0x0001_2345_67;\n")
self.commit("crates/compat/x/src/a.rs", body)
self.commit("crates/other/src/a.rs", body)
why = "title RVA-style constant (usize/u64 with 6-8 significant hex digits) in a compat crate"
self.assertEqual(pr_gate.check_lines("HEAD~2", "HEAD", ["crates/compat/x/src/a.rs", "crates/other/src/a.rs"]),
[("crates/compat/x/src/a.rs:1", why), ("crates/compat/x/src/a.rs:2", why),
("crates/compat/x/src/a.rs:9", why)])

def test_added_rust_comment_lines_are_rejected(self):
self.commit("c.rs", "fn c() {}\n// note\n //! doc\nlet u = \"http://x\";\n")
why = "comment line (the project keeps code free of comment lines)"
self.assertEqual(pr_gate.check_lines("HEAD^1", "HEAD", ["c.rs"]), [("c.rs:2", why), ("c.rs:3", why)])


if __name__ == "__main__":
unittest.main()
62 changes: 58 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
CARGO_INCREMENTAL: "0"

jobs:
rust-core:
rust-core-tests:
runs-on: windows-latest
timeout-minutes: 90
steps:
Expand All @@ -43,9 +43,63 @@ jobs:
- name: cargo check
shell: bash
run: cargo check --locked -p tombox-pe -p tombox-archive -p tombox-rpf -p tombox-disasm -p tombox-xshader --all-targets
- name: cargo test (no dumps, WARP only)
- name: cargo test (no dumps, WARP only, xshader exec runs in xshader-exec)
shell: bash
run: |
rest=()
for f in crates/tombox-xshader/tests/*.rs crates/tombox-xshader/tests/*/main.rs; do
[ -e "$f" ] || continue
n="$(basename "$f" .rs)"
if [ "$n" = main ]; then n="$(basename "$(dirname "$f")")"; fi
if [ "$n" != exec ]; then rest+=(--test "$n"); fi
done
rc=0
cargo test --locked -p tombox-pe -p tombox-archive -p tombox-rpf -p tombox-disasm --no-fail-fast || rc=1
cargo test --locked -p tombox-xshader --no-fail-fast --lib --bins "${rest[@]}" || rc=1
cargo test --locked -p tombox-xshader --doc || rc=1
exit "$rc"

xshader-exec:
runs-on: windows-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Toolchain
shell: bash
run: cargo test --locked -p tombox-pe -p tombox-archive -p tombox-rpf -p tombox-disasm -p tombox-xshader --no-fail-fast
run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: cargo test, xshader exec, shard ${{ matrix.shard }} of ${{ strategy.job-total }} (WARP only)
shell: bash
env:
SHARD_INDEX: ${{ strategy.job-index }}
SHARD_TOTAL: ${{ strategy.job-total }}
run: |
cargo test --locked -p tombox-xshader --test exec -- --list --format terse | tr -d '\r' | sed -n 's/: test$//p' | LC_ALL=C sort > "$RUNNER_TEMP/exec_all.txt"
awk -v k="$SHARD_INDEX" -v n="$SHARD_TOTAL" '(NR - 1) % n == k' "$RUNNER_TEMP/exec_all.txt" > "$RUNNER_TEMP/exec_shard.txt"
echo "shard $((SHARD_INDEX + 1)) of $SHARD_TOTAL: $(wc -l < "$RUNNER_TEMP/exec_shard.txt") of $(wc -l < "$RUNNER_TEMP/exec_all.txt") tests"
test -s "$RUNNER_TEMP/exec_shard.txt"
xargs cargo test --locked -p tombox-xshader --test exec -- --exact < "$RUNNER_TEMP/exec_shard.txt"

rust-core:
runs-on: ubuntu-24.04
timeout-minutes: 5
needs: [rust-core-tests, xshader-exec]
if: always()
steps:
- name: every test job succeeded
shell: bash
env:
RESULTS: ${{ join(needs.*.result, ' ') }}
run: |
echo "rust-core-tests xshader-exec: $RESULTS"
[ "$RESULTS" = "success success" ]

rust-workspace-check:
runs-on: windows-latest
Expand Down Expand Up @@ -78,4 +132,4 @@ jobs:
restore-keys: rust-ws-${{ runner.os }}-
- name: cargo check --workspace
shell: bash
run: cargo check --locked --workspace
run: cargo check --locked --workspace --exclude connectedstorageservice_proxystub --exclude gamecorecomproxy --exclude wldp
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Contributions are welcome. The most useful thing you can add right now is covera
| Path | What it is |
|---|---|
| `crates/compat/<dll>/` | One crate per console DLL. It builds a drop-in DLL with the console's exports. |
| `crates/compat/<dll>/exports.txt` | One line per export: `ordinal Name status \| notes`. Status is `implemented`, `forwarded`, `pc`, `title` or `missing`. |
| `crates/compat/<dll>/exports.txt` | One line per export: `ordinal Name status \| notes`. Status is `implemented`, `forwarded`, `hooked`, `pc`, `title`, `unsupported` or `missing` (meanings in the [library map](docs/LIBRARY_MAP.md#statuses)). Only `implemented`, `forwarded` and `hooked` rows are routed to the emulator; every other row keeps the PC binding. |
| `crates/compat/compat-common/` | Shared runtime: OS hooks, GDK file system and import routing. |
| `crates/compat/d3d12_xs/`, `d3d12_x/` | Xbox Direct3D 12.x (Series X\|S and One). |
| `crates/tombox-xshader/` | RDNA2 shader translator. |
Expand Down
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Uses legally obtained, already-decrypted dumps of games you own. The project doe
| Area | State |
|---|---|
| Imported system functions (Fortnite EXE) | 671 / 671 covered |
| Direct3D 12.x interface methods | 192 / 200 (8 partial: Device 29, 44; CommandList 64, 70, 74, 85, 86, 101) |
| RDNA2 instructions verified | 787 / 794 |
| Xbox console library exports | 2,145 / 2,155 |
| Direct3D 12.x interface methods | 200 / 200 |
| RDNA2 instructions verified | 813 / 820 |
| Xbox console library exports | 2,147 / 2,155 |
| Full shader sweep of the tested titles | 105,506 / 105,506 translate |
| Shaders without a root signature (GTA VI mesh programs) | **New:** buffers *and* images / samplers translate in memory-descriptor mode; runtime side not wired yet |
| Translator checked on real GPUs | **New:** GitHub Actions (Windows, WARP + DXC) and a Steam Deck (RDNA2, Proton / vkd3d-proton / RADV) |
Expand All @@ -47,10 +47,10 @@ Uses legally obtained, already-decrypted dumps of games you own. The project doe
| Title | Build | Result |
|---|---|---|
| Fortnite (Chapter 2 Season 4) | 2.0.1461.7919 | Boots, logs in to a local backend, reaches the Battle Royale lobby. 2D interface correct; 3D scene lit but materials wrong, bloom artifacts. No audio, no input. Not playable. |
| Trackmania | Xbox One build | Title menu draws at 144 fps. Open: xg_x HTILE / metadata planes, stencil-only MSAA views. |
| Terraria | Xbox One build | Runs 60 s without crashing; no frame yet (textures get GPU VA 0, Unity waits on the upload). |
| XDefiant | Series build | Runs about 140 s at 60 fps, frame black: aliased-VA render targets need shared backing. Parked. |
| Minecraft | GDK build | Imports analysed and GDK slots verified; not brought up. |
| Trackmania | 1.6.2.0 | **Boots and plays on the upstream developers' PC:** menus, login against the in-process backend, the Training - 01 race at about 60 fps, keyboard and controller. Video screens, billboards and streamed textures are black; stencil-tested lighting is dark. **Steam Deck (Proton, through `tombox-launch`):** the runtime, D3D12 device, shader translation and PSOs come up, then a null sub-object crashes it before the first frame (see docs/HANDOFF.md). |
| Terraria | 4.4.14.1081 | **Reaches its world** at 60 fps; keyboard and controller work when played by hand. Automated runs still crash some seconds after the world appears. |
| XDefiant | 1.0.0.186 | Boots to first frames (~26 s) at under 1 fps while shader and pipeline compiles block, then crashes. |
| Minecraft (Beta) | 1.18.3064.0 | Boots past the welcome screen to the menu (~44 s), then crashes in automated runs. |
| Grand Theft Auto VI | 1.0.2.1 | **Not run: no executable exists in any dump.** Shader package examined (26,503 shaders). The blocker that stopped two thirds of them, resources bound without a root signature, now has a translator answer (memory-descriptor mode); the rest of the road is in the [roadmap](docs/ROADMAP.md). |

## What changed in the last round
Expand All @@ -77,7 +77,7 @@ The full plan, with what blocks each step, is in **[docs/ROADMAP.md](docs/ROADMA

1. **Land the open pull requests** and keep CI green.
2. **Finish the GTA VI resource model:** the d3d12_xs runtime fills the user data, maps memory windows and keeps the T# / S# table (memory-descriptor step 3).
3. **Make a second title playable:** Trackmania past the menu, Terraria to its first frame, XDefiant out of the black frame, with audio and input.
3. **More titles playable:** Trackmania already plays on the upstream PC; next are its black video and stencil passes, Terraria past its automated-run crash, XDefiant past its first frames, and Trackmania on the Steam Deck.
4. **Fortnite in game:** correct 3D materials, audio, controller and keyboard.
5. **GTA VI:** everything that can be done without an executable now; boot when one exists.

Expand Down
Loading
Loading