Files
reims-vgpu/tests/suite/generated/textures_shared/textures_shared_texture.jsonl
T
Anees Iqbal 98fe2a3bd5 🆕 Replace the tree with libreims_vgpu and its C API
This repository now holds libreims_vgpu, a Rust library that is the host
side of the paravirtualized GPU macOS guests drive, in place of Apple's
ParavirtualizedGraphics.framework: the library and its C API
(reims_vgpu.h), the PCI device's option ROM, QEMU's apple-gfx on that API
(vendor/qemu), the behaviour-lock suite that drives the C API as QEMU
does, and reims-ctl, the VM manager users run. README.md says what it is
and how it is laid out, and AGENTS.md how to change it.

Every file of the earlier tree is replaced. vendor/qemu moves to the
steelbrain/reims-vgpu branch of the same public repository.
2026-10-11 20:27:17 +03:00

177 lines
14 KiB
JSON

# textures_shared_texture: A shared texture backing in task 0 (type 17: a 4x4 RGBA8 texture made shareable, commandType 48 with a v1 descriptor and 53 with a v2) and shared textures in task 1 made from its handle (type 16, commandType 49). Asking for the handle pages the backing in from task 0's pages, so a copy out of the type 16 texture shows them. A fill of the type 16 texture with invalidateGuest marks the backing's guest copy invalid through the kernel task; opcode 53 on task 0 then copies the backing out to its pages. Opcode 65 deletes a backing; a type 16 texture made after that cannot find it. A type 16 texture's discard, prepare and synchronize are empty: 63 and an exec listing it with flags 7 run and change nothing.
{"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": "0x40094000", "hex": "05000180", "op": "mem"}
{"gpa": "0x40094004", "hex": "06000180", "op": "mem"}
{"gpa": "0x40094008", "hex": "07000180", "op": "mem"}
{"gpa": "0x4009400c", "hex": "08000180", "op": "mem"}
{"gpa": "0x40094010", "hex": "09000180", "op": "mem"}
{"gpa": "0x40094014", "hex": "0a000180", "op": "mem"}
{"gpa": "0x40094018", "hex": "0b000180", "op": "mem"}
{"gpa": "0x4009401c", "hex": "0c000180", "op": "mem"}
{"gpa": "0x40094020", "hex": "0d000180", "op": "mem"}
{"gpa": "0x40094024", "hex": "0e000180", "op": "mem"}
{"gpa": "0x40094028", "hex": "0f000180", "op": "mem"}
{"gpa": "0x4009402c", "hex": "10000180", "op": "mem"}
{"gpa": "0x40094030", "hex": "11000180", "op": "mem"}
{"gpa": "0x40094034", "hex": "12000180", "op": "mem"}
{"gpa": "0x40094038", "hex": "13000180", "op": "mem"}
{"gpa": "0x4009403c", "hex": "14000180", "op": "mem"}
{"gpa": "0x40094040", "hex": "15000180", "op": "mem"}
{"gpa": "0x40094044", "hex": "16000180", "op": "mem"}
{"gpa": "0x40094048", "hex": "17000180", "op": "mem"}
{"gpa": "0x4009404c", "hex": "18000180", "op": "mem"}
{"gpa": "0x40094050", "hex": "19000180", "op": "mem"}
{"gpa": "0x40094054", "hex": "1a000180", "op": "mem"}
{"gpa": "0x40094058", "hex": "1b000180", "op": "mem"}
{"gpa": "0x4009405c", "hex": "1c000180", "op": "mem"}
{"gpa": "0x40094060", "hex": "1d000180", "op": "mem"}
{"gpa": "0x40094064", "hex": "1e000180", "op": "mem"}
{"gpa": "0x40094068", "hex": "1f000180", "op": "mem"}
{"gpa": "0x4009406c", "hex": "20000180", "op": "mem"}
{"gpa": "0x40094070", "hex": "21000180", "op": "mem"}
{"gpa": "0x40094074", "hex": "22000180", "op": "mem"}
{"gpa": "0x40094078", "hex": "23000180", "op": "mem"}
{"gpa": "0x4009407c", "hex": "24000180", "op": "mem"}
{"gpa": "0x40010000", "hex": "25000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x4019c000", "hex": "27000180", "op": "mem"}
{"gpa": "0x4019c004", "hex": "28000180", "op": "mem"}
{"gpa": "0x4019c008", "hex": "29000180", "op": "mem"}
{"gpa": "0x4019c00c", "hex": "2a000180", "op": "mem"}
{"gpa": "0x4019c010", "hex": "2b000180", "op": "mem"}
{"gpa": "0x4019c014", "hex": "2c000180", "op": "mem"}
{"gpa": "0x4019c018", "hex": "2d000180", "op": "mem"}
{"gpa": "0x4019c01c", "hex": "2e000180", "op": "mem"}
{"gpa": "0x4019c020", "hex": "2f000180", "op": "mem"}
{"gpa": "0x4019c024", "hex": "30000180", "op": "mem"}
{"gpa": "0x4019c028", "hex": "31000180", "op": "mem"}
{"gpa": "0x4019c02c", "hex": "32000180", "op": "mem"}
{"gpa": "0x4019c030", "hex": "33000180", "op": "mem"}
{"gpa": "0x4019c034", "hex": "34000180", "op": "mem"}
{"gpa": "0x4019c038", "hex": "35000180", "op": "mem"}
{"gpa": "0x4019c03c", "hex": "36000180", "op": "mem"}
{"gpa": "0x4019c040", "hex": "37000180", "op": "mem"}
{"gpa": "0x4019c044", "hex": "38000180", "op": "mem"}
{"gpa": "0x4019c048", "hex": "39000180", "op": "mem"}
{"gpa": "0x4019c04c", "hex": "3a000180", "op": "mem"}
{"gpa": "0x4019c050", "hex": "3b000180", "op": "mem"}
{"gpa": "0x4019c054", "hex": "3c000180", "op": "mem"}
{"gpa": "0x4019c058", "hex": "3d000180", "op": "mem"}
{"gpa": "0x4019c05c", "hex": "3e000180", "op": "mem"}
{"gpa": "0x4019c060", "hex": "3f000180", "op": "mem"}
{"gpa": "0x4019c064", "hex": "40000180", "op": "mem"}
{"gpa": "0x4019c068", "hex": "41000180", "op": "mem"}
{"gpa": "0x4019c06c", "hex": "42000180", "op": "mem"}
{"gpa": "0x4019c070", "hex": "43000180", "op": "mem"}
{"gpa": "0x4019c074", "hex": "44000180", "op": "mem"}
{"gpa": "0x4019c078", "hex": "45000180", "op": "mem"}
{"gpa": "0x4019c07c", "hex": "46000180", "op": "mem"}
{"gpa": "0x4019c080", "hex": "47000180", "op": "mem"}
{"gpa": "0x4019c084", "hex": "48000180", "op": "mem"}
{"gpa": "0x4019c088", "hex": "49000180", "op": "mem"}
{"gpa": "0x4019c08c", "hex": "4a000180", "op": "mem"}
{"gpa": "0x4019c090", "hex": "4b000180", "op": "mem"}
{"gpa": "0x4019c094", "hex": "4c000180", "op": "mem"}
{"gpa": "0x4019c098", "hex": "4d000180", "op": "mem"}
{"gpa": "0x4019c09c", "hex": "4e000180", "op": "mem"}
{"gpa": "0x4019c0a0", "hex": "4f000180", "op": "mem"}
{"gpa": "0x4019c0a4", "hex": "50000180", "op": "mem"}
{"gpa": "0x4019c0a8", "hex": "51000180", "op": "mem"}
{"gpa": "0x4019c0ac", "hex": "52000180", "op": "mem"}
{"gpa": "0x4019c0b0", "hex": "53000180", "op": "mem"}
{"gpa": "0x4019c0b4", "hex": "54000180", "op": "mem"}
{"gpa": "0x4019c0b8", "hex": "55000180", "op": "mem"}
{"gpa": "0x4019c0bc", "hex": "56000180", "op": "mem"}
{"gpa": "0x4019c0c0", "hex": "57000180", "op": "mem"}
{"gpa": "0x4019c0c4", "hex": "58000180", "op": "mem"}
{"gpa": "0x4019c0c8", "hex": "59000180", "op": "mem"}
{"gpa": "0x4019c0cc", "hex": "5a000180", "op": "mem"}
{"gpa": "0x4019c0d0", "hex": "5b000180", "op": "mem"}
{"gpa": "0x4019c0d4", "hex": "5c000180", "op": "mem"}
{"gpa": "0x4019c0d8", "hex": "5d000180", "op": "mem"}
{"gpa": "0x4019c0dc", "hex": "5e000180", "op": "mem"}
{"gpa": "0x4019c0e0", "hex": "5f000180", "op": "mem"}
{"gpa": "0x4019c0e4", "hex": "60000180", "op": "mem"}
{"gpa": "0x4019c0e8", "hex": "61000180", "op": "mem"}
{"gpa": "0x4019c0ec", "hex": "62000180", "op": "mem"}
{"gpa": "0x4019c0f0", "hex": "63000180", "op": "mem"}
{"gpa": "0x4019c0f4", "hex": "64000180", "op": "mem"}
{"gpa": "0x4019c0f8", "hex": "65000180", "op": "mem"}
{"gpa": "0x4019c0fc", "hex": "66000180", "op": "mem"}
{"gpa": "0x40098000", "hex": "67000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40034000", "hex": "404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f", "op": "mem"}
{"gpa": "0x40018000", "hex": "0040000000000000080000000100010000000000000000000000000000000000010101040000000000000000400000000000000010000000000000000400000004000000010000003000000000000000000000000203460004000000040000000100000001000100010020000000000000000000", "op": "mem"}
{"gpa": "0x40038000", "hex": "7f7e7d7c7b7a797877767574737271706f6e6d6c6b6a696867666564636261605f5e5d5c5b5a595857565554535251504f4e4d4c4b4a49484746454443424140", "op": "mem"}
{"gpa": "0x40018080", "hex": "00400000000000000900000001000100000000000000000000000000000000000101010400000000000000004000000000000000100000000000000004000000040000000100000035000000000000000000000002460003000000040000000400000001000000010001000100200000000000000000000203040500", "op": "mem"}
{"gpa": "0x400a0000", "hex": "010000003100000000000000", "op": "mem"}
{"gpa": "0x400a0010", "hex": "010000003100000000000000", "op": "mem"}
{"gpa": "0x400a0020", "hex": "020000003100000000000000", "op": "mem"}
{"gpa": "0x400a0030", "hex": "020000003100000000000000", "op": "mem"}
{"gpa": "0x400a0040", "hex": "00400000000000000800000000000000", "op": "mem"}
{"gpa": "0x40008400", "hex": "380000001c0000000100000000000000000008000000000004000100", "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": "000000000000000000000000117400000040000000000000117c00008040000000000000", "op": "mem"}
{"gpa": "0x4000841c", "hex": "330000001800000002000000000000000000000024000000", "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": "0x40008434", "hex": "380000001c0000000300000002000000000010000000000026000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x50"}
{"ge": "0x3", "gpa": "0x40008000", "label": "stamp 3 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x4009c000", "hex": "000000000000000000000000100c00000040000000000000100c00001040000000000000100c00002040000000000000100c00003040000000000000011000004040000000000000", "op": "mem"}
{"gpa": "0x40008450", "hex": "330000001800000004000000010000000000000048000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x68"}
{"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400ac000", "hex": "c8000000020000002e01000060000000010000000500000000000000000000000000000000000000000000000000000004000000000000000400000000000000010000000000000000000000000000001000000000000000400000000000000000000000000000002e0100006000000003000000050000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000004000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40008468", "hex": "4300000040000000050000000100000003000000010000000100000000000000030000000000000005000000000000000000010000000000c800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xa8"}
{"ge": "0x5", "gpa": "0x40008000", "label": "read both backings through shared textures", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400bc000", "label": "B", "len": "0x80", "op": "dump"}
{"gpa": "0x400ac000", "hex": "6c0000000200000041010000640000000100000000000000020000000000000002000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000f03f00000000000000000000000000000000000000000000f03f46000000", "op": "mem"}
{"gpa": "0x400084a8", "hex": "4300000038000000060000000100000002000000010000000100000002000000050000000000000000000100000000006c00000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xe0"}
{"ge": "0x6", "gpa": "0x40008000", "label": "fill through the handle, invalidateGuest", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400ac000", "hex": "68000000020000002e0100006000000002000000050000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000008000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
{"gpa": "0x400084e0", "hex": "4300000038000000070000000100000002000000010000000200000006000000050000000000000000000100000000006800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x118"}
{"ge": "0x7", "gpa": "0x40008000", "label": "a second texture from the same handle sees the fill", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400bc080", "label": "B+0x80", "len": "0x40", "op": "dump"}
{"gpa": "0x40034000", "label": "backing 1's pages before 53", "len": "0x40", "op": "dump"}
{"gpa": "0x40008518", "hex": "350000001c0000000800000000000000020000000100000002000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x134"}
{"ge": "0x8", "gpa": "0x40008000", "label": "53 on task 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40034000", "label": "backing 1's pages after 53", "len": "0x40", "op": "dump"}
{"gpa": "0x40038000", "label": "backing 2's pages after 53", "len": "0x40", "op": "dump"}
{"gpa": "0x40008534", "hex": "41000000100000000900000002000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x144"}
{"ge": "0x9", "gpa": "0x40008000", "label": "65 on backing 2", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008544", "hex": "41000000100000000a0000003c000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x154"}
{"ge": "0xa", "gpa": "0x40008000", "label": "65 on an unknown reference", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40038000", "hex": "99999999999999999999999999999999", "op": "mem"}
{"gpa": "0x400ac000", "hex": "68000000020000002e010000600000000400000005000000000000000000000000000000000000000000000000000000040000000000000004000000000000000100000000000000c000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40008554", "hex": "43000000380000000b0000000100000002000000010000000400000000000000050000000000000000000100000000006800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x18c"}
{"ge": "0xb", "gpa": "0x40008000", "label": "a shared texture made after 65", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400bc0c0", "label": "B+0xc0", "len": "0x40", "op": "dump"}
{"gpa": "0x4000858c", "hex": "3f000000180000000c000000010000000100000001000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1a4"}
{"ge": "0xc", "gpa": "0x40008000", "label": "63 on a shared texture: its discard does nothing", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400ac000", "hex": "2800000002000000320100002000000005000000000100000000000010000000000000005d000000", "op": "mem"}
{"gpa": "0x400085a4", "hex": "43000000380000000d0000000100000002000000010000000100000007000000050000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1dc"}
{"ge": "0xd", "gpa": "0x40008000", "label": "a shared texture with flags 7: its prepare and synchronize do nothing", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400bc100", "label": "B+0x100", "len": "0x10", "op": "dump"}
{"gpa": "0x400085dc", "hex": "20000000100000000e00000001000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1ec"}
{"ge": "0xe", "gpa": "0x40008000", "label": "stamp 14 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400085ec", "hex": "20000000100000000f00000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1fc"}
{"ge": "0xf", "gpa": "0x40008000", "label": "stamp 15 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"label": "end", "op": "events"}