upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 20:51:40 -0500
committerubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 20:51:40 -0500
commit1bb188cf52dd6617aa6c609319f65f48f9aa3115 (patch)
tree386dc1ebd5c0ecdb3cc456045de21409c9bca5fe /runtime/src/bcpack.cpp
parent605379ac6acbda0f5f530841c730041425eb1225 (diff)
d3d12: raw twins off 16 bytes kept with a bias the shaders add (LEONIDA_TWIN_BIAS)
A raw twin of a buffer view that does not begin on 16 bytes was to be moved there by move_raw. On an RX 6800 (driver 32.0.21030.2001) the CPU descriptor handles hold host pointers, not hardware descriptors, so move_raw never applied and every unaligned twin was made null: 165-726 a frame, and the programs that read them (the vegetation's data) read zeros. Now such a twin is made from the multiple of 16 before its view, and the bytes it begins early by go in bits 24..27 of the slot's stride word (VIEW_BIAS_MASK), which translated programs add to their offsets through the table of strides. In gameplay: 0 null and up to about 1,100 biased a frame. Whether the foliage flicker is gone is not yet confirmed by the player. LEONIDA_TWIN_BIAS=0 makes them null as before (programs add a bias of 0). Tests: twin_bias_tests (the bias read from the table of strides, accesses through twins beginning where the view does) and, in listed_raw_tests, the off-alignment readback with the bias and a dump of buffer view descriptor bytes.
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions