gpu: name the failing part when a fixed mesh profile does not match #3440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3440"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T09:04:25Z.
Part of #3416
Branch
mesh57-profile-mismatch-part, head50900f60, based on main1a44cee5:fa46de00mesh57: name the part when a fixed mesh profile does not matchaf406982tests: check the slot-57 descriptor content refusal text50900f60tests: check the slot-57 length and trailing-bytes refusal textsgit merge-treewith main1a0120bais clean; main has not changed the two files since1a44cee5.What changes
prepare_native_mesh57compared six parts of the reviewed profile in one expression, together with the end of the file:state_astate_bOn any mismatch it threw a single
profile input bytes differ.The message now names the first check that fails (
src/startup_stubs/native_mesh57.inl:301-319, line numbers at the branch head):profile input bytes differ: <part> length <profile> != <actual>(:303)profile input bytes differ: <part> content(:310)profile input bytes differ: trailing bytes after the pixel shader(:319)The prefix, the check order and the set of accepted and refused profiles are unchanged. The refusal is still logged as
x2w-render native slot57 mesh %016llx refused: %s(:466).tests/startup_indirect_draw_indexed.cpppointsX2W_TRAP_LOGat the fixture's log (:2075) and requires one exact log line per message:refused:const auto mismatched = create();(:2275-2289)profile input bytes differ: normalized descriptor contentlengths[0]one larger, thencreate()(:2301-2327)profile input bytes differ: normalized descriptor length 769 != 768create()(:2328-2340)profile input bytes differ: trailing bytes after the pixel shaderThe content check runs before the block #3433 added at the same place (:2290), so that it reads the log right after the
create()under test. The length and trailing-bytes cases run after #3433's lookup-count check (:2299), so they do not change its counts.Evidence
On
50900f60, release build ofstartup_indirect_draw_indexedandstartup_cache_index_check, then:Result: 12/12 passed, the mesh57 cases on WARP:
native_fixed_mesh57_{,mrt,varying,uint_heap,pixel_heap,waterfall,waterfall_fine,buffers,constant,mask}_warpstartup_cache_index,startup_cache_index_per_call_controlMutations in
src/startup_stubs/native_mesh57.inl, one at a time, each reverted and rebuilt (12/12 after the revert):50900f60<part> contentnative_fixed_mesh57_warpfails:malformed fixed mesh profile: missing log line '... refused: profile input bytes differ: normalized descriptor length 769 != 768'50900f60native_fixed_mesh57_warpfails:malformed fixed mesh profile: missing log line '... refused: profile input bytes differ: trailing bytes after the pixel shader'af406982native_fixed_mesh57*_warpcases fail:unreviewed fixed mesh state: missing log line '... normalized descriptor content'af406982" content"changed to" contents"The two content mutations were not repeated on
50900f60; that commit only adds lines after the content check.Behaviour control, run on an earlier revision (base
212d4b5f, before the log check existed), not repeated since: with the memcmp for part 0 skipped, the fixtures fail on pixels,unreviewed fixed mesh state: pixel (2,0): got 0xffffffff, expected 0xff000000.No test or document expected the old text: at the branch head,
git grep "input bytes differ" -- tests docsonly hits the checks intests/startup_indirect_draw_indexed.cpp.Not covered
CI
On main
1a0120batheprbuild preset buildsstartup_indirect_draw_indexed, but theprCTest filter does not matchnative_fixed_mesh57*_warp. PR CI compiles the changed test file and does not run the new checks. The run above does.Interactions with other open mesh branches
By
git merge-treeataf406982: no textual conflict with the fivenative_direct_meshbranches; the files are disjoint.50900f60touches onlytests/startup_indirect_draw_indexed.cpp.