mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 21:15:57 +00:00
A device loss logs the last descriptor pool events, and a pool with two owners is logged at once
The replay keeps a ring of the last 1024 descriptor pool events (a CbRes made, a pool handed to a CbRes from the spare list or new, a pool reset or destroyed), a few per submission and nothing per draw. vk_device_fault_report logs the newest 256 after a device loss. Each pool's owner is checked under spare_lock as the pool is handed out and as it is reset: a pool handed out while another CbRes holds it, or reset by a CbRes that does not hold it, is logged at once with the 64 events before it. On a GTX 1050 Ti with TOTK_BIND_INC on, the validation layer reported a descriptor pool reset while a command buffer used it, then binds of its sets, before a device lost that slower diagnostic runs did not bring back; the next one names the pool's owners. --probe-vkexec gains a set batch part (60 submissions of batched sets with splits and empty submissions beside them), a pool owner part (one pool handed to two CbRes, then reset by the one that no longer holds it: two conflicts) and calls the device loss report on the working device to check that it comes out and returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
434533aa11
commit
d6715029e5
5 files changed
+253
No files matched your search
@@ -932,6 +932,13 @@ static void maybe_split(VkExec *ex) {
|
||||
n_parts++;
|
||||
}
|
||||
|
||||
// --probe-vkexec: a split every `draws` draws between passes, parts of at least `us` (0: no minimum); the parts made
|
||||
// so far.
|
||||
uint64_t vk_exec_split_set(int draws, int us) {
|
||||
split_n = draws, split_ns = us > 0 ? (uint64_t)us * 1000 : 0;
|
||||
return n_parts;
|
||||
}
|
||||
|
||||
// The fixed-function state ops: writes into ex alone, applied by the replay and the state scan. 0: not one of them.
|
||||
static int state_op(VkExec *ex, uint32_t op, const void *a) {
|
||||
switch (op) {
|
||||
|
||||
Reference in new issue
Block a user