Repository navigation
fix(kyty): reject invalid image LOD and compute exports - #309
Merged
Merged
Conversation
mjnhbg3
force-pushed
the
fix/kyty-spirv-execution-model
branch
from
November 26, 2026 05:00
fb1e761 to
e4979d7
Compare
mjnhbg3
force-pushed
the
fix/kyty-spirv-execution-model
branch
from
November 26, 2026 06:14
e4979d7 to
9ceedb5
Compare
mjnhbg3
marked this pull request as ready for review
November 26, 2026 06:39
Owner
|
Merged into AnyKyty as |
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two routes produced #209's invalid execution-model call graph.
IMAGE_GET_LODemittedOpImageQueryLodin a vertex shader. A live computeEXPparameter export created anOutputstorage variable, which Vulkan forbids inGLCompute. Refuse unsupported image LOD stages and live non-null compute exports before IR output registration. Keep null and disabled compute exports as no-output operations. Add handwritten refusal and supported-path fixtures plus a Kyty debt fragment.This targets the fork's current
AnyKytybase,e68fe52755a4cec68e3e7d32318925ee657775ef. The one-hour Linux compiler-validation run found no call-graph recurrence. It did find a separate atomic storage-class recurrence from #291's unguardedDS_APPENDpath, so this PR leaves #209 open for that distinct follow-up.Tested
OpEntryPoint ... callgraph contains function ... which cannot be used with the current execution model. The candidate explicitly refuses it; the pixel counterpart compiles and validates.VUID-StandaloneSpirv-None-04644with a three-word handwritten fixture on the first candidate. The amended candidate refuses that export. Null and disabled compute export fixtures compile and validate.kyty_shim_recompiler_robustnessandkyty_shim_recompiler_valid_spirv: 2/2 passed on the candidate. The latter runs every fixture withKYTY_FUZZ_SPIRV=abort.kyty_shim_cross_queue_label_orderandkyty_shim_recompiler_valid_spirvCTests on basee68fe52755and candidate9ceedb5409withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andVK_LOADER_DEBUG=layer: 2/2 passed on each side. Both logs showInsert instance layer "VK_LAYER_KHRONOS_validation"with layer 1.4.363, no missing-layer warning, and zeroVUID-errors.KYTY_*settings are documented.e68fe52755and the rebased PR Linux Kyty CI log at9ceedb5409throughtools/kyty_pgo.py report --annotate. Both emit the same genuine advisory: 423 functions lost counts, 18.95% of profile weight, and 4 of the ten hottest. The warning predates this shader change.tools/check_conventions.py --base origin/AnyKyty,tools/check_kyty_settings.py,tools/debt_fold.py --check,git diff --check, andtools/pr_overlap.py --branch fix/kyty-spirv-execution-modelpassed; no other open PR shares files or exports.9ceedb5409.kyty_shader_recompiler_fuzzerbuilt at pre-rebase commite4979d7. From an empty corpus,KYTY_FUZZ_SPIRV=log,KYTY_FUZZ_SPIRV_DIR=invalid,ASAN_OPTIONS=detect_leaks=0, and-max_total_time=3600completed 6,843,555 inputs in 3,601 seconds, exit 0. Full-log checks found zerocallgraph containsmessages and zero ASan/UBSan reports. The log saved five distinct other validator findings: image dimension, output location collision,AtomicIAddandAtomicISubon prohibited storage classes, and SSA dominance. The atomic pair includes PixelDS_APPEND, outside this PR's files. No GPU driver, title, or homebrew was run in this Linux check. The separate Linux robustness executable compiled but did not link because its existing CMake target omits the UBSan runtime required by the instrumented Kyty archive; Windows robustness and SPIR-V CTests passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)