Repository navigation
Conversation
22f5b1c to
9a06ec0
Compare
|
Rebased onto |
R0Y00
left a comment
There was a problem hiding this comment.
Thanks for rebasing and covering the new stride and heap-read fields. I rebuilt compile_dxil, native_direct_cache_check and native_compute_pack_check at 9a06ec0a. On Windows Debug, ctest --preset dev --no-tests=error -j 2 -R '^native_(direct_cache(_key)?_controls|direct_(container|mesh)|fixed_graphics_psi1|compute_pack(_parts)?|compile_dxil_rekey)$' --output-on-failure passed 8/8. The merge against main e958b8e8 now conflicts in the X2W_NATIVE_SHADER_REVISION input list in CMakeLists.txt. Please retain shader_translation_error.h from #3799 and all three new cache-identity headers from this PR when rebasing, then rerun the cache and compute-pack refusal checks on the combined head.
9a06ec0 to
7c4de86
Compare
|
Rebased onto Heads-up on an interaction with #3821: it adds |
Problem
The native frontend cache stored only part of a translated shader. Pixel descriptor metadata, mesh heap metadata and HLSL were not serialized, so a cache hit could return a result that differs from a live translation. The encoder and decoder were separate hand-written field lists, and nothing failed when a cached record gained a member. The graphics cache key also ignored
X2W_MESH57_PARTIAL_ZERO, which lowering reads.Change
static_asserton the field count fails the build whenNativeComputeShadergains a member that the list does not cover.frontend-3. Loose.csirand.pairirentries are regenerated, and prepared compute packs must be rebuilt.X2W_MESH57_PARTIAL_ZEROis read once on first use and is part of the graphics frontend key, so lowering and the cache use the same value.Lowering is not changed; this is serialization and cache keying only.
This conflicts textually with #3522, which changes first-dispatch lookup in the same cache reader. I will rebase after whichever merges first.
Validation
Windows, MSVC,
devpreset, at22f5b1c9e: 8/8 tests passed.native_direct_cache_controlsround-trips a shader with every field populated and checks that malformed payloads are refused.native_direct_cache_key_controlschecks that changing the option gives a separate cache entry. The container check compares cached IR payloads and emitted DXIL byte for byte across cold and warm runs, and the pack checks compare complete cached results with live translations.