Commit Graph

4696 Commits

Author SHA1 Message Date
eade9562c1 tests: raise kHeavyTurns in vk_gpu_profile_test and synchronize lock_timed holder in submit_frame_test 2026-11-29 16:17:10 -05:00
a84c41909b Merge pull request #1823 from Ch1mpleo/carry/old-9895
docs: document LEONIDA_RNG_SEED in runtime/README.md (OLD-9895)
2026-11-29 22:13:06 +01:00
1d0867c4a7 runtime: zero-init TargetView trailing padding and allow clamped 0 ms graphics interval in vk_gpu_profile_test 2026-11-29 15:27:45 -05:00
cfd12b24fe d3d12: default descriptor table layout to tagged when no shader library modules are loaded 2026-11-29 14:26:37 -05:00
8f7101df63 Merge pull request #1179 from MalexAson/fix/srgb-rtv-clear-encode
vulkan_replay: sRGB render-target clears are encoded in the layer, as WARP encodes them (D3D-CLEAR-SRGB-ENCODE)
2026-11-29 20:00:27 +01:00
947c54abac Merge pull request #1164 from lixonik/d3d-sparse-image-queue-family
d3d12: choose sparse-capable queues for sparse textures (D3D-SPARSE-IMAGE-QUEUE-FAMILY)
2026-11-29 20:00:18 +01:00
ef31dc92c3 Merge pull request #2027 from abnalstlll-byte/feat/rt-xs-alloc-size-guards-and-tests
runtime: guard align_up_saturating against zero alignment and add unit tests (RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS)
2026-11-29 19:28:53 +01:00
aacc89a1c3 Merge pull request #1395 from Diegobecker07/old-9961-skip-asserts
runtime: LEONIDA_SKIP_ASSERTS steps over guest asserts without a trace (OLD-9961, RT-526)
2026-11-29 19:27:49 +01:00
8db8335d23 tests/ci: fix llvmpipe skip on cs_w64x_dynamic_r32_uint, Set 0 binding 29 counts, and D16S8 table row 2026-11-29 12:59:52 -05:00
de1694c31a test: wait for cycle-release gate fence advance in xs_proxy_mock_test 2026-11-29 12:53:03 -05:00
d78ac84ad8 d3d12: the typeless view-format checks apply to unordered-access views too
Main routes UAVs through image_descriptor (storage); the PR's test expects a
UAV of a typeless texture without a view format to stay a null descriptor,
as D3D12 refuses it.

Co-authored-by: justr4mzi <243612488+justr4mzi@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:44:49 +01:00
eff40832ef Merge remote-tracking branch 'refs/remotes/mandy/main' into fix/rendering-correctness
# Conflicts:
#	runtime/shims/d3d12_com.cpp
#	runtime/shims/d3d12_vulkan_device.cpp
#	runtime/src/command_list.h
#	runtime/src/vulkan_replay.h
#	runtime/test/gfx10_descriptors_test.cpp
2026-11-29 11:51:06 -05:00
90c54a3278 Merge origin/main into carry/pr-220
runtime/shims/d3d12_vulkan_device.cpp: main made image_descriptor serve
unordered-access views too (storage), added the title texture registry
beside it and moved the buffer SRV encoding into write_buffer_srv. Main's
code is kept and the PR's checks are applied to shader-resource views only
(!storage): the component mapping and ResourceMinLODClamp at the start, the
typeless view format checks before the format path, the mip and layer
range checks after main's layer bounds; and the buffer SRV mapping check
before CreateShaderResourceView calls write_buffer_srv.

Co-authored-by: justr4mzi <243612488+justr4mzi@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:43:47 +01:00
223df1094d Merge origin/main into carry/pr-279
runtime/test/vk_test_device.h: the PR's filterMinmaxImageComponentMapping
query and main's shaderOutputViewportIndex feature were added at the same
place; both are kept.

Co-authored-by: Zilumz1 <221744236+Zilumz1@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:42:04 +01:00
f051ae5183 d3d12/tests: fix Windows MSVC build, CopyMemory collision, copy parity guard, and --no-ftz32 probe 2026-11-29 11:41:49 -05:00
ac93aac0d4 d3d12: gate write_tsharp_index_words on in_known_heap during stream publish 2026-11-29 11:27:30 -05:00
1d3da5ebc7 Merge pull request #959 from Kadamitas/fix/gfx10-sampler-z-filter
gfx10: preserve the separate volume filter in sampler words
2026-11-29 16:46:15 +01:00
0cedc3a625 Merge pull request #1918 from kawaii-shakal/fault-address-owner
d3d12: the device-fault report names what the process and the driver had at each fault address (RT-FAULT-ADDRESS-OWNER)
2026-11-29 16:45:59 +01:00
cec4182c2d Merge pull request #1424 from Anonymous78e/ctest/xdxr-check-timeout
runtime: xdxr_build_check gets its own ctest TIMEOUT (CTEST-XDXR-CHECK-TIMEOUT)
2026-11-29 16:45:32 +01:00
ae2ef0c5cf Merge pull request #1325 from delysidemanYT1/gpu-check-subprocess-output
Shader checks: preserve subprocess diagnostics and validate probe output
2026-11-29 16:45:04 +01:00
006e9f435f Merge pull request #1146 from Christopher-Sundeby/fix/file-system-test-c4456
file_system_test: build without the C4456 shadow warning (TEST-FS-C4456)
2026-11-29 16:44:51 +01:00
bfb54b8759 Merge pull request #778 from kawaii-shakal/d3d-sample-positions
d3d12: replay programmable sample positions (D3D-SAMPLE-POSITIONS)
2026-11-29 16:44:17 +01:00
f72a68bc0b Merge pull request #2089 from KushGene/fix/vk-sampler-lod-order-and-deriv-adjust
gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST)
2026-11-29 16:43:52 +01:00
40b88ff7fc Merge pull request #2051 from alexandersato0830/codex/spirv-word-endianness
Normalize SPIR-V file byte order (SPIRV-WORDS-ENDIAN)
2026-11-29 16:43:39 +01:00
950259cd40 Merge pull request #1931 from kawaii-shakal/io-trace
dstorage, fs: LEONIDA_IO_TRACE logs every read the title asks for, flushed as it goes (RT-IO-TRACE)
2026-11-29 16:43:26 +01:00
15701e412d Merge pull request #1894 from ecox982745/ecox/title-staged-per-format
d3d12: stage title textures when their format or usage rules out host copies
2026-11-29 16:43:14 +01:00
3580a9d308 Merge pull request #1831 from potatoe0100/carry/old-9966
gameinput: preserve controller transitions between polls (OLD-9966, carries #233)
2026-11-29 16:42:49 +01:00
38719cc36f Merge pull request #1775 from potatoe0100/carry/old-9773
OLD-9773: d3d12: refuse a pipeline whose shader needs VK_KHR_maintenance8 on a device without it
2026-11-29 16:42:29 +01:00
6024351682 Merge pull request #1739 from IlyassRS3/fix/descriptor-table-guards
runtime: guard DescriptorTable 9-way collision, read_slots width, and change-tracking OOM
2026-11-29 16:42:16 +01:00
daf8122003 Merge pull request #1681 from ImLele69/rt-alloc-no-rebar
d3d12_vulkan: without Resizable BAR, textures and staging buffers leave the BAR window to the arena; tile heaps prefer VRAM (RT-ALLOC-NO-REBAR-RETRIES)
2026-11-29 16:42:02 +01:00
fc99d468a8 Merge pull request #1417 from whoalin1/vk-image-fuzz-drawparams
vk_image_fuzz: enable shaderDrawParameters for the translated vertex shader
2026-11-29 16:41:49 +01:00
3ef235a681 d3d12/vulkan: rebind released sparse pages to shared zero page on AMD proprietary 2026-11-29 10:40:34 -05:00
6ebdee1978 tests: honor GPU float32 flush-to-zero support in shader fixtures 2026-11-29 10:40:34 -05:00
ce792f55fb Preserve all 32 bits in dynamic R32_UINT loads 2026-11-29 09:38:14 -05:00
a58d22fe2e Merge upstream ProjectLeonida/mandy main (ddfe24fba) into fix/rendering-correctness 2026-11-29 09:37:37 -05:00
f605dfa54c Merge pull request #1060 from sodove/test/w64g-reference-default
Compare tier C references against a verified 32-wide draw (TEST-W64G-REF-DEFAULT)
2026-11-29 15:37:17 +01:00
99c11d5827 Merge pull request #2215 from whoalin1/runtime-incremental-no-reloc-fixtures
runtime: link no-relocation fixtures without incremental linking
2026-11-29 15:27:02 +01:00
d8f6be3234 Merge pull request #2009 from IlyassRS3/perf/rt-uav-clear-fast-pack-and-tests
runtime: speed up uav_clear format lookup and channel pack/unpack with unit tests (RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS)
2026-11-29 15:26:43 +01:00
8c527753cb Merge pull request #2309 from narekshaghoyandev/ubiq-indirect-draw-stats-guards
indirect_draw_stats: guard null FILE* in report and out-of-range Event in note/skip
2026-11-29 15:26:30 +01:00
503831b2cb Merge pull request #2310 from narekshaghoyandev/ubiq-queue-families-slot-max
queue_families: select earliest slot in pick_queue_slot when all slots are UINT32_MAX
2026-11-29 15:26:21 +01:00
43d2d37c7c Merge pull request #2331 from narekshaghoyandev/ubiq-title-image-census-guards
d3d12_title_image_census: guard null entries/resources and use stable_sort
2026-11-29 15:26:09 +01:00
e18c786017 Merge pull request #2336 from narekshaghoyandev/ubiq-pipeline-wait-window
pipeline_wait: guard non-positive window and signed subtraction overflow in title_submitting
2026-11-29 15:25:56 +01:00
8969b55559 Merge pull request #2313 from narekshaghoyandev/ubiq-dev-status-null-name
dev_status: guard nullptr in Builds::name()
2026-11-29 15:25:47 +01:00
091bfa8d4d d3d12/vulkan(r9a): fix pending_stream dword6 refill, gpu_owned eviction, COPY_CLIP, and sync slots 131/132 2026-11-29 09:25:40 -05:00
ddfe24fbad Merge pull request #2046 from abnalstlll-byte/feat/rt-xs-placed-depth-guards-and-tests
runtime: guard null out pointers, add inspection helpers and unit tests for PlacedDepthTextures (RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS)
2026-11-29 15:14:56 +01:00
51d343b861 Merge pull request #2043 from alexandersato0830/codex/shader-library-utf8-module-paths
Use UTF-8 for shader library module filenames (SHADER-LIBRARY-UTF8-MODULE-PATHS)
2026-11-29 14:21:11 +01:00
528e0862f2 runtime: LEONIDA_SKIP_ASSERTS steps over guest asserts without a trace (RT-526)
A diagnostic for the retail boot (RT-5 follow-ups), off the hot path and with no behaviour change unless asked
for: LEONIDA_SKIP_ASSERTS=N (src/assert_skip.h, installed by main.cpp before any image code runs under
--init/--run): a vectored handler, added last, steps over up to N int3 (0xCC) at addresses in no host module and
logs each one as module+RVA (and as an int3_skipped trace event when --trace is open). After N it says so once
and the next int3 ends the run as before. An int3 in a host module, a breakpoint with no 0xCC at its address, or
a RIP that is neither at nor one past the 0xCC is passed on. Needs no --trace and no debugger.

Tests (synthetic, no game files): assert_skip_test (int3 in a VirtualAlloc'd page, the limit, a host-module int3,
a two-byte int 3, value parsing) and run_tiny_game_skip_asserts (two int3 in the mapped stand-in game, stepped
over end to end).

Carried over from old upstream PR 9961 (#228) without its caller logging for forwarded device slots, which the
carry-over of old PR 9990 (#1390) brings instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:55:11 -03:00
db567419fa Merge origin/main into carry/pr-2029
d3d12_xs_alloc_size: the PR's single-pass console_placement with main's title_descs/title_layout and console_unordered_access_size added to the per-description overrides; CMakeLists: xs_alloc_size_test and appnotify_test both kept.

Co-authored-by: Ilyass Roussi <76879547+IlyassRS3@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:31 +01:00
2d292240e8 Merge origin/main into carry/pr-2016
CMakeLists: value_write_sink_test (PR) after main's console_heap_slot_records and shadow_keep tests (main renamed console_heap_vsharp_slots).

Co-authored-by: abnalstlll-byte <284980532+abnalstlll-byte@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:29 +01:00
3beeb56bfb Merge origin/main into carry/pr-2031
submit_phases: main's nested-phase Scope kept; the PR's skip now applies only when nothing reads the times (timing_wanted(): period 0 and LEONIDA_DEV_OVERLAY not 1).

Co-authored-by: Ilyass Roussi <76879547+IlyassRS3@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:51:28 +01:00