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:
1 parent
57fcf21b80
commit
29f9e89df6
55 files changed
+161
-161
No files matched your search
@@ -61,7 +61,7 @@
|
||||
//! public software emulation of this instruction in the open-source Vulkan
|
||||
//! driver for this GPU family (box test and sorting network as there; the
|
||||
//! triangle test is the watertight one it uses, Woop, Benthin and Wald,
|
||||
//! JCGT 2013), and agree with what Grand Theft Auto VI's own structure
|
||||
//! JCGT 2013), and agree with what the title's own structure
|
||||
//! builder writes and its trace programs read. Not known from either: how
|
||||
//! the console rounds, which of two boxes entered at the same distance it
|
||||
//! returns first, and what it returns for a ray exactly through an edge
|
||||
|
||||
@@ -141,7 +141,7 @@ const CASES: &[(&str, &str)] = &[
|
||||
}"#,
|
||||
),
|
||||
// 16-bit outputs and inputs (one value per dword with the 2020
|
||||
// compiler; Grand Theft Auto VI's two per dword cannot be compiled
|
||||
// compiler; the title's two per dword cannot be compiled
|
||||
// here) and the front face.
|
||||
(
|
||||
"16-bit varyings and front face",
|
||||
@@ -354,7 +354,7 @@ const CS_CASES: &[(&str, &str)] = &[
|
||||
uint4(w * 7 + h, l + asuint(r), n * 5 + ns * 3 + st, b + raw.Load(4 * (i & 31))));
|
||||
}"#,
|
||||
),
|
||||
// Typed loads (`tbuffer_load_format_*`, Grand Theft Auto VI's vertex
|
||||
// Typed loads (`tbuffer_load_format_*`, the title's vertex
|
||||
// fetch) convert by the format the instruction names: the PC reads the
|
||||
// same bytes through typed views in those formats. Channels past the
|
||||
// format's read (0, 0, 0, 1); a byte format at unaligned offsets.
|
||||
@@ -587,7 +587,7 @@ const MS_CASES: &[(&str, u32, &str)] = &[
|
||||
}
|
||||
}"#,
|
||||
),
|
||||
// Two waves per group, as Grand Theft Auto VI's mesh programs run: the
|
||||
// Two waves per group, as the title's mesh programs run: the
|
||||
// second wave's lanes are threads 64-127.
|
||||
(
|
||||
"two waves",
|
||||
@@ -605,7 +605,7 @@ const MS_CASES: &[(&str, u32, &str)] = &[
|
||||
tris[i] = i & 1 ? uint3(c + 1, c + 10, c + 9) : uint3(c, c + 1, c + 9);
|
||||
}"#,
|
||||
),
|
||||
// Quad reads (DPP quad permutations on the console; Grand Theft Auto VI's
|
||||
// Quad reads (DPP quad permutations on the console; the title's
|
||||
// tessellating mesh programs swizzle within quads too).
|
||||
(
|
||||
"quad reads",
|
||||
|
||||
@@ -1063,8 +1063,8 @@ pub(super) fn reads_mask_as_data(st: &Structured, i: &Inst) -> bool {
|
||||
/// second row. An element that shares a register behind another one (the
|
||||
/// signature packs a short element into the free columns of an earlier
|
||||
/// register) is NOT in that row's halves: it follows in the first
|
||||
/// parameter, in row order, that has whole dwords left. Grand Theft Auto
|
||||
/// VI's packed pedestrian shaders show both cases: TEXCOORD7 (register 1,
|
||||
/// parameter, in row order, that has whole dwords left.
|
||||
/// The title's packed pedestrian shaders show both cases: TEXCOORD7 (register 1,
|
||||
/// columns 2-3, behind the two columns of TEXCOORD0) is exported in dword 3
|
||||
/// of parameter 0, after TEXCOORD1's two dwords; TEXCOORD6 (register 4,
|
||||
/// column 3, behind the three columns of TEXCOORD4) in dword 3 of
|
||||
@@ -4260,8 +4260,8 @@ impl<'a> Lower<'a> {
|
||||
if name == "ds_bpermute_b32" {
|
||||
// Backward permute: no LDS is touched. Each lane takes the data
|
||||
// register of the lane its address names, (address + offset) / 4
|
||||
// within the wave; a source lane outside EXEC gives 0. (Grand
|
||||
// Theft Auto VI's checkerboard shadow-mask generators read their
|
||||
// within the wave; a source lane outside EXEC gives 0. (
|
||||
// the title's checkerboard shadow-mask generators read their
|
||||
// neighbours' samples with it; without them every shadowed light
|
||||
// was multiplied by an empty mask.)
|
||||
// shortcut: a source lane that is not at this instruction on the
|
||||
@@ -5346,8 +5346,8 @@ impl<'a> Lower<'a> {
|
||||
// heap holds a buffer view there, not a constant buffer: read as
|
||||
// raw bytes, as a table's SRV is below. Read as a constant buffer
|
||||
// (the host's validation: "Descriptor Type in Heap: SRV, Register
|
||||
// Type: CBV", heap index 17) the loads gave nothing: Grand Theft
|
||||
// Auto VI's meshlet culling (BatchCullMeshlets,
|
||||
// Type: CBV", heap index 17) the loads gave nothing:
|
||||
// the title's meshlet culling (BatchCullMeshlets,
|
||||
// BatchCullPreSkinnedMeshlets, BatchCullBatchCSMeshlets) reads its
|
||||
// batch records, mesh headers and instance transforms this way, so
|
||||
// it passed no meshlet and every indirect mesh draw ran empty.
|
||||
@@ -9438,8 +9438,8 @@ impl<'a> Lower<'a> {
|
||||
// are read at the level instead, in the gather's
|
||||
// order: (u0,v1) (u1,v1) (u1,v0) (u0,v0).
|
||||
// With an offset too (`image_gather4_l_o`): the
|
||||
// offset is in texels of that level. Grand Theft
|
||||
// Auto VI's meshlet culling takes a 4x4 block of
|
||||
// offset is in texels of that level.
|
||||
// The title's meshlet culling takes a 4x4 block of
|
||||
// the pyramid as one gather and three offset ones
|
||||
// ((2,0), (0,2), (2,2)); the three read level 0,
|
||||
// two texels beside the first one's place, so a
|
||||
@@ -10802,7 +10802,7 @@ mod tests {
|
||||
assert_eq!(p.get(&5), None);
|
||||
}
|
||||
|
||||
/// The packed pedestrian layouts of Grand Theft Auto VI: an element
|
||||
/// The packed pedestrian layouts of the title: an element
|
||||
/// behind another one in its register follows in the first parameter
|
||||
/// with a dword left, and is not a half of its register's row.
|
||||
#[test]
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
//! `b<i>` / `t<i>` in [`ROOT_CBV_SPACE`], `i` the title's root parameter
|
||||
//! index ([`HostShader::root_cbvs`], [`HostShader::root_srvs`]); the
|
||||
//! address the title sets is the buffer's.
|
||||
//! * **Vertex fetch** (added 2026-11-23). Grand Theft Auto VI's mesh and
|
||||
//! * **Vertex fetch** (added 2026-11-23). The title's mesh and
|
||||
//! vertex programs fetch vertices themselves with typed-format loads
|
||||
//! (`tbuffer_load_format_*`): the format (8_8_8_8 unorm, 16_16 snorm,
|
||||
//! 2_10_10_10 unorm, 8_8_8_8 and 16_16_16_16 uint...) is in the
|
||||
@@ -612,7 +612,7 @@ fn emit_program(
|
||||
// primitives) (the code divides by that); the thread count is in PSV0
|
||||
// from runtime info version 2 on.
|
||||
// shortcut: older containers fall back to the group's lane count, right
|
||||
// when the HLSL group fills its waves (Grand Theft Auto VI's do).
|
||||
// when the HLSL group fills its waves (the title's do).
|
||||
let mesh_stride = match &native.io {
|
||||
crate::native::StageIo::Ms(ms) => {
|
||||
let psv = c.part(FourCC::PSV0).map(|p| p.data);
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
//! arguments stay the title's, and each rectangle arrives here as one
|
||||
//! triangle.
|
||||
//!
|
||||
//! Which vertex is the corner between the other two varies: Grand Theft
|
||||
//! Auto VI's full-screen rectangles come as top left, bottom left, bottom
|
||||
//! Which vertex is the corner between the other two varies:
|
||||
//! the title's full-screen rectangles come as top left, bottom left, bottom
|
||||
//! right (the second), its tiled lighting as top left, bottom left, top
|
||||
//! right (the first). The corner is the vertex that shares x with one of
|
||||
//! the others and y with the other; the fourth vertex lies opposite it,
|
||||
|
||||
@@ -164,8 +164,8 @@ pub enum BvhNodes {
|
||||
/// A buffer of the host: the descriptor is loaded from a table (it is
|
||||
/// among [`Resources::descriptors`]), and node pointers count from the
|
||||
/// buffer's start. Its flags are not known to the shader: boxes are
|
||||
/// sorted and triangles return barycentrics, as every descriptor Grand
|
||||
/// Theft Auto VI builds asks.
|
||||
/// sorted and triangles return barycentrics, as every descriptor
|
||||
/// the title builds asks.
|
||||
Resource,
|
||||
/// Title memory by address: the code makes the descriptor from numbers
|
||||
/// (the title: the whole address space, or one structure's address in
|
||||
@@ -718,7 +718,7 @@ impl<'a> Tracer<'a> {
|
||||
/// For a join `v` whose every incoming value adds to an `s_getpc_b64` low
|
||||
/// dword: the first of those (one level of joins only). The paths may add
|
||||
/// to different ones: two tables in the code, one picked by control flow
|
||||
/// (Grand Theft Auto VI's fog reconstruction reads its sample offsets from
|
||||
/// (the title's fog reconstruction reads its sample offsets from
|
||||
/// one of two tables, by the sample's number; refused, the lit frame was
|
||||
/// multiplied by a fog transmittance nothing had written).
|
||||
fn code_join(&self, v: Value) -> Option<Value> {
|
||||
@@ -1209,7 +1209,7 @@ impl<'a> Tracer<'a> {
|
||||
/// other: the console compiler loads a descriptor (or clears an
|
||||
/// address's high half) inside a branch that skips code when no lane
|
||||
/// is left for it, and uses it after the join, where only lanes that
|
||||
/// ran the branch are left (Grand Theft Auto VI's
|
||||
/// ran the branch are left (the title's
|
||||
/// `CS_Alpha_Schedule`: the registers' values from before the branch,
|
||||
/// which the join also sees, are what a wave with no such lane holds).
|
||||
/// None at loop headers and without the lanes' paths.
|
||||
@@ -3062,7 +3062,7 @@ pub(crate) mod tests {
|
||||
0xBF81_0000, // s_endpgm
|
||||
];
|
||||
|
||||
/// The console compiler's waterfall (Grand Theft Auto VI's ray-tracing
|
||||
/// The console compiler's waterfall (the title's ray-tracing
|
||||
/// resolve and others): each lane holds its entry's byte offset in the
|
||||
/// table at s0 (v7 = (lane & 1) * 32); the loop reads the first active
|
||||
/// lane's offset, narrows EXEC to the lanes with the same one
|
||||
|
||||
@@ -55,7 +55,7 @@ fn spilled(native: &NativeProgram) -> Option<Vec<(u32, u32)>> {
|
||||
}
|
||||
|
||||
/// Whether `native` reads its root parameters from a spilled user-data
|
||||
/// table. (In Grand Theft Auto VI exactly the compute programs of the
|
||||
/// table. (In the title exactly the compute programs of the
|
||||
/// console's ray-tracing structure builder do.)
|
||||
pub fn is_spilled(native: &NativeProgram) -> bool {
|
||||
spilled(native).is_some()
|
||||
|
||||
Reference in new issue
Block a user