Scope and fixes

The regression fixtures use generated state, shaders and pixels without game data. They test command state, recorded-state lifetime and Vulkan output. Passing these fixtures does not establish full NVN compatibility.

CasePrevious behavior and correctionRegression coverage
Tessellation storage buffersTCS/TES table offsets were zero, so bindings were discarded. Use bank-0 tables 0x210 and 0x310.nvn_draw_banks, every graphics stage and storage slot
Patch control pointsSetPatchSize recorded nothing. Record and replay the size into the pipeline key.nvn_draw_banks, nvn_names
Empty instanced drawsZero instances became one instance. Direct zero/negative instance counts emit no draw. Indirect counts stay on the GPU.nvn_draw_banks, renderer callback counts
Compute uniform buffersDirect slot sizes retained unrounded byte counts. Round to 256 bytes while retaining the requested VPC descriptor size.nvn_draw_banks, boundary sizes through 65536
Indexed viewport stateOnly slot 0 received scissor/depth range changes. Record selected ranges and retain independent state for all 16 slots. Also correct fractional/negative clip metadata, with guest float endpoint precision.nvn_draw_banks, nvn_names, snapshot lifetime and command memory accounting
1D array copies and surfacesPublic Y/height were treated as texel rows. Normalize them to layer/count. Physical surfaces have one row and a separate layer count.nvn_copy_formats, nvn_names, real Vulkan output
Mirrored Z copiesMirror flags did not reverse slice order. Reverse buffer image order for B2T/T2B and source slices for T2T.nvn_copy_formats, real Vulkan output and untouched padding
Cube-face viewsA cube face viewed as 2D did not add the selected layer's pitch to its address. Apply the view layer offset independently of view target.nvn_descriptors, all six faces
Sampler defaultsMinification used nearest filtering with mipmaps and minimum LOD was negative. NVN defaults are linear without mipmaps and minimum LOD zero.nvn_names, getters and encoded descriptor bits

Cube-face fixtures check the descriptors. The Vulkan integration case directly reads all seven layers of an uploaded 1D-array image, then checks mirrored texture copies, view offsets, strided downloads and untouched padding. Reading the image independently prevents matching upload/download errors from cancelling out.


Made from docs/history/gpu-rendering-audit.md at 69237645142c. GPL-3.0-or-later.