Repository navigation
d3d12: preserve float DepthBias in RASTERIZER1 and RASTERIZER2 streams - #806
kotekompotek wants to merge 1 commit into
Conversation
KernelSmoker
left a comment
There was a problem hiding this comment.
Linux review of the stream-to-rasterizer path only. The parser retains the original float for RASTERIZER1/2, and create_graphics uses it for both the D24 fragment-bias conversion and Vulkan rasterizer bias; legacy/base rasterizer descriptions still use their integer field. I found no issue in those paths by inspection.
I could not run d3d12_bundle_test on this Bazzite host: CMake builds that target only for Windows, and the local Vulkan device creation currently fails. The Windows hosted check is still queued, so this is not a test-pass report.
e8b8ca5 to
278cc0f
Compare
|
I was able to run The new RASTERIZER2 test fails at line 802 because the pipeline stream omits Additionally, the new test has no depth target or depth-bias assertion, so it wouldn't catch a regression to integer truncation even after fixing pipeline creation. Independent depth-buffer readback probes confirmed that fractional and negative biases (+0.5, -0.5, -2.5) are preserved across D16_UNORM, D24_UNORM_S8_UINT and D32_FLOAT on HEAD, whereas baseline truncates them. No new Vulkan validation errors observed. The runtime implementation looks good. Could the regression test include the topology subobject and verify biased depth readback or depth-test behavior? |
Independent testing resultsReproduced the RASTERIZER2 pipeline creation failure Tested revisions
Test environments
Test configuration
Both revisions compiled successfully on both systems. CTest resultsInitial attempt:
Failure reproducibilityTwo additional attempts were performed on both systems. Successful BASE checkpoints were reused, while HEAD
Actual executions, excluding reused checkpoints:
The RASTERIZER2 pipeline creation failureAll failing executions reported the same diagnostic: |
278cc0f to
dbc475a
Compare
|
@Timon360SB @moffington Thanks for the detailed testing and catches — updated in
Locally verified:
|
dbc475a to
ab87f83
Compare
|
Rebased onto current Verified locally on Windows / MSVC Debug (GTX 1050, driver 582.28): AI-assisted. |
|
Note on the red jobs at this head: both failures are baseline, not this diff — |
|
@kotekompotek heads-up from RT-STATE-AUDIT-PIPELINE (issue #2464, part B): this PR is listed there for the fractional RASTERIZER1/2 depth bias ( AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: D3D-RASTERIZER-FLOAT-BIAS (#14 (comment))
What and why
main.FLOAT DepthBiasinRASTERIZER1andRASTERIZER2pipeline streams (runtime/shims/d3d12_vulkan_device.cppandruntime/src/depth24_fragment.h).runtime/test/d3d12_bundle_test.cpp(Vertexinput layout order/formats,SubTopologytriangle topology,CullMode = D3D12_CULL_MODE_NONE,64x64DXGI_FORMAT_D24_UNORM_S8_UINTdepth buffer +GREATERdepth test comparing1.5fvs0.0fforRASTERIZER1/RASTERIZER2), addeddepth24_bias_constantunit assertions inruntime/test/d3d12_d24_support_test.cpp, and synceddocs/d3d12_vulkan.md.Tested
d3d12_com_testandd3d12_d24_support_testand rand3d12_com&d3d12_d24_support(2/2 Passedon NVIDIA GeForce GTX 1050).tests/test_ctest_registration.py(4/4 OK).d3d12_bundle_testwas not compiled locally becauseglslangValidatoris absent in this environment.GPUs tested: NVIDIA GeForce GTX 1050 (driver 582.28, Windows)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.