| Area | Implemented behavior | Synthetic evidence |
|---|---|---|
| Partial stencil clears | A masked stencil draw preserves unselected bits. Depth clears, scissors, array layers and zero masks retain their separate effects. | Exact D24S8/D32FS8 depth/stencil aspect copies on both GPUs. Undefined X8 padding is excluded. |
| Copy transforms | GPU paths support valid X/Y/Z mirrors, nearest scaling and supported linear image blits. Logical bounds exclude GOB padding. Ordinary copies retain their existing DMA path. | Buffer/image copies, layer offsets, transform combinations, nearest scaling, linear filtering and untouched padding. |
| Fixed state | Record/replay alpha reference, point size, depth bounds and default tessellation levels. Setters snapshot their inputs. | Frontend state assertions and exact RGBA32F point, alpha-test and depth-bound output. |
| 3D engine fixed state | The 3D engine's own draws (deko3d's, a game's own driver's) take the point size from SET_POINT_SIZE (0x546) and the depth bounds test from SET_DEPTH_BOUNDS_TEST (0x66F) and its bounds (0x3E7, 0x3E8), as the NVN path's take theirs. A viewport coordinate swizzle other than NegativeY, which the viewport's sign applies, is applied to the position by the last stage before rasterization, before clipping. | draw_state_mx and exact RGBA32F points of side 4, 1 and 8, depth bounds tested against the stored depth, not the fragment's, and a swap of x and y and swaps with a component negated, drawn through the 3D engine. |
| Graphics storage images | Vertex, tessellation control/evaluation, geometry and fragment stages have their own image and buffer-image bindings and integer format variants. Graphics layouts share the whole-pipeline descriptor budget. Compute retains an independent layout and its full per-stage budget. | Frontend bank tests, generated modules and per-stage load/store fixtures. |
| Indexed multisample textures | Dynamic handle tables retain multisample image types and explicit sample operands for 2D and 2D-array textures. Integer and floating-point view types stay distinct. | Six compiler fixtures and a two-texture, four-sample GPU fetch fixture. |
| Texture minimum LOD | Supported TEX/TEX.B LC forms retain the packed layer, coordinate order and unsigned minimum LOD with eight fractional bits. Fragment samples use MinLod; other stages clamp their explicit level. | shader_texture_limits and vulkan_texture_limits.inc, including array coordinates and bias. |
| Texture gradients and offsets | 3D and cube-array gradient samples retain dimensions, faces and layers. With maintenance8, varying texel offsets use one native Grad|Offset sample. Older devices use exact constant-offset dispatch with known-bit pruning and bounded radix selections. | Fragment/compute operand oracles, uniform changes, minified texels, signed offset extrema, exhaustive fallback routing checks and a separate minified cube-edge probe. |
| Half texture results | Texture and half-arithmetic result packing uses exact nearest-even conversion. Native float16 conversion requires explicit host rounding, denormal and signed-zero controls; other devices use integer significand rounding. | 128 real R32F TEXS/TLDS/TLD4S/HADD2 cases, plus independent conversion checks. |
| Cross-stage image aliases | A draw uses compatible sampled/storage layouts across all stages and retains its complete write access until the next dependency. Target snapshots finish before the programmable blend transition. | TES stores with FS sampling and TES/GS target snapshots across consecutive draws, without host waits. |
| Shader code reads | Coherence requests grow from a short prefix instead of landing unrelated GPU results in a fixed 128 KiB window. BRX retains the full-window path because its proof inspects later branches. | Nine hash/length differential cases and a regression that rejects a forced full-window GPU wait. |
| DrawTexture | A generated vertex/fragment pair rasterizes the rectangle with the bound sampler, component masks, blending and alpha tests. Depth/stencil tests and conservative rasterization follow the API's DrawTexture rules. | Dedicated sampler, edge clamp, blend, alpha-test, write-mask and MSAA fixtures. |
| Evaluation-only tessellation | A generated control shader forwards patch positions, generic attributes, point size and clip distances, then writes fixed levels. Clip interfaces use eight elements across stages. Earlier layer/viewport outputs are inert before evaluation. | Selected input vertices, fixed levels, point/clip payloads, opposite producer/consumer clip indices, interface bounds and generated-module fixtures. |
| Transform feedback | Save, pause, resume and restore GPU counter controls per owner. A GPU shader converts captured bytes and stride into indirect draw arguments. | Exact counter data, owner isolation, control padding and a capture/redraw round trip. No CPU counter readback in the runtime. |
| Advanced blending | Exact ordinary-blend reductions, native advanced operations, fragment interlock and source capture followed by an ordered per-primitive resolve. A guarded D32F/S8 GPU shadow also retains late tests for eligible whole draws. Each path has separate device and draw restrictions, described below. | Independent equation references, capability checks, overlap and late depth/stencil fixtures, discarded fragments and guest atomic side effects. |
| Coverage modulation | Native mixed-sample coverage supports NONE/RGB/ALPHA/RGBA and custom coefficients. A guarded portable path reduces invariant sources to one color sample per target across up to seven targets, with optional raster-sample depth/stencil. Equal raster/color counts use a shader multiplier. | Pixel fixtures cover masks, custom coefficients, overlapping primitive blending, per-target blend/masks/conversion, depth/stencil and table changes. Native mixed-sample checks retain explicit capability skips. |
| Custom sample positions | Exact sample grids, sixteenth-pixel coordinates and lower-left grid phase enter the pipeline key. Repeated grids reduce only when their patterns are identical. Depth images retain compatible sample-location state. | CPU keys and GPU custom-raster fixtures, with explicit device limits. |
| Sample masks and alpha coverage | Guest SampleMask output retains its real output-register value across translation and cache reuse. Software coverage selects a constant prefix or a deterministic spatial dither pattern, intersected with guest and fixed masks. Independent software alpha-to-one follows original-alpha coverage/tests. | Generated register/routing proofs and C1/MSAA threshold, NaN, mask, dither and alpha-to-one fixtures. |
| Coverage to color | Native coverage output or ordered source capture writes signed/unsigned single-component integer masks. Capture unions surviving samples before writing each surviving sample. A guarded C1 D32F/S8 shadow path retains native integer output only for fragments that pass late tests. | Per-sample depth rejection, signed/unsigned masks, late-test ordering and forced split-invocation fixtures. |
| Graphics descriptors | Descriptor heaps use compact resource/sampler index runs and frame-owned encodings. Descriptor buffers and sets remain fallback paths. Repeated encodings and complete sets can be reused without changing live bytes. | Layout/limit oracles, registry lifetime checks, rendered backend transitions and separate submission measurements. |
| Presentation rotation | A GPU quad handles 90-degree rotation together with crop and flip coordinates. | Presentation rotation, crop and flip fixtures. |
| Linux placed-memory aliases | When a DMA buffer rejects a nonzero mmap offset, map the whole allocation at offset zero and move the requested subrange with mremap. This preserves shared backing without a CPU copy. | POSIX mapping, concurrent hole reuse and placed-view coherence fixtures. |
The fixed-state payloads share one opcode and remain outside the serialized draw-state ABI. Per-draw state only copies the enabled fixed-state arrays. Pipeline keys separate host capabilities and effective coverage state. Generated tessellation modules stay cached by patch size and interface mask for repeated draws. The persistent shader file owns their modules and retains a small source description for regeneration after a cache rebuild. Generated DrawTexture modules also use the shader cache. Program metadata tables grow instead of crashing after 1,024 shader updates. Their shared binary lookup retains immutable declarations and capture layouts for old command recordings. Insertions also handle shader threads that finish out of serial order. A 1,153-update regression checks growth, every saved serial and old/new recordings.
Made from docs/history/gpu-rendering-audit.md at 69237645142c. GPL-3.0-or-later.