upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTheHoracio <TheHoracio@users.noreply.github.com>2026-11-22 20:05:12 +0100
committerTheHoracio <TheHoracio@users.noreply.github.com>2026-11-22 20:05:12 +0100
commitbbcbe09371ffa1550e941e4ffd43e7ac020162f1 (patch)
treef46611cf9866d5a5b58091df97f8db5cf987533f /docs
parentc462f27ee7d5360b07e6c98dd09de0e96e42073a (diff)
sampler_lod_probe docs: the half-level gap is the Vulkan spec's rule, not the AMD host's
Through vk_sampler_test (the runtime's vulkan_sampler(decode(S#)) path) an S# LOD_BIAS of +0.5 on image_sample_lz reads level 1, as the console does, on a gfx1036 and an RX 7800 XT (AMD 26.10.1). So the AMD Vulkan driver rounds like the hardware; only a host that follows the spec's ceil(lambda + 0.5) - 1 reads a level lower. Other hosts are not measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index b6dd887d9..fadd6f6c8 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -847,8 +847,12 @@ and any validation error fails them.
847 - **MIP_FILTER none with the T#'s MIN_LOD.** The level is the base raised to floor(MIN_LOD): 2.5 reads level 2, 847 - **MIP_FILTER none with the T#'s MIN_LOD.** The level is the base raised to floor(MIN_LOD): 2.5 reads level 2,
848 the same as Vulkan. 848 the same as Vulkan.
849 849
850 So the runtime's Vulkan sampler and view read one level lower than the console on 8 of the 43 rows: an exact 850 So a host whose Vulkan driver follows the spec's nearest rule reads one level lower than the console on 8 of
851 half-level LOD, or a fractional ResourceMinLODClamp. LOD 1.49 reads level 1 on both. 851 the 43 rows: an exact half-level LOD, or a fractional ResourceMinLODClamp. LOD 1.49 reads level 1 on both. The
852 AMD driver does not follow it. Through the runtime's own path (`vk_sampler_test`, `vulkan_sampler(decode(S#))`),
853 an S# LOD_BIAS of +0.5 on `image_sample_lz` reads level 1, like the console, on the same gfx1036 and on an RX 7800
854 XT (both AMD 26.10.1). So on AMD hosts the S# case matches. Other hosts (NVIDIA, Intel, Mesa) are not measured
855 here.
852 - **Layout.** gfx1036 lays a linear mip chain out smallest level first, each row padded to 256 bytes. Levels 6..0 856 - **Layout.** gfx1036 lays a linear mip chain out smallest level first, each row padded to 256 bytes. Levels 6..0
853 of the 64-wide R32 chain start at dwords 0, 64, 192, 448, 960, 1984 and 4032. 857 of the 64-wide R32 chain start at dwords 0, 64, 192, 448, 960, 1984 and 4032.
854 858