Android: NaN-free float color outputs against the top-of-screen flicker blocks; TBDR clears; mprotect ENOMEM fix
- Shader translator (Vulkan pack only): pixel shaders store 0 instead of NaN in float color outputs (XLATE_NAN_OUT=0 disables). ps_foliage occasionally writes NaN pixels on Adreno; the downsample / bloom chain spread them into blocks. Float min/max/clamp use NMin/NMax/NClamp like Maxwell FMNMX / .SAT (XLATE_NAN_MINMAX=0 disables). - Vulkan backend: pending full clears become loadOp=CLEAR (DM_NVN_TBDR=0 disables); TBDR / store profile stats; per-batch command pools and query reset. - Trace diagnostics: NaN / Inf scan of float targets (DM_VK_NANSCAN_PS, DM_VK_NANSCAN_BOX), burst readback of the top rows (DM_VK_BURST*). - nvn_dirty: protection unit max(pagesize, 16K) to stay under the VMA limit (mprotect ENOMEM crash); log the process mapping count. - Upload-MB stat underflow fix; t_vk_perf test fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3c25cd89fc
commit
1ceeeaba77
@@ -100,6 +100,12 @@ static class SwshXlate
|
||||
// 作业 reduced = true:放宽精度——翻译器只给强制精确的运算打 NoContraction(缺省全部打:保持 Maxwell 分开舍入的逐位结果,代价是 MSL 里大量禁优化的 spvFMul 等)
|
||||
// Job reduced = true: relaxed precision - the translator marks NoContraction only on operations that must be exact (the default marks all: keeps the bit-exact results of Maxwell's separate rounding, at the cost of many optimization-disabled spvFMul etc. in the MSL)
|
||||
public bool QueryHostReducedPrecision() => _job["reduced"] is JsonNode n && (bool)n;
|
||||
// 作业 nan_minmax = true:浮点 min / max / clamp 出 NMin / NMax / NClamp(Maxwell FMNMX 与 .SAT 遇 NaN 取另一操作数;Adreno 上 FMax / FClamp 会把 NaN 传下去,bloom 链把它扩成黑块)
|
||||
// Job nan_minmax = true: float min / max / clamp emit NMin / NMax / NClamp (Maxwell FMNMX and .SAT take the other operand on NaN; on Adreno FMax / FClamp pass the NaN on, and the bloom chain spreads it into a black block)
|
||||
public bool QueryHostNanSafeMinMax() => _job["nan_minmax"] is JsonNode n && (bool)n;
|
||||
// 作业 nan_out = true:像素着色器写浮点颜色输出时 NaN 换成 0(Adreno 上 foliage 等偶尔算出 NaN 像素,降采样 / bloom 链把它扩成闪块)
|
||||
// Job nan_out = true: pixel shaders store 0 instead of NaN in float color outputs (on Adreno foliage etc. occasionally produce NaN pixels, which downsample / bloom chains spread into flickering blocks)
|
||||
public bool QueryHostNanFreeColorOutput() => _job["nan_out"] is JsonNode n && (bool)n;
|
||||
}
|
||||
|
||||
static int Main(string[] args)
|
||||
|
||||
Reference in New Issue
Block a user