Repository navigation
Conversation
Adopt the FP32 BVH descriptor unit decode, 48-bit end-exclusive bound, positional unsorted results and positive-infinity miss keys for both box kinds. Binary16 fixtures are packed as half values and share the independent model; dev and release WARP and RX 9060 XT dispatch pass 21 cases plus six mutants.
Accept the 64-byte triangle node forms (kinds 0..3), decode their four ID maps and base vertex triples, and emit a watertight ray/triangle helper for return mode 1. The helper returns {t, det, v, w} and keeps the 48-bit descriptor rules. 119 CPU witnesses pass bit-for-bit on WARP and the RX 9060 XT in dev and release, with four negative mutations; the existing box tests remain green.
Size 0 is a one-unit span, so a binary16 node at offset zero accepts it and an FP32 node needs size 1 at offset zero. Use the decoded extent in the Python guard and both HLSL helpers, with exact-fit, too-short, upper-bound and boundary-dispatch controls.
Size is a count minus one in 64-byte units: size 0 covers a triangle at offset zero, while a triangle in the next unit needs size 1. Cover exact fits, a too-short neighbor, the 4 GiB upper bound and the HLSL boundary dispatch on WARP and hardware.
… mtime The watcher treated a pixel-input sidecar as current whenever its timestamp was not newer than the manifest, so a content change with a preserved or older mtime kept a stale accepted manifest. Publish an FNV-1a digest of the .psin/.ps57in bytes next to the manifest and compare it before a cache hit; the batch graphics path writes the same digest. Regression: native_startup_request_cache_check.py now covers an unchanged cache hit, a contradictory .ps57in both older and newer than the manifest, and a changed .psin with a preserved mtime. Refs R0Y00#3133. Refs R0Y00#3091.
A native graphics candidate reports ready=1 before pipeline_for creates its desktop PSO. When CreateGraphicsPipelineState failed, the draw returned null and cached that result, so the target stayed clear even when a valid published pair existed in the shader cache. Reload that pair for the same render-target key, bump a translation revision so earlier native PSOs are not reused, and refuse the draw with a diagnostic when the pair is missing or invalid. Native-only mode keeps its explicit refusal. The published manifest and stage files are read, never rewritten. Refs R0Y00#3134
) The indexed rectangle stage found the right-angle corner by testing whether a corner shares an x or a y with each of its neighbours. A rotated rectangle has no axis-aligned edge, so no corner matched, the stage returned without emitting either triangle, and the region the rectangle covered stayed unpainted with the rectangle diagonal as its boundary. The vertex-stage rectangle expansion has no such restriction (it uses v0 + v2 - v1 directly), so the two implementations of the same rule disagreed. The corner is now also identified from the shape: the right-angle corner is the vertex opposite the diagonal, the longest of the three edges, and the two sides must meet at a right angle so a shape that is not a rectangle stays undrawn. The axis test keeps precedence, so every input it accepted is unchanged. Both startup_stubs/indexed_rect_geometry.h and the native rule of gfx1013_rect_geometry.cpp use it. tests/startup_rect_geometry.cpp draws one rectangle named by three corners with back-face culling on: the axis order and the swung order (rejected by winding) keep their previous result, and the same square turned by 15 degrees covers 0 of 32 differing pixels instead of 32. tests/startup_rect_gap.cpp and tests/startup_rect_gap_check.py add the reported synthetic draw: eight 12-byte records (mask at +0, XY at +4), two vertex-buffer views over the same records, an R16 indexed triangle list and a six-vertex rectangle list of the same quad and edge ring, a mask-controlled pixel shader and a constant-colour control, an RGBA8 target, and back-face culling. The bound vertex and index bytes, the translated fetch and the pre/post-draw pixels match the model in every mode, on WARP and through the hardware backend; the reported diagonal gap does not reproduce for that input (docs/experiments/startup-rect-gap.md). Refs R0Y00#3131
- assert the origin, direction and inverse-direction operands of the translated call - ignore the triangle return mode bit for box nodes in the translator guard and helper - add the triangle check to the Linux CI fragment - correct the BVH experiment notes and link both notes from experiments.md
pipeline_for may replace the native candidate with the published disk translation. Create the PSO before preparing the D16, formatted-buffer and fixed-vertex bindings so they come from the final translation, and recompute indexed-rectangle geometry when the fallback changes the fixed stream. Add the RTV variant fallback and invalid pixel-blob cases.
# Conflicts: # docs/experiments/gdk-knowledge-report.md
|
I reproduced a native scalar-input regression on the unmodified public head The compiler succeeds, but the first scalar-window positive is refused at table 1 byte 64 with An isolated restoration, based on this integration head, is available as c6c7688b. It restores normal range resolution first, then the existing native-scalar-only fallback for readable, whole-dword unplaced windows covering the compiler's required bytes and no larger than 64 KiB. It retains the current input-source counters and does not change the policy for non-aliased placed buffers. Successful GPU-backed resolution and view tokens never take this fallback. The commit contains only this runtime change and a source-built reproduction note; it is intended for the integration stack rather than a main PR containing the stack's other commits. Validation: Windows 10 Pro build 19045, RTX 4070 Ti SUPER, driver After restoration: hardware 7 passed, 0 failed, 0 skipped (24.09 s). Both scalar values ( The This descriptor shape is relevant to #3310, but the fixture does not prove the cause of its 48 zero records or meet its matched integration acceptance. |
|
Confirmed and pushed On the parent On Release |
Keep the stack's scalar-window, token-UAV and mesh-heap paths while taking main's shared request keys, heap_srvs root parameter, view-heap entry tracking, rekey usage and WREXEC/BCNT64 compute additions. Apply the short-state validation order from the compiler refresh.
|
Refreshed the stack onto current
Release The PR is now |
The merged graphics loader reads <key>.gs.cso for rectangle geometry, so .gs.cso is a valid but optional graphics translation file. Keep it out of the required set.
|
CI is green on The stack is |
# Conflicts: # docs/experiments/gdk-exports.md # src/gfx1013_compute_native.cpp # src/gfx1013_direct_compute.inl # src/shader_compute_request.cpp # src/startup_stubs/d3d12_draw.inl # src/startup_stubs/translated_sampler_bindings.h # tests/gdk_exports_check.py # tests/startup_stream_consumer.cpp # tools/gdk_exports.py # tools/gdk_shim_coverage.py # tools/startup/compile_dxil.cpp
# Conflicts: # CMakeLists.txt # docs/experiments.md # src/direct_compute_cache.cpp # src/gfx1013_compute_native.cpp # src/gfx1013_compute_native.h # src/gfx1013_direct_compute.inl # src/gfx1013_direct_mesh.inl # src/shader_compute_request.cpp # src/startup_stubs/d3d12_compute_dispatch.inl # src/startup_stubs/d3d12_draw.inl # src/startup_stubs/translated_sampler_bindings.h # tests/startup_native_graphics_draw_check.py # tools/patch_manifest.py # tools/startup/compile_dxil.cpp
# Conflicts: # src/shader_compute_request.cpp # src/startup_stubs/d3d12_compute_dispatch.inl # src/startup_stubs/d3d12_draw.inl # src/startup_stubs/translated_sampler_bindings.h
This is a draft integration stack, not a merge candidate. It combines the open native PRs on top of current
mainso they can be built and tested together; the individual PRs remain the review units. Included open PRs: - #3137native/stale-manifest-mtime(basecodex/native-shader-modules) - #3139native/graphics-pso-fallback(basecodex/native-graphics-integration) - #3241merge/native-shader-main-current(basecodex/native-shader-modules) - #3091/#3094 are reached through the bases of #3137/#3139. Integration work in this branch: - merged currentmainthroughda968a50(28 commits across the last two syncs) and resolved the native, draw and compute conflicts; - kept the compute token UAV description in the mergedViewunion (a285b490); - restoredpacked_stateandvalidate_compute_request_shapeafter the automatic merges (cf0b7072); - combined the slot 67 indirect/pixel test changes with the token and scalar-window cases; - allowed view-token compute inputs in non-aliased placed buffers (dc76ca16), after which the compute dispatches stopped being refused; - preferred a published graphics pair over native compilation on the first draw (bb5ee4c9), and aligned the snapshot/alignment call sites (2dff32de);\n- restored bounded unplaced native scalar windows after the integration merge (c6c7688b), with the 288-word readback control;\n- merged currentmain3926a289(3273b757) and reconciled shared request keys, the heap_srvs/input-assembler root parameters, view-heap entry tracking, rekey usage and the scalar-window/typed-output test modes. Current head:808bc79a, 136 commits ahead oforigin/main, 0 behind. Validation: - Release build: 0 errors (322 targets for the main sync, 110 for the last five commits). -native_dpp8_hardware,native_sdwa_f16_{ir,hardware},native_f16_alu_{ir,hardware},native_slot67_wave_size_hardware,native_frozen_request: 7/7 passed. -native_rcp_iflag_*,native_round_f16_*,native_smem_vcc_wave64_*: 8/8 passed after the last sync. -startup_compute_dispatch_input_{warp,hardware},startup_native_graphics_draw_{warp,hardware},startup_map_drive(_overlap),startup_image_cube_{warp,hardware},startup_slot67_indirect_dispatch_{warp,hardware}: passed. -native_compute_implicit_lod_hardwareis the one known failure: on the RX 9060 XT, the (8,4,1) case reads0x3f948000instead of0x3f800000. The same AMD result is documented in #3255 and reproduced on unmodifiedmain; it is not caused by this stack. WARP skips that path. - A diagnostic startup run rendered the publisher intro card at about 103 s, with 1,365 textures and 11 pipelines / 0 missing. It then stopped at an access violation atgame+0x6eb3f2. This is an integration milestone, not a playability claim. Please use the individual PRs for review; this draft is only for combined integration testing.