nvn_storage_order=2 is the default. It defers each storage-order requirement until a dependent buffer use.
Mode 1 emits the required barriers at their command-stream points. Mode 0 retains conservative per-draw storage
dependencies for controlled comparisons or older command recordings. NVN permits draws to overlap until an explicit
ordering command. A writable storage view can cover the same buffer in many draws even when each draw writes a
different word. Treating that view alone as a dependency ended the render pass at each reuse. NVN graphics draws now use the command stream's execution and shader-data barriers for that
ordering. Barrier flags survive recording and command copies. Shader instruction invalidation remains separate.
Maxwell draws, compute bindings and transform feedback retain conservative write ordering. Read-only consumers, internal copies, submission boundaries and CPU readbacks keep their visibility and lifetime checks. Upstream fragment and texture barriers remain in the NVN command path. The descriptor-buffer setting retains its existing choice of whether those barriers can be omitted.
cmake --build build --target snx-test-vulkan
python3 tools/bench_nvn_draws.py --out /local/scratch/nvn-draw-search
The Python search checks descriptor sets and descriptor buffers, each with and without the recording thread. Every supported backend first runs the exact headless renderer checks. The fixture also checks a dependent GPU read and a read followed by an in-place overwrite, with no host wait between the operations. Then shuffled serial rounds compare the conservative, immediate explicit and deferred explicit ordering paths on identical synthetic draws. One vertex writes one distinct word per draw through overlapping storage views. The fixture checks every output byte and records render-pass counts. It warms pipelines before timing and includes GPU completion in each batch's time.
A candidate must run the requested backend and pass every output check. The explicit path must beat its matching conservative baseline by at least 3 percent in every paired round to qualify. Logs and the binary fingerprint go into the output folder. The result is specific to this workload and does not establish a game FPS improvement.
When the upstream ABI changes, build a matching AOT module before the gameplay comparison. A cold JIT-only boot that compiles guest code but submits no GPU work has not exercised draw barriers. A successful exit without presented frames does not verify the renderer.
Made from docs/history/gpu-hotpath-bench.md at 69237645142c. GPL-3.0-or-later.