Review findings from shdann's Windows run of the new console queue/list
work:
- d3d12_debug_markers (and every GPU harness compiled against the PC
headers) drove lists through the console-shaped proxy, so PC slots past
26 — including the PIX markers at 56-58, which have no console
counterpart — reached unrelated console methods or were dropped.
create_device_proxy gains console_lists: false hands the real
(PC-shaped) list back from CreateCommandList. The GPU tests pass false;
the title path keeps the console default.
- queue_proxy asserted E_NOTIMPL for the queue's console tail, but those
slots deliberately answer S_OK now — frame pacing flows through them.
The test's contract is updated; the fence tail stays refused.
- ChildProxy::queue_layout was a plain unsigned char read and written
from many threads; it is atomic like the device-wide detection it
caches.
xs_proxy_mock_test and loader_test pass under Wine; the modified test
objects compile clean under clang-cl. The GPU harnesses need a real
adapter — covered by shdann's Windows run.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
A shader that builds its S# from immediates (literal_samplers in the
translator index) names no heap slot, so nothing gave that S# a sampler
and a hash-table key: register_samplers (#1169) had no caller outside its
test. The shader's lookup found the fallback sampler and sampled with
the wrong filter and address modes.
ShaderLibrary now keeps each entry's literal_samplers, and
CreateGraphicsPipelineState / CreateComputePipelineState register those
of every stage that uses the bindless set.
Test: ps_m2_literal.asm (ps_m2 with the S# from s_mov literals) in
d3d12_m2_textured_test: no key for the words before its PSO, a sampler
index after it. Fails on main, passes here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With U in range, a POINT/CLAMP sampler, a POINT/WRAP one and the fallback sampler give the same pixels, so the
first pass cannot tell which sampler a draw used. The control adds 1 to U before image_sample and picks the sampler
per half through the sampler table: 4096 of 4096 pixels match the CPU prediction and 1536 differ from the plain pass.
Sampler control suggested and measured by @Vonsek in #1489.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pipelines (graphics and compute) whose translated shader declares set-0 bindings were refused. Their layout now
holds the device's bindless set 0 and replay binds it at every draw and dispatch. d3d12_m2_textured_test drives
heaps, SRVs, a POINT sampler, two root descriptor tables and DrawIndexedInstanced with a translated PS that
loads the T#/S# from the tables; 4096 of 4096 pixels match, and the descriptor hash table is checked.
d3d12_translated_draw_test is registered with ctest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>