upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorJustDown <121580190+JustDownTV@users.noreply.github.com>2026-11-22 22:39:37 +0100
committerJustDown <121580190+JustDownTV@users.noreply.github.com>2026-11-22 22:39:37 +0100
commit654e666416374d16ffb96ff3e2be918657efd528 (patch)
treef70ebc22554881e5cb5f1729fc7e581cca50bde9 /runtime/test/queue_proxy_test.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
d3d12: D24 depth stored as D32 gets D24 depth bias and 24-bit depth in draws (D3D-309)
On a GPU without a D24 attachment (AMD) the layer stores D24_UNORM_S8_UINT as D32_SFLOAT_S8_UINT. Draws then broke two D3D rules: the integer DepthBias was scaled by the primitive's exponent instead of D24 units, and fragment depth was not quantised like the clears, so an EQUAL test at a cleared value failed. Single-sampled graphics pipelines with depth enabled on such a target now have their pixel stage write FragDepth = quantise(z + D3D bias), with the bias in D24 units and the quantisation of depth24_convert.comp; the rasterizer's own bias is off for them. A pipeline without a pixel shader, with or without a geometry shader, gets a built-in one. d3d12_depth24_draw_test covers the finding's cases, stored depth with constant and slope-scaled bias, a shader that writes depth, and a VS + GS pipeline without a pixel shader. Co-authored-by: UlteriorMotive00 <132296248+UlteriorMotive00@users.noreply.github.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions