mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #2288] descriptor_range_changes: merge adjacent inclusive ranges, skip inverted ranges, and add unit test #2291
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2291
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2288
Author: @narekshaghoyandev
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:ubiq-desc-range-merge-adjacent📝 Commits (1)
7796b0fdescriptor_range_changes: merge adjacent inclusive ranges, skip inverted ranges, and add unit test📊 Changes
3 files changed (+97 additions, -1 deletions)
View changed files
📝
runtime/CMakeLists.txt(+5 -0)📝
runtime/src/descriptor_range_changes.h(+2 -1)➕
runtime/test/descriptor_range_changes_test.cpp(+90 -0)📄 Description
Summary
[0, 9]+[10, 19]->[0, 19]) inDescriptorRanges::merge()(runtime/src/descriptor_range_changes.h), guarding againstUINT64_MAX + 1overflow.first > last) inDescriptorRanges::merge()sorangespreserves the monotoniclastinvariant required bystd::lower_boundinoverlaps().runtime/test/descriptor_range_changes_test.cpp(no GPU, no game data) and register it inruntime/CMakeLists.txt.Verification
g++ -std=c++20 -D_GLIBCXX_DEBUG -Wall -Wextra -Werror -pedantic -O1 -g runtime/test/descriptor_range_changes_test.cpp—descriptor_range_changes_test: OK.g++ -std=c++20 -Wall -Wextra -Werror -pedantic -fsanitize=address,undefined -O1 -g runtime/test/descriptor_range_changes_test.cpp—descriptor_range_changes_test: OK.g++ -std=c++20 -Wall -Wextra -Werror -pedantic -O1 -g runtime/test/title_va_alias_test.cpp— pass.main: 7 checks fail before the patch and all pass after.python3 -I scripts/check_no_game_data.py runtime/src/descriptor_range_changes.h runtime/test/descriptor_range_changes_test.cpp runtime/CMakeLists.txt— clean.Claimed in the coordination issue as: RT-DESC-RANGE-MERGE-ADJACENT (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192440165)
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.