The game is no longer named in the tree

Comments, documents and descriptions now say "the title". No code changes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
fxcelessandClaude Fable 5.2 committed 2026-11-24 15:45:05 -05:00
1 parent 90228a7dc6
commit 4e17478b9c
55 files changed
+161 -161

No files matched your search

+12 -12
View File
@@ -32,7 +32,7 @@ const ALLOCATOR_IIDS: [Iid; 4] = [
/// The list interfaces up to `ID3D12GraphicsCommandList6` (the table has
/// all their slots): those whose ids are the same as on PC, the console's
/// own List5 and List6 (Grand Theft Auto VI asks for List6), then the
/// own List5 and List6 (the title asks for List6), then the
/// device child's.
const LIST_IIDS: [Iid; 10] = [
guid(
@@ -106,7 +106,7 @@ struct List {
graphics_root_headers: [u32; 128],
compute_root_headers: [u32; 128],
pipeline_shadow: [u32; 8],
/// Newer titles' lists are larger: Grand Theft Auto VI's state flush
/// Newer titles' lists are larger: the title's state flush
/// (title+0x32786) copies a pipeline's 32 bytes to +0x544..+0x564 and
/// tests +0x548, so its layout runs past 0x560. Its size is unknown;
/// this keeps our fields clear of whatever the title writes there.
@@ -921,8 +921,8 @@ extern "system" fn copy_texture_region(
let Some(to) = crate::resource::host_resource(dst.resource) else {
// Texture to buffer: a read back. The list copies the texels
// into a host buffer of ours; once it has run they go to the
// title's buffer (`HostList::defer_read_back`). Grand Theft
// Auto VI reads two tiny float targets back every frame (5x1
// title's buffer (`HostList::defer_read_back`).
// The title reads two tiny float targets back every frame (5x1
// and 1x1 RGBA32F, 80 and 16 bytes: run 90), and read a buffer
// nobody wrote. `VICTORY_READ_BACK=0` leaves them unmade, as
// before.
@@ -1406,7 +1406,7 @@ extern "system" fn reset_x(this: This, allocator: This, pipeline: This, _flags:
/// Newer lists' 0x4a0 `(size, alignment) -> pointer`: memory the list
/// owns until it is reset, which the CPU writes and the GPU reads at the
/// same address; null on failure. Grand Theft Auto VI's BVH builder puts
/// same address; null on failure. The title's BVH builder puts
/// its instance descriptions there (and wrote through our old
/// `E_NOTIMPL` as a pointer).
extern "system" fn allocate_upload(this: This, size: u64, alignment: u64) -> *mut u8 {
@@ -1672,7 +1672,7 @@ extern "system" fn draw(_: This) {
}
/// `ExecuteIndirect(signature, max count, arguments, offset, count buffer,
/// offset)`. Grand Theft Auto VI's signatures (title+0x2479466, 2026-11-24)
/// offset)`. The title's signatures (title+0x2479466, 2026-11-24)
/// hold one argument each: draw (stride 16), indexed draw (20), dispatch
/// (12), mesh dispatch (12), and the console's single-pass dispatch, type
/// 105 (stride 12: the three group counts; its flags live in the
@@ -1778,7 +1778,7 @@ impl ValueWait {
/// end of the region: the title keeps these values in a 1.1 GB
/// allocation (0xd00000000), where one question took about 8 ms, and a
/// queue asks at every submission and every signal, for each queue that
/// stands at a wait (Grand Theft Auto VI has five queues). That was
/// stands at a wait (the title has five queues). That was
/// 1.0-2.2 s of every cutscene frame on the thread that submits (runs
/// 36-49: "between its submissions ... kernel"; 47 of 110 looks at
/// that thread in run 49 found it in this question).
@@ -1847,7 +1847,7 @@ static VALUE_WAITS: std::sync::Mutex<Vec<(usize, ValueWait)>> = std::sync::Mutex
/// The waits of the submitted `lists` that are not met yet (taken from
/// them): what the console's GPU would stop at. The title orders work
/// between its queues this way (Grand Theft Auto VI: the compute queue's
/// between its queues this way (the title: the compute queue's
/// lighting passes wait for a value the graphics queue's depth pass writes
/// at the bottom of the pipe; run at once, they read a cleared depth
/// buffer and nothing was lit).
@@ -1985,7 +1985,7 @@ extern "system" fn write64(this: This, address: u64, value: u64, _flush: u32, fl
/// the host list is cut right behind it, so that the value is stored when
/// the card has run the list up to there, as on the console, and not when
/// the whole list has run. Lists of other queues wait for these values
/// (Grand Theft Auto VI: the compute list that builds the depth pyramid
/// (the title: the compute list that builds the depth pyramid
/// waits for one, and the meshlet culling of the same frame reads that
/// pyramid). Off by default: every such write then ends a host list, and
/// each part is a submission of its own.
@@ -2126,7 +2126,7 @@ const MORE_METHODS: [(usize, *const ()); 9] = [
/// base list, after the clears (0x198/0x1a0 as before) and before
/// ExecuteIndirect, which moved from 0x1d8 to 0x1e8: every slot from 0x1d8
/// on is two later (taken here as starting exactly at 0x1d8). Inferred from
/// Grand Theft Auto VI's call shapes: ExecuteIndirect 0x1e8, bottom-of-pipe
/// The title's call shapes: ExecuteIndirect 0x1e8, bottom-of-pipe
/// writes 0x238/0x240, waits 0x248/0x250, depth bounds 0x230, shading rate
/// 0x3f0/0x400, syncs 0x418/0x420, ResetX 0x458 (asserts on failure).
const fn newer_slot(slot: usize) -> usize {
@@ -2136,7 +2136,7 @@ const fn newer_slot(slot: usize) -> usize {
/// Methods only newer titles' lists have. 0x490: the enhanced barrier
/// `(group count, groups)`, with 16-byte groups `(type, count, barriers)`
/// and 40-byte buffer barriers (title+0x95e0 builds them). 0x470 `(u64)`,
/// called from Grand Theft Auto VI's state flush with its result unused.
/// called from the title's state flush with its result unused.
/// shortcut: 0x470's purpose is unknown; ignored until a title shows it
/// matters.
const NEWER_METHODS: [(usize, *const ()); 3] = [
@@ -2193,7 +2193,7 @@ mod tests {
(at(0x18), at(0x28), at(0x30))
};
assert!(put >= draw_limit && put >= api_limit);
// The console's ID3D12GraphicsCommandList6, as Grand Theft Auto VI asks.
// The console's ID3D12GraphicsCommandList6, as the title asks.
let mut same = null;
assert_eq!(list_query(list, &LIST_IIDS[7], &mut same), S_OK);
assert_eq!(same, list);