Repository navigation
d3d12_vulkan.md: graphics PSOs with MSAA are built; set-0 bindings need only a bindless set 0 - #5271
Pierre-Kookis wants to merge 1 commit into
Conversation
…ed only a bindless set 0 The refusal list still named MSAA and set-0 bindings. MSAA PSOs set rasterizationSamples (d3d12_msaa_draw_test draws with them), and set-0 bindings are refused only on a device without the bindless set 0 (d3d12_m2_textured_test creates such PSOs).
|
Independent CPU verification on Linux (Python 3.13.5, head
Looks good to merge. |
|
Reviewed
Gap: the centre sample pattern is still refused with a log. Two more notes:
|
|
Read 9c11d8e: pass with notes The changed line is correct (@SweatierKey covered the code). The same file still has stale text that contradicts it:
AI-assisted (Claude Code). |
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
Independent verification: PASS (code review + documentation test suite).
Checked against current codebase at 3faac557 on Windows 11 (Python 3.12.10):
- MSAA handling: Confirmed in
runtime/shims/d3d12_vulkan_device.cpp:2982-2983:
multisample.rasterizationSamples = VkSampleCountFlagBits(samples);
MSAA PSOs are constructed usingrasterizationSamplesand exercised inruntime/test/d3d12_msaa_draw_test.cpp. It is not unconditionally refused. - Set-0 bindings: Confirmed in
runtime/shims/d3d12_vulkan_device.cpp:2795-2800:
Set-0 bindings are only refused withE_NOTIMPLwhen!device_.bindless; otherwise they are permitted and register literal samplers (exercised inruntime/test/d3d12_m2_textured_test.cpp). - Doc tests:
python -I -m unittest discover -s tests -p "test_docs*.py": 30/30 passed.
git diff --check: clean.
AI-assisted.
Kam471
left a comment
There was a problem hiding this comment.
Reviewed 9c11d8e (one-line docs change vs 3faac55).
Checked the claim against the code: runtime/shims/d3d12_vulkan_device.cpp:2983 sets multisample.rasterizationSamples from the PSO's sample count (4x PSO drawn in runtime/test/d3d12_msaa_draw_test.cpp), and :2795-2801 refuses set-0 bindings only when device_.bindless is null (E_NOTIMPL with log); otherwise the layout uses the bindless set 0 (:3143-3147). Set-0 SRVs are created in runtime/test/d3d12_m2_textured_test.cpp:284-286.
Tested:
python -I -m unittest discover -s tests -p "test_docs*.py"-> Ran 30 tests in 21.5 s, OK.python -I -m pytest tests/test_docs_design_rows.py -q-> 4 passed, 6 subtests.git diff --check-> clean.
Verdict: accurate, doc-only; no blockers.
Claimed in the coordination issue: #5256.
Problem
The graphics-PSO refusal list in
docs/d3d12_vulkan.md:751-752(at3faac557) still names MSAA and set-0 bindings:rasterizationSamplescomes from the sample count (runtime/shims/d3d12_vulkan_device.cpp:2983), andruntime/test/d3d12_msaa_draw_test.cppdraws with a 4x PSO.:2795-2800,E_NOTIMPLwith a log); otherwise the pipeline uses it, asruntime/test/d3d12_m2_textured_test.cppdoes.Change
Doc only: MSAA is dropped from the list and the set-0 entry says when it applies.
Tested
python -I -m unittest discover -s tests -p "test_docs*.py": OK.AI-assisted (Claude Code + Codex; checked against the code). No game files.