VRAM: RT mask Grad / HistGrad as RG16F gradients + R32UI flags/timers (follow-up to #1433) #1665
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#1665
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
mRtMaskGradandmRtMaskHistGradare RGBA32F (32 B/px together): xy the view depth's d/dx, d/dy, z the caster flags, w two packed 12-bit timers. #1433 ruled out RGBA16F for the whole word because w needs 24-bit exact integers. This proposes splitting the word instead: RG16F gradients plus an R32UI word for the flags and timers.Saving
16 B/px at mask scale 1.0: 4K 127 MB, 1440p 56 MB. Default scale 0.5: 32 / 14 MB.
Why it is not a quick change
clean_rt_mask_common.glsl, the mask's plane-aware upsample and history acceptance) uses the gradients. fp16 gradients change which history samples pass the plane test at grazing angles and far depths. That is a quality A/B, not a refactor.[depth 0, depth 1, grad 0, grad 1]). EveryrtPackTimers/rtUnpackTimersreader changes.Proposed design
Grad -> RG16F (xy)plusGradW -> R32UI (z flags | w timers), and the same for the history slot. Readers takevec2gradients and auintword. A/B on grazing ground, far terrain and thin geometry under RT sun with the mask path (merged off).Risks