mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
graphics: upload streamed texture mips from sparse reservations
This commit is contained in:
1 parent
59a1760427
commit
650dc1e0af
5 files changed
+54
-48
No files matched your search
@@ -963,10 +963,9 @@ static bool IsInPrtAperture(uint64_t address, uint64_t size = 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TryReadPrtBacking(uint64_t vaddr, void* data, uint64_t size) {
|
||||
bool TryReadSparseBacking(uint64_t vaddr, void* data, uint64_t size) {
|
||||
std::vector<VirtualRanges::Range> ranges;
|
||||
if (g_guest_address_space == nullptr || g_virtual_ranges == nullptr ||
|
||||
!IsInPrtAperture(vaddr, size) || !g_virtual_ranges->QuerySpan(vaddr, size, &ranges)) {
|
||||
if (!g_virtual_ranges->QuerySpan(vaddr, size, &ranges)) {
|
||||
return false;
|
||||
}
|
||||
if (std::any_of(ranges.begin(), ranges.end(), [](const auto& range) {
|
||||
|
||||
Reference in new issue
Block a user