-
Notifications
You must be signed in to change notification settings - Fork 25
Add partially mapped resources tests #476
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
Open
bob80905
wants to merge
33
commits into
llvm:main
Choose a base branch
from
bob80905:add_unmapped_resources_tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f43844d
first attempt
bob80905 38fde3c
Merge branch 'main' into add_unmapped_resources_tests
bob80905 d7908c7
Merge branch 'main' into add_unmapped_resources_tests
bob80905 a3b4ce1
first attempt
bob80905 2d371ed
self review
bob80905 284d8fe
add check access fully mapped
bob80905 9c6664b
make all 3 new functions more consistent between each other
bob80905 eda2715
rename test file name
bob80905 b58d924
address variable casing errors
bob80905 59a0b7c
address Justin and Damyan
bob80905 d3cbf91
fix build errors
bob80905 8d9cbbb
attempt to unify SRV
bob80905 fb4a631
fix texturelayout flag and another flag
bob80905 1c9752f
add metal XFAIL
bob80905 3e78f39
improve, but keep UAV the same
bob80905 fb86727
remove unwanted changes
bob80905 b9b202b
address confusing comment Justin pointed out
bob80905 361225b
clang-format
bob80905 eb89f86
address damyan, xfail intel
bob80905 c59e9e2
remove reserved CBV function, and capitalize var names
bob80905 8579b37
Merge branch 'main' into add_unmapped_resources_tests
bob80905 6a7878d
add some missing constts
bob80905 26f1045
Merge branch 'add_unmapped_resources_tests' of https://github.com/bob…
bob80905 06bf89c
self review
bob80905 e7f9a91
address Sarah
bob80905 2b2b9aa
add overflow assert
bob80905 7b8fa4c
fix assert condition, and update resource elty
bob80905 b21a1c6
add back accidentally removed XFAIL
bob80905 b6effce
update test
bob80905 ffff4eb
validate 0's return behavior
bob80905 0dd409e
use bool vals instead of ints
bob80905 84e9d82
remove 0's check, just assign if cafm returns false
bob80905 a861854
use 1 and 0 rather than true and false to resolve error
bob80905 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
Some comments aren't visible on the classic Files Changed page.
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
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.
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.
could this operation overflow? Why is width a uint64?
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.
Currently the arg that feeds into the width parameter is an int datatype. So it doesn't need to be a uint64, at least not yet. I'll change it.
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.
could width or d3d12_tiled_resource_tile_size_in_bytes be uint32 max or half that amount; could this operation overflow after you change width to be a uint32?
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.
I don't believe D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES can be any larger than 65536. However, width could be any arbitrary size, depending on how the developer specified it. So yes, I think this operation could overflow, though in exceedingly specific and pathological circumstances.
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.
FWIW: in D3D12, Width is a uint64 because it needs to be able to support describing buffers that are larger than 4gb.
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.
Yes, though for this API:
UpdateTileMappings
The pRangeTileCounts param is a UINT. Its value in my code comes directly from counting the number of tiles. So I don't think this should ever be > uint32_max.