Measured against the game's driver

An earlier tree had a verify mode, which ran the game's own NVN driver beside the runtime's handlers on shadow objects, decoded its pushbuffer, and compared each draw. It went with the old Maxwell decoder. What it measured is below and in the comments that cite it, and what its first runs found is in the NVN investigation.

Texture storage answers

Games place textures in their pools by nvnTextureBuilderGetStorageSize, GetStorageAlignment, GetStorageClass and GetZCullStorageSize. nvn_tex_storage (gpu/nvn/nvn_tex.c) answers them with the rules read from two drivers' code (NVN 12.3 and 55.15, the same rules):

The layout (nvn_tex_layout) stays the texture's extent, which tests/nvn_tex_storage.c keeps inside the answered size over targets, formats, sizes, levels, samples and flags. The verify mode's storage sweep ran the driver's getters and nvn's on the same 7,986 builder states at the game's first query: sizes, alignments and ZCull areas agreed. The compression kinds agree too, over the swept formats: a compression kind has one value for no multisampling and one more at 2, 4 and 8 samples (depth: the base kind plus 0, 1, 2, 3; color: a table by element size). The 8-sample kinds and the formats outside the sweep are extrapolated from that pattern.


Made from docs/layers/gpu/nvn.md at 69237645142c. GPL-3.0-or-later.