Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions crates/xcl/src/gpu/recomp/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4506,6 +4506,50 @@ fn out_struct(h: &mut String, name: &str, outputs: &[SigElement]) {
h.push_str("};\n");
}

/// Geometry shader for the console's rect lists (IASetPrimitiveTopology 17, AMD's
/// DI_PT_RECTLIST; PSO topology type 19) behind a translated VS with these outputs: the PC has
/// no such topology, the draw arrives as a triangle list and each rect's three vertices come
/// here. They are three corners of a screen-aligned rectangle (AMD PAL, `palCmdBuffer.h`:
/// "Each rect is three 2D axis-aligned rectangle vertices"), and the corner between the other
/// two is not always the same vertex: Mesa's radeonsi blits send (x1,y1), (x1,y2), (x2,y1) – v0
/// – and xf86-video-ati's r600 EXA (x1,y1), (x1,y2), (x2,y2) – v1. The corner is the vertex
/// sharing x with one of the others and y with the other; the fourth vertex is the opposite
/// corner, a + b - corner, with every output taken the same way (both drivers' texture
/// coordinates rely on the implied corner continuing them linearly). Only for three vertices
/// with one positive w – then a + b - corner is the same in clip and screen space and every
/// interpolation mode agrees; three that are not such corners, or differ in w, stay the one
/// triangle they make. Refused (Err): integer outputs, which are flat – which vertex of a rect
/// gives a flat value is not established, so neither is how the two halves would carry it
/// (the PS side: `pso::ps_reads_flat`).
pub fn rect_list_gs(outputs: &[SigElement]) -> Result<String, String> {
if let Some(e) = ranked(outputs, true).iter().find(|e| hlsl_type(e) != "float") {
return Err(format!("{} is an integer output (flat)", e.semantic()));
}
let mut h = String::new();
h.push_str("// generated by XCL: a console rect list's rectangles (three corners, the fourth implied)\n");
out_struct(&mut h, "XclOut", outputs);
h.push_str("[maxvertexcount(6)]\nvoid main(triangle XclOut v[3], inout TriangleStream<XclOut> s)\n{\n");
h.push_str(" s.Append(v[0]);\n s.Append(v[1]);\n s.Append(v[2]);\n");
h.push_str(" if (!(v[0].pos.w > 0.0 && v[1].pos.w == v[0].pos.w && v[2].pos.w == v[0].pos.w))\n return;\n");
// one w: clip-space x and y compare as the screen's do
h.push_str(" float2 q[3] = { v[0].pos.xy, v[1].pos.xy, v[2].pos.xy };\n");
// the corner c: x shared with a and y with b, or the other way round (a = c + 1, b = c + 2)
h.push_str(" uint c = 3u;\n [unroll] for (uint i = 0u; i < 3u; i++) {\n");
h.push_str(" float2 p = q[i], a = q[(i + 1u) % 3u], b = q[(i + 2u) % 3u];\n");
h.push_str(" bool corner = (p.x == a.x && p.y == b.y) || (p.x == b.x && p.y == a.y);\n");
h.push_str(" bool degenerate = all(p == a) || all(p == b) || all(a == b);\n");
h.push_str(" if (c == 3u && corner && !degenerate)\n c = i;\n }\n");
h.push_str(" if (c == 3u)\n return;\n");
h.push_str(" XclOut k = v[c], a = v[(c + 1u) % 3u], b = v[(c + 2u) % 3u];\n XclOut d = a;\n");
h.push_str(" d.pos = a.pos + b.pos - k.pos;\n");
for k in 0..ranked(outputs, true).len() {
let _ = writeln!(h, " d.p{k} = a.p{k} + b.p{k} - k.p{k};");
}
// (c, a, b) is the first triangle's winding; (a, d, b) – its point reflection – keeps it
h.push_str(" s.RestartStrip();\n s.Append(a);\n s.Append(d);\n s.Append(b);\n}\n");
Ok(h)
}

/// Second pass of the mesh mode: a mesh shader that turns the records written by the
/// translated program (one per group, see `MsInterface::record_dwords`) into vertices and
/// triangles. Null primitives (bit 31) and out-of-range indices are culled.
Expand Down
40 changes: 40 additions & 0 deletions crates/xcl/src/gpu/recomp/pso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,46 @@ pub fn console_geometry(vs: &[u8], gs: &[u8], ps: Option<&[u8]>, split_wave64: b
finish_two_pass(translation, record, ps)
}

/// The geometry shader (gs_6_6 DXIL) that draws a console rect list's rectangles behind the
/// console VS `vs` (its container): `emit::rect_list_gs` for the VS's output signature, which
/// is what the translated VS's output struct is declared from.
pub fn rect_list_gs(vs: &[u8]) -> Result<Vec<u8>, String> {
let outputs = crate::gpu::dxbc::signatures(vs).1;
if outputs.is_empty() {
return Err("the VS has no output signature".into());
}
Ok(dxc::compile_cached(&super::emit::rect_list_gs(&outputs)?, "main", "gs_6_6")?.0)
}

/// Whether the console PS `ps` (its container) reads an attribute flat: an integer input, or a
/// `v_interp_mov_f32` – what the translation declares `nointerpolation` (`emit`, `XclIn`). A rect
/// list's flat values are not carried by `rect_list_gs` (see there).
pub fn ps_reads_flat(ps: &[u8]) -> Result<bool, String> {
let sh = xbox::parse(ps).ok_or("not a console shader container")?;
let f = sh.fssm.iter().find(|f| f.stages.first().is_some_and(|s| s.hw == 5)).ok_or("no PS hardware variant")?;
let Some(Mode::Pixel(psi)) = interface(ps, &sh, f) else {
return Err("unknown PS interface".into());
};
if super::ranked(&psi.inputs, false).iter().any(|e| e.component_type != 3) {
return Ok(true);
}
let p = f.programs.first().ok_or("FSSM without a program")?;
reads_flat(&f.data[p.offset..p.offset + p.len])
}

/// Whether PS code has a `v_interp_mov_f32`.
pub fn reads_flat(code: &[u8]) -> Result<bool, String> {
let mut off = 0usize;
while off + 4 <= code.len() {
let d = crate::gpu::rdna2::decode(&code[off..], off as u64).map_err(|e| format!("+{off:#x}: cannot decode ({e:?})"))?;
if d.inst.name.eq_ignore_ascii_case("v_interp_mov_f32") {
return Ok(true);
}
off += d.len;
}
Ok(false)
}

/// XCL shader ABI root signature (see the module docs); `graphics` allows an input layout.
pub fn abi_root_signature(dev: &ID3D12Device, graphics: bool) -> Result<ID3D12RootSignature, String> {
abi_root_signature_with(dev, graphics, &[])
Expand Down
18 changes: 18 additions & 0 deletions crates/xcl/src/gpu/recomp/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,23 @@ pub fn draw(
mem: &[u32],
size: u32,
clear: [f32; 4],
) -> Result<Vec<[f32; 4]>, String> {
draw_gs(vs, None, ps, layout, vertices, stride, sgprs, mem, size, clear)
}

/// `draw` with a geometry shader (DXIL) between the VS and the PS.
#[allow(clippy::too_many_arguments)]
pub fn draw_gs(
vs: &[u8],
gs: Option<&[u8]>,
ps: &[u8],
layout: &[VertexElement],
vertices: &[f32],
stride: u32,
sgprs: &[u32],
mem: &[u32],
size: u32,
clear: [f32; 4],
) -> Result<Vec<[f32; 4]>, String> {
let mut g = GPU.lock().unwrap();
let gpu = g.get_or_insert_with(init).as_mut().map_err(|x| x.clone())?;
Expand All @@ -654,6 +671,7 @@ pub fn draw(
pRootSignature: transmute_copy(&rs),
VS: D3D12_SHADER_BYTECODE { pShaderBytecode: vs.as_ptr() as _, BytecodeLength: vs.len() },
PS: D3D12_SHADER_BYTECODE { pShaderBytecode: ps.as_ptr() as _, BytecodeLength: ps.len() },
GS: gs.map_or_else(D3D12_SHADER_BYTECODE::default, |g| D3D12_SHADER_BYTECODE { pShaderBytecode: g.as_ptr() as _, BytecodeLength: g.len() }),
SampleMask: u32::MAX,
InputLayout: D3D12_INPUT_LAYOUT_DESC { pInputElementDescs: elems.as_ptr(), NumElements: elems.len() as u32 },
PrimitiveTopologyType: D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE,
Expand Down
162 changes: 162 additions & 0 deletions crates/xcl/src/gpu/recomp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,168 @@ fn gpu_graphics_vs_ps_draw() {
}
}

/// `emit::rect_list_gs` refuses integer (flat) outputs and declares the VS's output struct.
#[test]
fn rect_list_gs_outputs() {
let float = [el("SV_Position", 0, 1, 3, 0, 0xF), el("TEXCOORD", 0, 0, 3, 1, 0xF), el("SV_ClipDistance", 0, 2, 3, 2, 1)];
let h = super::emit::rect_list_gs(&float).unwrap();
assert!(h.contains("triangle XclOut v[3]") && h.contains("d.p0 = a.p0 + b.p0 - k.p0;") && h.contains("d.p1 = a.p1 + b.p1 - k.p1;"), "{h}");
let flat = [el("SV_Position", 0, 1, 3, 0, 0xF), el("TEXCOORD", 0, 0, 1, 1, 0xF)];
assert!(super::emit::rect_list_gs(&flat).unwrap_err().contains("TEXCOORD0"));
if super::dxc::location().is_ok() {
super::dxc::compile(&h, "main", "gs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{h}"));
}
}

/// A PS with `v_interp_mov_f32` reads flat (`pso::reads_flat`): its rect list keeps no GS.
#[test]
fn rect_list_ps_reads_flat() {
let mov = prog(&[
("V_INTERP_MOV_F32", "ENC_VINTRP", &[("VDST", 4), ("VSRC", 2), ("ATTR", 0), ("ATTRCHAN", 0)], None),
]);
let p2 = prog(&[
("V_INTERP_P1_F32", "ENC_VINTRP", &[("VDST", 4), ("VSRC", 0), ("ATTR", 0), ("ATTRCHAN", 0)], None),
("V_INTERP_P2_F32", "ENC_VINTRP", &[("VDST", 4), ("VSRC", 1), ("ATTR", 0), ("ATTRCHAN", 0)], None),
]);
assert!(super::pso::reads_flat(&mov).unwrap());
assert!(!super::pso::reads_flat(&p2).unwrap());
}

/// `emit::rect_list_gs` on the full-screen pass a downstream build (theaustinayers/xcl, build 5,
/// via #189) reports from a retail title: positions (−1,1) (−1,−1) (1,−1), texture coordinates
/// (0,0) (0,1) (1,1), the shared corner v1 and the implied one (1,1) with (1,0). Plain HLSL
/// VS/PS around the GS. Every pixel must be drawn with its texture coordinate, for w 1 and 2;
/// without the GS about half are. The other half of that rect as a triangle (v0, v2 and the
/// implied corner – what a draw expanded to two triangles a rect on the CPU sends next) is three
/// corners of the same rect, so the GS completes it to the whole rect as well: such a draw must
/// not also get this GS, or each rect is drawn twice.
#[test]
fn gpu_rect_list_fullscreen_order() {
if !gpu_ready() {
return;
}
use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R32G32B32A32_FLOAT;
let outputs = [el("SV_Position", 0, 1, 3, 0, 0xF), el("TEXCOORD", 0, 0, 3, 1, 0xF)];
let vs_hlsl = "struct V { float4 pos : SV_Position; float4 uv : TEXCOORD0; };\nV main(float4 pos : POSITION, float4 uv : TEXCOORD0) { V o; o.pos = pos; o.uv = uv; return o; }\n";
let ps_hlsl = "float4 main(float4 pos : SV_Position, float4 uv : TEXCOORD0) : SV_Target { return uv; }\n";
let vs = super::dxc::compile(vs_hlsl, "main", "vs_6_6", &[]).unwrap();
let ps = super::dxc::compile(ps_hlsl, "main", "ps_6_6", &[]).unwrap();
let gs_hlsl = super::emit::rect_list_gs(&outputs).unwrap();
let gs = super::dxc::compile(&gs_hlsl, "main", "gs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{gs_hlsl}"));
let layout = [
runner::VertexElement { semantic: "POSITION", index: 0, format: DXGI_FORMAT_R32G32B32A32_FLOAT, offset: 0 },
runner::VertexElement { semantic: "TEXCOORD", index: 0, format: DXGI_FORMAT_R32G32B32A32_FLOAT, offset: 16 },
];
let (n, clear) = (16usize, [0.0f32, 0.0, 1.0, 0.5]);
let first = [([-1.0f32, 1.0], [0.0f32, 0.0]), ([-1.0, -1.0], [0.0, 1.0]), ([1.0, -1.0], [1.0, 1.0])];
let second = [([-1.0f32, 1.0], [0.0f32, 0.0]), ([1.0, -1.0], [1.0, 1.0]), ([1.0, 1.0], [1.0, 0.0])];
for (name, corners, w) in [("v0 v1 v2", first, 1.0f32), ("v0 v1 v2", first, 2.0), ("v0 v2 v3", second, 1.0)] {
let v: Vec<f32> = corners.iter().flat_map(|&([x, y], [s, t])| [x * w, y * w, 0.0, w, s, t, 0.0, 1.0]).collect();
let run = |with_gs: bool| runner::draw_gs(&vs, with_gs.then_some(gs.as_slice()), &ps, &layout, &v, 32, &[], &[], n as u32, clear).unwrap();
let px = run(true);
for y in 0..n {
for x in 0..n {
let want = [(x as f32 + 0.5) / n as f32, (y as f32 + 0.5) / n as f32, 0.0, 1.0];
let got = px[y * n + x];
assert!(got.iter().zip(want).all(|(a, b)| (a - b).abs() < 1e-5), "{name}, w {w}: pixel ({x},{y}) = {got:?}, expected {want:?}");
}
}
// the negative control: the three vertices alone draw half the rect
let drawn = run(false).iter().filter(|p| **p != clear).count();
assert!(drawn > n * n / 3 && drawn < n * n * 2 / 3, "{name}, w {w}: without the GS {drawn} of {} pixels drawn", n * n);
}
}

/// Console rect lists (DI_PT_RECTLIST) drawn through `emit::rect_list_gs`: three corners of a
/// screen-aligned rectangle, the corner between the other two at v0 (Mesa radeonsi's blits),
/// v1 (xf86-video-ati's r600 EXA) or v2. Each covers the whole rectangle and its attribute – the
/// vertex's own position – is the pixel's position everywhere, the implied corner's quarter
/// included (both drivers' texture coordinates depend on it). Without the GS (as before) part
/// of the rectangle stays clear; three vertices that are not such corners, or differ in w, draw
/// the same with and without it. Synthetic: the expected images are the rectangle and the
/// triangle, not a measurement of the hardware.
#[test]
fn gpu_rect_list_corners() {
if !gpu_ready() {
return;
}
use super::{PsInterface, VsInterface};
use windows::Win32::Graphics::Dxgi::Common::DXGI_FORMAT_R32G32B32A32_FLOAT;
let vs_code = prog(&[
("EXP", "ENC_EXP", &[("TGT", 12), ("EN", 0xF), ("VSRC0", 4), ("VSRC1", 5), ("VSRC2", 6), ("VSRC3", 7), ("DONE", 1)], None),
("EXP", "ENC_EXP", &[("TGT", 32), ("EN", 0xF), ("VSRC0", 8), ("VSRC1", 9), ("VSRC2", 10), ("VSRC3", 11)], None),
]);
let vsi = VsInterface {
inputs: vec![el("POSITION", 0, 0, 3, 0, 0xF), el("COLOR", 0, 0, 3, 1, 0xF)],
outputs: vec![el("SV_Position", 0, 1, 3, 0, 0xF), el("COLOR", 0, 0, 3, 1, 0xF)],
attr_base: 4,
params: None,
};
let mut ps_ops: Vec<(&str, &str, Vec<(&str, u64)>, Option<u32>)> = Vec::new();
for c in 0..2u64 {
ps_ops.push(("V_INTERP_P1_F32", "ENC_VINTRP", vec![("VDST", 4 + c), ("VSRC", 0), ("ATTR", 0), ("ATTRCHAN", c)], None));
ps_ops.push(("V_INTERP_P2_F32", "ENC_VINTRP", vec![("VDST", 4 + c), ("VSRC", 1), ("ATTR", 0), ("ATTRCHAN", c)], None));
}
ps_ops.push(("V_MOV_B32", "ENC_VOP1", vec![("VDST", 6), ("SRC0", 128)], None));
ps_ops.push(("V_MOV_B32", "ENC_VOP1", vec![("VDST", 7), ("SRC0", 242)], None));
ps_ops.push(("EXP", "ENC_EXP", vec![("TGT", 0), ("EN", 0xF), ("VSRC0", 4), ("VSRC1", 5), ("VSRC2", 6), ("VSRC3", 7), ("DONE", 1), ("VM", 1)], None));
let ps_list: Vec<(&str, &str, &[(&str, u64)], Option<u32>)> = ps_ops.iter().map(|(n, e, f, l)| (*n, *e, f.as_slice(), *l)).collect();
let ps_code = prog(&ps_list);
let psi = PsInterface {
inputs: vec![el("SV_Position", 0, 1, 3, 0, 0xF), el("COLOR", 0, 0, 3, 1, 0xF)],
outputs: vec![el("SV_Target", 0, 64, 3, 0, 0xF)],
input_ena: 0x302,
attrs: None,
};
let outputs = vsi.outputs.clone();
let vt = translate(&vs_code, &Options { mode: Mode::Vertex(vsi), wave64: true, ..Default::default() }).unwrap();
let pt = translate(&ps_code, &Options { mode: Mode::Pixel(psi), wave64: true, ..Default::default() }).unwrap();
assert!(vt.complete() && pt.complete(), "{:?} {:?}", vt.unsupported, pt.unsupported);
let vs = super::dxc::compile(&vt.hlsl, "main", "vs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", vt.hlsl));
let ps = super::dxc::compile(&pt.hlsl, "main", "ps_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{}", pt.hlsl));
let gs_hlsl = super::emit::rect_list_gs(&outputs).unwrap();
let gs = super::dxc::compile(&gs_hlsl, "main", "gs_6_6", &[]).unwrap_or_else(|e| panic!("{e}\n{gs_hlsl}"));
let layout = [
runner::VertexElement { semantic: "POSITION", index: 0, format: DXGI_FORMAT_R32G32B32A32_FLOAT, offset: 0 },
runner::VertexElement { semantic: "COLOR", index: 0, format: DXGI_FORMAT_R32G32B32A32_FLOAT, offset: 16 },
];
// a vertex at NDC (x, y) with clip w: position (x·w, y·w, 0, w), COLOR (x, y, 0, 1)
let verts = |ps: &[[f32; 3]]| -> Vec<f32> { ps.iter().flat_map(|&[x, y, w]| [x * w, y * w, 0.0, w, x, y, 0.0, 1.0]).collect() };
let (n, clear) = (16usize, [0.0f32, 0.0, 1.0, 0.5]);
let ndc = |x: usize, y: usize| ((x as f32 + 0.5) / 8.0 - 1.0, 1.0 - (y as f32 + 0.5) / 8.0);
let run = |v: &[f32], with_gs: bool| runner::draw_gs(&vs, with_gs.then_some(gs.as_slice()), &ps, &layout, v, 32, &[], &[], n as u32, clear).unwrap();
let (x1, x2, y1, y2) = (-0.5f32, 0.5, -0.5, 0.5);
for (name, corners) in [
("corner v0 (radeonsi)", [[x1, y1], [x1, y2], [x2, y1]]),
("corner v1 (r600 EXA)", [[x1, y1], [x1, y2], [x2, y2]]),
("corner v2", [[x1, y2], [x2, y1], [x1, y1]]),
] {
let v = verts(&corners.map(|[x, y]| [x, y, 1.0]));
let px = run(&v, true);
for y in 0..n {
for x in 0..n {
let (fx, fy) = ndc(x, y);
let want = if fx > x1 && fx < x2 && fy > y1 && fy < y2 { [fx, fy, 0.0, 1.0] } else { clear };
let got = px[y * n + x];
assert!(got.iter().zip(want).all(|(a, b)| (a - b).abs() < 1e-5), "{name}: pixel ({x},{y}) = {got:?}, expected {want:?}");
}
}
// the negative control: as a triangle list only part of the rectangle is drawn
let tri = run(&v, false);
let missing = (0..n * n).filter(|&i| px[i] != clear && tri[i] == clear).count();
assert!(missing >= 16, "{name}: without the GS {missing} of the rectangle's pixels stay clear");
}
// left as the triangle they make: not three rectangle corners, and corners with unequal w
for (name, v) in [
("not a rectangle", verts(&[[-0.5, -0.5, 1.0], [0.25, 0.5, 1.0], [0.5, -0.25, 1.0]])),
("unequal w", verts(&[[x1, y1, 1.0], [x1, y2, 2.0], [x2, y1, 1.0]])),
] {
let (with, without) = (run(&v, true), run(&v, false));
assert!(without.iter().any(|p| *p != clear), "{name}: the triangle draws");
assert!(with.iter().zip(&without).all(|(a, b)| a.iter().zip(b).all(|(p, q)| (p - q).abs() < 1e-5)), "{name}: the GS changed the image");
}
}

/// One instruction (programs built in loops).
fn ins(name: &str, enc: &str, fields: &[(&str, u64)], lit: Option<u32>) -> Vec<u8> {
encode(name, enc, fields, lit).unwrap_or_else(|x| panic!("{name}: {x}"))
Expand Down
21 changes: 21 additions & 0 deletions crates/xcl/src/hle/d3d12x/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ pub(super) unsafe extern "system" fn execute_indirect(this: *mut c_void, sig: us
/// is kept (a packed colour), any other is taken as a float. Vertices a shader makes from the
/// vertex index alone (no vertex buffer) are not expanded.
unsafe fn draw_rects(this: *mut c_void, list: &ID3D12GraphicsCommandList, vertices: u32, instances: u32, first_vertex: u32, first_instance: u32) -> bool {
if !cpu_rect_expansion(with(this, |s| s.pso)) {
return false;
}
let Some(vbs) = super::list_x::rect_list_state(this) else { return false };
let rects = (vertices / 3) as usize;
if vbs.is_empty() || rects == 0 || rects > 4096 {
Expand Down Expand Up @@ -302,6 +305,13 @@ unsafe fn draw_rects(this: *mut c_void, list: &ID3D12GraphicsCommandList, vertic
true
}

/// Whether a rect list drawn with the bound pipeline `pso` is expanded on the CPU (`draw_rects`):
/// not with the rect list GS (`real::has_rect_list_gs`), which completes each rect itself – both
/// would draw every rect twice (each CPU half is three corners of the rect).
fn cpu_rect_expansion(pso: usize) -> bool {
!super::real::has_rect_list_gs(super::pso_async::resolve(pso))
}

/// #12 DrawInstanced
pub(super) unsafe extern "system" fn draw_instanced(this: *mut c_void, vertices: u32, instances: u32, first_vertex: u32, first_instance: u32) {
DRAW_ARGS.with(|d| d.set((false, vertices, instances, first_vertex, 0)));
Expand Down Expand Up @@ -877,6 +887,17 @@ mod tests {
use super::*;
use std::sync::atomic::AtomicUsize;

/// A pipeline with the rect list GS draws its rect lists whole: draw_rects leaves them alone.
#[test]
fn rect_lists_with_the_rect_list_gs_are_not_expanded_on_the_cpu() {
let (with_gs, without) = (0x7E57_4000usize, 0x7E57_5000usize);
real::register_rect_list_gs_for_test(with_gs);
assert!(!cpu_rect_expansion(with_gs));
assert!(cpu_rect_expansion(without) && cpu_rect_expansion(0));
real::forget_pso_for_test(with_gs);
assert!(cpu_rect_expansion(with_gs));
}

/// Minimal RTS0 v2 root signature blob with one 4-constant parameter.
fn test_rts0_blob() -> Vec<u8> {
let words: [u32; 12] = [
Expand Down
Loading
Loading