diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-29 02:32:29 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-29 06:36:03 -0500 |
| commit | b620db492fce30f5d4084017ec91797ebcad516c (patch) | |
| tree | 0977b996b7190ce2c77445df3e7946de18bb7c45 /runtime/test/code_hooks_test.cpp | |
| parent | edcc7f3dcab2b0c6b10eb5f858a309cbb7b66c4c (diff) | |
rendering(r6b): use 16-byte descriptor stride for D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
Xbox Series shaders (10,584 shaders / 39.9% of the corpus) index directly-indexed sampler heaps at 16-byte stride (4-dword hardware S#). Previously the runtime hardcoded 32-byte stride for SAMPLER heaps, so every odd sampler slot (0x430, 0x4b0, etc.) read zeroed upper bytes and fell back to fallback_sampler_ (NEAREST + CLAMP_TO_EDGE -> 1D clamped road stripes and nearest-neighbor textures), while even slots read wrong sampler N/2.
Introduce sampler_descriptor_size = 16 and descriptor_increment(type) across GetDescriptorHandleIncrementSize, CreateSampler/CreateSampler2, DescriptorHeap, CopyDescriptors*, scan_title_table, materialize_table, console_heap_range_plausible, local_write_through/copy_title_slots/pull_title_descriptors/local_mirror_table, proxy_create_sampler_x, and d3d12_com.cpp; add packed 16-byte even/odd sampler regression tests.
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions