Repository navigation
Shaders: view slots the title made itself stay below the host's dynamic slots #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8b2efa9
Shaders: view slots the title made itself stay below the host's dynam…
pablogonz12 362bc9f
Merge hub/main into int/runtime-picture-batch
pablogonz12 b57ca4f
GPU tests: dynamic slots are counted from their own base
pablogonz12 135ed92
Merge hub/main into int/runtime-picture-batch
pablogonz12 28f76bb
Merge remote-tracking branch 'hub/main' into int/runtime-picture-batch
pablogonz12 17bbc44
Shaders: VICTORY_TITLE_VIEW_CLAMP joins the translation switches
pablogonz12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apply the title clamp per branch when a descriptor choice mixes heap and table sources.
from_heapis one flag for the whole descriptor source.heap_onlyreturns true only when every leaf is aResourceHeapload. ASelect,Phi,Lanes, orLanePhithat merges aResourceHeapleaf with aTableleaf therefore getsfrom_heap = false. The merged index then receives only the heap-wide clamp. A title-made index in the heap branch, such as one at or above 1835007 (the first dynamic slot, 2097151 − 2^18), can resolve to a host dynamic descriptor instead of the null slot. Setting the flag to true would null valid table-derived indices, so one flag cannot satisfy both branches.The source constructors do not reject such a mix.
Phi,Select,Lanes, andLanePhieach store one classified argument per choice without checking that the leaves share a root type. TheSelecthandle then merges the per-choice heap indices and passes the merged value to oneheap_handlecall.Clamp only the heap-derived leaves to the null slot before the indices merge. Keep table-derived leaves unclamped. The handle must not decide the clamp from a single flag for a mixed source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fixed in this branch: filed as #247 item 2. Confirmed the shape —
heap_onlyis one flag for the whole source, andSelectalready refuses a mixed choice with "a descriptor chosen by a condition", butPhi/Lanesmerge a heap leaf with a table leaf into one unclamped index. The fix is to clamp the heap-derived leaves before the merge, which needsdescriptor_phito carry a per-predecessor clamp rather than the aggregate flag.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Analysis chain
Script executed:
Length of output: 9614
Script executed:
Length of output: 32773
@pablogonz12Thanks for filing#247. I won’t mark this finding as addressed.One correction:
Lower::handlerejectsSelectchoices that are not bothSource::Loaded; it does not check that their root types match. A mixedSelectwith two loaded descriptors may therefore need the per-leaf clamp too.Learnings added
You are interacting with an AI system.