Merge pull request #21 from Nostyxx/fix/nvidia-view-heap-cap
GPU: make tables past a capped host view heap afresh (NVIDIA menu hang)
This commit is contained in:
commit
b9aff99b98
2 files changed
+38
No files matched your search
@@ -612,6 +612,27 @@ impl State {
|
||||
.filter(|u| u.kind == ResourceType::Cbv)
|
||||
.map(|u| u.slot)
|
||||
.collect();
|
||||
// Tables reaching past a host heap smaller than the title's (the
|
||||
// host's limit, 1,000,000 views on NVIDIA) are made afresh too: the
|
||||
// title's slots there have no host slot of their own.
|
||||
for u in used.iter().filter(tables) {
|
||||
if fresh.contains(&u.slot) {
|
||||
continue;
|
||||
}
|
||||
let Some(&Root::Table(table)) = self.roots_ref(compute).get(usize::from(u.slot)) else {
|
||||
continue;
|
||||
};
|
||||
let end = table + u64::from(u.table_offset_dwords) * 4;
|
||||
let Some(heap) = self.heap_of(table) else {
|
||||
continue;
|
||||
};
|
||||
let (Some(host), Some(index)) = (heap.host(), heap.index(end)) else {
|
||||
continue;
|
||||
};
|
||||
if index >= host.count() {
|
||||
fresh.push(u.slot);
|
||||
}
|
||||
}
|
||||
fresh.sort_unstable();
|
||||
fresh.dedup();
|
||||
for u in used.iter().filter(tables) {
|
||||
|
||||
Reference in new issue
Block a user