# icb_sync_errors: Where the write-back stops (synchronizeIndirect{Render,Compute}CommandBuffer). Each target ICB's layout places one field past its command (or its guest range is shorter than a command), so its own prepare fails and leaves it host-invalid; a blit 305 then copies a well-formed ICB's commands into it, and InvalidateResources (52: set host valid, clear guest valid) makes it need a write-back. The 53 then writes each command until the failing field ("Failed to read command", "Failed to write commandType / pipeline state", "Failed to get attribute strides / kernel, vertex or fragment buffers cursor"): the error is dropped (synchronizeWithCPU ignores it) and the guest copy is marked valid. A compute ICB with dynamic strides sizes its write-back stride cursor by the kernel bind count, as prepare does: one with 31 vertex binds prepares, executes and is written back whole. Keyed by the host (GPU addresses). {"op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_gpa": "0x40008000", "stamp_slots": 2, "watchdog_s": 30} {"off": "0x1034", "op": "mmio_w", "val": "0xf5"} {"off": "0x101c", "op": "mmio_w", "val": "0x10001"} {"off": "0x1030", "op": "mmio_w", "val": "0x10002"} {"off": "0x1004", "op": "mmio_w", "val": "0x8000"} {"off": "0x1010", "op": "mmio_w", "val": "0x400"} {"off": "0x1000", "op": "mmio_w", "val": "0x1"} {"gpa": "0x40194000", "hex": "05000180", "op": "mem"} {"gpa": "0x40194004", "hex": "06000180", "op": "mem"} {"gpa": "0x40194008", "hex": "07000180", "op": "mem"} {"gpa": "0x4019400c", "hex": "08000180", "op": "mem"} {"gpa": "0x40194010", "hex": "09000180", "op": "mem"} {"gpa": "0x40194014", "hex": "0a000180", "op": "mem"} {"gpa": "0x40194018", "hex": "0b000180", "op": "mem"} {"gpa": "0x4019401c", "hex": "0c000180", "op": "mem"} {"gpa": "0x40194020", "hex": "0d000180", "op": "mem"} {"gpa": "0x40194024", "hex": "0e000180", "op": "mem"} {"gpa": "0x40194028", "hex": "0f000180", "op": "mem"} {"gpa": "0x4019402c", "hex": "10000180", "op": "mem"} {"gpa": "0x40194030", "hex": "11000180", "op": "mem"} {"gpa": "0x40194034", "hex": "12000180", "op": "mem"} {"gpa": "0x40194038", "hex": "13000180", "op": "mem"} {"gpa": "0x4019403c", "hex": "14000180", "op": "mem"} {"gpa": "0x40194040", "hex": "15000180", "op": "mem"} {"gpa": "0x40194044", "hex": "16000180", "op": "mem"} {"gpa": "0x40194048", "hex": "17000180", "op": "mem"} {"gpa": "0x4019404c", "hex": "18000180", "op": "mem"} {"gpa": "0x40194050", "hex": "19000180", "op": "mem"} {"gpa": "0x40194054", "hex": "1a000180", "op": "mem"} {"gpa": "0x40194058", "hex": "1b000180", "op": "mem"} {"gpa": "0x4019405c", "hex": "1c000180", "op": "mem"} {"gpa": "0x40194060", "hex": "1d000180", "op": "mem"} {"gpa": "0x40194064", "hex": "1e000180", "op": "mem"} {"gpa": "0x40194068", "hex": "1f000180", "op": "mem"} {"gpa": "0x4019406c", "hex": "20000180", "op": "mem"} {"gpa": "0x40194070", "hex": "21000180", "op": "mem"} {"gpa": "0x40194074", "hex": "22000180", "op": "mem"} {"gpa": "0x40194078", "hex": "23000180", "op": "mem"} {"gpa": "0x4019407c", "hex": "24000180", "op": "mem"} {"gpa": "0x40194080", "hex": "25000180", "op": "mem"} {"gpa": "0x40194084", "hex": "26000180", "op": "mem"} {"gpa": "0x40194088", "hex": "27000180", "op": "mem"} {"gpa": "0x4019408c", "hex": "28000180", "op": "mem"} {"gpa": "0x40194090", "hex": "29000180", "op": "mem"} {"gpa": "0x40194094", "hex": "2a000180", "op": "mem"} {"gpa": "0x40194098", "hex": "2b000180", "op": "mem"} {"gpa": "0x4019409c", "hex": "2c000180", "op": "mem"} {"gpa": "0x401940a0", "hex": "2d000180", "op": "mem"} {"gpa": "0x401940a4", "hex": "2e000180", "op": "mem"} {"gpa": "0x401940a8", "hex": "2f000180", "op": "mem"} {"gpa": "0x401940ac", "hex": "30000180", "op": "mem"} {"gpa": "0x401940b0", "hex": "31000180", "op": "mem"} {"gpa": "0x401940b4", "hex": "32000180", "op": "mem"} {"gpa": "0x401940b8", "hex": "33000180", "op": "mem"} {"gpa": "0x401940bc", "hex": "34000180", "op": "mem"} {"gpa": "0x401940c0", "hex": "35000180", "op": "mem"} {"gpa": "0x401940c4", "hex": "36000180", "op": "mem"} {"gpa": "0x401940c8", "hex": "37000180", "op": "mem"} {"gpa": "0x401940cc", "hex": "38000180", "op": "mem"} {"gpa": "0x401940d0", "hex": "39000180", "op": "mem"} {"gpa": "0x401940d4", "hex": "3a000180", "op": "mem"} {"gpa": "0x401940d8", "hex": "3b000180", "op": "mem"} {"gpa": "0x401940dc", "hex": "3c000180", "op": "mem"} {"gpa": "0x401940e0", "hex": "3d000180", "op": "mem"} {"gpa": "0x401940e4", "hex": "3e000180", "op": "mem"} {"gpa": "0x401940e8", "hex": "3f000180", "op": "mem"} {"gpa": "0x401940ec", "hex": "40000180", "op": "mem"} {"gpa": "0x401940f0", "hex": "41000180", "op": "mem"} {"gpa": "0x401940f4", "hex": "42000180", "op": "mem"} {"gpa": "0x401940f8", "hex": "43000180", "op": "mem"} {"gpa": "0x401940fc", "hex": "44000180", "op": "mem"} {"gpa": "0x40194100", "hex": "45000180", "op": "mem"} {"gpa": "0x40194104", "hex": "46000180", "op": "mem"} {"gpa": "0x40194108", "hex": "47000180", "op": "mem"} {"gpa": "0x4019410c", "hex": "48000180", "op": "mem"} {"gpa": "0x40194110", "hex": "49000180", "op": "mem"} {"gpa": "0x40194114", "hex": "4a000180", "op": "mem"} {"gpa": "0x40194118", "hex": "4b000180", "op": "mem"} {"gpa": "0x4019411c", "hex": "4c000180", "op": "mem"} {"gpa": "0x40194120", "hex": "4d000180", "op": "mem"} {"gpa": "0x40194124", "hex": "4e000180", "op": "mem"} {"gpa": "0x40194128", "hex": "4f000180", "op": "mem"} {"gpa": "0x4019412c", "hex": "50000180", "op": "mem"} {"gpa": "0x40194130", "hex": "51000180", "op": "mem"} {"gpa": "0x40194134", "hex": "52000180", "op": "mem"} {"gpa": "0x40194138", "hex": "53000180", "op": "mem"} {"gpa": "0x4019413c", "hex": "54000180", "op": "mem"} {"gpa": "0x40194140", "hex": "55000180", "op": "mem"} {"gpa": "0x40194144", "hex": "56000180", "op": "mem"} {"gpa": "0x40194148", "hex": "57000180", "op": "mem"} {"gpa": "0x4019414c", "hex": "58000180", "op": "mem"} {"gpa": "0x40194150", "hex": "59000180", "op": "mem"} {"gpa": "0x40194154", "hex": "5a000180", "op": "mem"} {"gpa": "0x40194158", "hex": "5b000180", "op": "mem"} {"gpa": "0x4019415c", "hex": "5c000180", "op": "mem"} {"gpa": "0x40194160", "hex": "5d000180", "op": "mem"} {"gpa": "0x40194164", "hex": "5e000180", "op": "mem"} {"gpa": "0x40194168", "hex": "5f000180", "op": "mem"} {"gpa": "0x4019416c", "hex": "60000180", "op": "mem"} {"gpa": "0x40194170", "hex": "61000180", "op": "mem"} {"gpa": "0x40194174", "hex": "62000180", "op": "mem"} {"gpa": "0x40194178", "hex": "63000180", "op": "mem"} {"gpa": "0x4019417c", "hex": "64000180", "op": "mem"} {"gpa": "0x40010000", "hex": "65000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40018000", "hex": "00400000000000000800000000000000", "op": "mem"} {"gpa": "0x40018010", "hex": "00400000000000000900000000000000", "op": "mem"} {"gpa": "0x40018020", "hex": "09000000000000000000000002000000000000000000000010000000000000000205460004000000040000000100000001000100010000000000000000000000", "op": "mem"} {"gpa": "0x40018060", "hex": "00400000000000000a00000000000000", "op": "mem"} {"file": "shaders/kernel.metallib", "gpa": "0x40040000", "op": "mem_file", "sha256": "52f96907c245aafe9287e95deb4d7d9535fc6d522364a8c25b41d20bad81ad2c"} {"gpa": "0x40018070", "hex": "00c0020000000000a00d00000f00000000000000", "op": "mem"} {"gpa": "0x40018090", "hex": "0b00000000000000000000000d00000002070401000000000405000000", "op": "mem"} {"file": "shaders/vert.metallib", "gpa": "0x40044000", "op": "mem_file", "sha256": "2883f32e2c00714eae4d74d3a8d5c6c8b884c51fdad7368a3d048009d2b3eea0"} {"gpa": "0x400180b0", "hex": "0000030000000000fe0d00000f00000000000000", "op": "mem"} {"file": "shaders/frag.metallib", "gpa": "0x40048000", "op": "mem_file", "sha256": "d69024a2345456addd8bbadac3114798b2d4531317f882cc1366c3f264e18fa4"} {"gpa": "0x400180d0", "hex": "00400300000000002e0c00000f00000000000000", "op": "mem"} {"gpa": "0x400180f0", "hex": "0e0000000000000000000000310000000408041c000000190401000000010407000000020408000000000000010000000800000002000400000000010446000000", "op": "mem"} {"file": "shaders/kernel.metallib", "gpa": "0x4004c000", "op": "mem_file", "sha256": "52f96907c245aafe9287e95deb4d7d9535fc6d522364a8c25b41d20bad81ad2c"} {"gpa": "0x40018140", "hex": "0080030000000000a00d00000f00000000000000", "op": "mem"} {"gpa": "0x40018160", "hex": "0b0000000000000000000000070000000100040a000000", "op": "mem"} {"gpa": "0x40050000", "hex": "40000000010000000600000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001000000000000000100000000000000020000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40018180", "hex": "00010000000000000f0000003600000000000000400000000000010000000000000000000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40054000", "hex": "40000000000000000600000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001000000000000000100000000000000020000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x400181f0", "hex": "0001000000000000100000003600000000000000400000000000010000000000000008000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40058000", "hex": "01000000000000000900000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000001000000000000000000000000000000000000000000000000000000003000000000000000000030000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40018260", "hex": "00010000000000001100000036000000000000000100000001010000000000000000000000000000000004000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x4005c000", "hex": "01000000000000000900000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000030000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x400182d0", "hex": "00010000000000001200000036000000000000000100000001010000000000000000080000000000000004000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018340", "hex": "00010000000000001300000036000000000000004000000000000100000000000000000000000000ffff0400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x400183b0", "hex": "0001000000000000140000003600000000000000400000000000010000000000000000000000000000000400a0000000001000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018420", "hex": "0001000000000000150000003600000000000000400000000000010000000000000008000000000000000400a000000008000000000000000000000000000000000000001000000000100000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018490", "hex": "0001000000000000160000003600000000000000400000000000010000000000000000000000000000000400a0000000080000000000000000000000000000000000000000100000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018500", "hex": "8000000000000000170000003600000000000000400000000000010000000000000000000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018570", "hex": "00010000000000001800000036000000000000000100000001010000000000000000000000000000ffff04000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x400185e0", "hex": "00010000000000001900000036000000000000000100000001010000000000000000000000000000000004000000b000001000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018650", "hex": "00010000000000001a00000036000000000000000100000001010000000000000000080000000000000004000000b00008000000100000003800000000000000000000000000000000100000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x400186c0", "hex": "00010000000000001b00000036000000000000000100000001010000000000000000000000000000000004000000b000080000000010000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x40018730", "hex": "00010000000000001c00000036000000000000000100000001010000000000000000000000000000000004000000b000080000001000000000100000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x400187a0", "hex": "80000000000000001d00000036000000000000000100000001010000000000000000000000000000000004000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"} {"gpa": "0x4008c000", "hex": "40000000000000000600000000000000010000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001000000000000000100000000000000020000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40018810", "hex": "00010000000000001e0000003600000000000000400000001f00010000000000000008000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"} {"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000018000000000004000100", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1c"} {"ge": "0x1", "gpa": "0x40008000", "label": "stamp 1 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40014000", "hex": "000000000000000000000000011000000040000000000000011000001040000000000000084000002040000000000000011000006040000000000000061400007040000000000000071d0000904000000000000006140000b04000000000000006140000d04000000000000007410000f04000000000000006140000404100000000000007170000604100000000000014640000804100000000000014640000f04100000000000014640000604200000000000014640000d04200000000000014640000404300000000000014640000b04300000000000014640000204400000000000014640000904400000000000014640000004500000000000014640000704500000000000014640000e04500000000000014640000504600000000000014640000c04600000000000014640000304700000000000014640000a047000000000000146400001048000000000000", "op": "mem"} {"gpa": "0x4000841c", "hex": "330000001800000002000000010000000000000050010000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x34"} {"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40024000", "hex": "c00100000200000031010000280000000c0000001000000000000000000000000100000000000000000000000000000031010000280000000c0000001100000000000000000000000100000000000000000000000000000031010000280000000d0000001200000000000000000000000100000000000000000000000000000031010000280000000c0000001300000000000000000000000100000000000000000000000000000031010000280000000c0000001400000000000000000000000100000000000000000000000000000031010000280000000e0000001500000000000000000000000100000000000000000000000000000031010000280000000e0000001600000000000000000000000100000000000000000000000000000031010000280000000f0000001700000000000000000000000100000000000000000000000000000031010000280000000e0000001800000000000000000000000100000000000000000000000000000031010000280000000e0000001900000000000000000000000100000000000000000000000000000031010000280000000e0000001a000000000000000000000001000000000000000000000000000000", "op": "mem"} {"gpa": "0x40008434", "hex": "43000000b8000000030000000100000012000000010000000100000000000000020000000000000004000000000000000c000000000000000d000000000000000e000000000000000f0000000000000010000000000000001100000000000000120000000000000013000000000000001400000000000000150000000000000016000000000000001700000000000000180000000000000019000000000000001a000000000000000000010000000000c001000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xec"} {"ge": "0x3", "gpa": "0x40008000", "label": "prepare (each target fails), 305 into each", "op": "wait", "timeout_ms": 5000} {"label": "305", "off": "0x102c", "op": "mmio_r"} {"label": "305", "off": "0x103c", "op": "mmio_r"} {"gpa": "0x40024000", "hex": "38000000010000008700000014000000010000000300000001000000e40000001c0000001b00000000000000000000000100000000000000", "op": "mem"} {"gpa": "0x400084ec", "hex": "4300000048000000040000000100000004000000010000000100000000000000020000000000000004000000000000001b0000000200000000000100000000003800000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x134"} {"ge": "0x4", "gpa": "0x40008000", "label": "31 vertex binds, guest invalidated", "op": "wait", "timeout_ms": 5000} {"label": "31 vertex binds, guest invalidated", "off": "0x102c", "op": "mmio_r"} {"label": "31 vertex binds, guest invalidated", "off": "0x103c", "op": "mmio_r"} {"gpa": "0x40034040", "label": "31 vertex binds: executed", "len": "0x10", "op": "dump"} {"gpa": "0x40008534", "hex": "340000006c00000005000000010000000b00000010000000000101001100000000010100120000000001010013000000000101001400000000010100150000000001010016000000000101001700000000010100180000000001010019000000000101001a00000000010100", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1a0"} {"ge": "0x5", "gpa": "0x40008000", "label": "52: set host valid, clear guest", "op": "wait", "timeout_ms": 5000} {"byte": 238, "gpa": "0x40060000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40064000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40068000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x4006c000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40070000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40074000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40078000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x4007c000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40080000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40084000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x40088000", "len": "0x100", "op": "fill"} {"byte": 238, "gpa": "0x4008c000", "len": "0x100", "op": "fill"} {"gpa": "0x400085a0", "hex": "350000004400000006000000010000000c000000100000001100000012000000130000001400000015000000160000001700000018000000190000001a0000001b000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1e4"} {"ge": "0x6", "gpa": "0x40008000", "label": "synchronize", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40060000", "label": "compute, type past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40064000", "label": "compute, pipeline past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40068000", "label": "compute, strides past the command", "len": "0x100", "op": "dump"} {"gpa": "0x4006c000", "label": "compute, kernel buffers past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40070000", "label": "compute, half a command", "len": "0x100", "op": "dump"} {"gpa": "0x40074000", "label": "render, type past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40078000", "label": "render, pipeline past the command", "len": "0x100", "op": "dump"} {"gpa": "0x4007c000", "label": "render, strides past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40080000", "label": "render, vertex buffers past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40084000", "label": "render, fragment buffers past the command", "len": "0x100", "op": "dump"} {"gpa": "0x40088000", "label": "render, half a command", "len": "0x100", "op": "dump"} {"gpa": "0x4008c000", "label": "compute, 31 vertex binds", "len": "0x100", "op": "dump"} {"label": "end", "op": "events"}