fix(gpu): raw buffer views stay inside their buffer (VICTORY_RAW_VIEW_CLAMP, on; =0 restores)
raw_at / raw_uav_at: a range past the buffer's end is shortened to the whole dwords that fit; an unaligned start, or one with no whole dword left, becomes a null view. The meter line counts the cuts (past end, shortened, sub-dword, unaligned) for SRVs and UAVs. On by default; VICTORY_RAW_VIEW_CLAMP=0 gives the old descriptors. Original author: lichenlang89 (fxceless/victory-fork pull request 1266, dd5e8c9e). Ported by hand from CuteBooty/victory-8gb, same code and tests; the counters go into this tree's meter line in host.rs. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
c437b0594b
commit
aec85efb10
2 files changed
+216
-7
No files matched your search
@@ -9640,6 +9640,7 @@ impl Meter {
|
||||
per_frame(6) / 1e3
|
||||
);
|
||||
}
|
||||
let [raw_srv, raw_uav] = crate::descriptor::host::raw_view_counts();
|
||||
tracing::info!(
|
||||
"{fps:.1} fps, {ms:.1} ms/frame ({cpu:.1} preparing: copies {copy_ms:.1} ms \
|
||||
{copy_mb:.1} MB, textures {texture_ms:.1} ms {texture_mb:.1} MB; {gpu:.1} on the \
|
||||
@@ -9648,7 +9649,8 @@ impl Meter {
|
||||
{indirect:.0} indirect ({left_out:.0} of all these left out on purpose: \
|
||||
ray-tracing passes without the structure builder); heap buffers {picked:.1} passes {picked_ms:.1} ms; texture slots written so far: {placed} placed, {objects} of objects; \
|
||||
textures picked by index: {picked_textures} uploaded so far ({picked_mb} MB), \
|
||||
{picked_waiting} waiting, {picked_away} passed over unmapped; depth textures with unordered access: {du0} made, bound as depth {du1}x, cleared as depth {du2}x, unordered views refused {du3}x; buffer views left null as the host would refuse them: {refused}",
|
||||
{picked_waiting} waiting, {picked_away} passed over unmapped; depth textures with unordered access: {du0} made, bound as depth {du1}x, cleared as depth {du2}x, unordered views refused {du3}x; buffer views left null as the host would refuse them: {refused}; \
|
||||
raw view clamp (past end, shortened, sub-dword, unaligned) since start: SRV {raw_srv:?}, UAV {raw_uav:?}",
|
||||
picked_textures = crate::draw::HEAP_TEXTURES.load(Ordering::Relaxed),
|
||||
picked_mb = crate::draw::HEAP_TEXTURE_BYTES.load(Ordering::Relaxed) >> 20,
|
||||
picked_waiting = crate::draw::HEAP_TEXTURES_WAITING.load(Ordering::Relaxed),
|
||||
|
||||
Reference in new issue
Block a user