Repository navigation
vulkan: back sparse terrain arrays at low detail without sparse residency #570
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
base: nx2
Are you sure you want to change the base?
Changes from all commits
1de7958
87ff487
bd8e26b
c2ec2cc
cb113ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,10 @@ enum class ImageFlagBits : u32 { | |
| /// device memory when the guest memory under it can hold data (Image::BindTiles), and only | ||
| /// the parts written are uploaded. | ||
| SparseTiles = 1 << 23, | ||
| /// A large array over Switch 2 sparse blocks on a host that cannot leave it unbound: backed, | ||
| /// but only its mip levels from host_level_offset on (the written parts of title 1's terrain | ||
| /// arrays are the low levels of every layer), uploaded layer by layer. | ||
| CompactLayers = 1 << 24, | ||
| }; | ||
| DECLARE_ENUM_FLAG_OPERATORS(ImageFlagBits) | ||
|
|
||
|
|
@@ -104,7 +108,7 @@ struct ImageBase { | |
|
|
||
| ImageInfo info; | ||
|
|
||
| u32 guest_size_bytes = 0; | ||
| u64 guest_size_bytes = 0; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep layer address calculations 64-bit. For an array larger than 4 GiB,
|
||
| u32 unswizzled_size_bytes = 0; | ||
| u32 converted_size_bytes = 0; | ||
| u32 scale_rating = 0; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.