Repository navigation
fix(kyty): refuse 3D image gathers - #320
Merged
Merged
Conversation
Owner
|
Thanks, this is the right call for now: an invalid Merged into AnyKyty (fast-forward, your commit as is). One possible follow-up if you want it: for a mixed indirect table, refuse only the 3D candidate branch (for example return zero for it) instead of the whole module, so the 2D candidates keep working. Worth doing only if a title actually hits a mixed table. |
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
A compute IMAGE_GATHER with a 3D image reached SPIR-V as OpImageGather. The SPIR-V validator rejects that image dimension; the SPIR-V specification permits 2D, Cube or Rect for OpImageGather. Refuse a gather before emission when its direct image or any candidate in an indirect image table is 3D. A mixed table must be refused because its emitted module contains every candidate branch. Existing 2D gathers and the separate depth-comparison refusal remain unchanged.
The matched regression fixtures use synthetic shader words. The 2D fixture requires nonempty, validator-accepted SPIR-V; changing its image dimension to 3D must give the explicit refusal. A debt fragment records that console 3D gather semantics are unmeasured. This is based on current AnyKyty dcdde0a.
Tested
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)