# render_objects_placement: Placements (section 6.11): a service task with argument buffers takes a placement list with its object list (opcode 68), and the state objects read and write their entries. A depth-stencil state zeroes its entry's first word; a pipeline with a nonzero resourceID is created at the entry's resourceIndex, one with resourceID 0 wherever Metal puts it; a sampler with a nonzero resourceIndex whose gpuResourceID comes out different fails ("Failed to create sampler state with correct resourceID"), one with index 0 is not checked, and one with argument-buffer support writes its entry back (those values are the host's, so not dumped). Isolate only: in-process tasks never get a placement list. {"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": "0x40114000", "hex": "05000180", "op": "mem"} {"gpa": "0x40114004", "hex": "06000180", "op": "mem"} {"gpa": "0x40114008", "hex": "07000180", "op": "mem"} {"gpa": "0x4011400c", "hex": "08000180", "op": "mem"} {"gpa": "0x40114010", "hex": "09000180", "op": "mem"} {"gpa": "0x40114014", "hex": "0a000180", "op": "mem"} {"gpa": "0x40114018", "hex": "0b000180", "op": "mem"} {"gpa": "0x4011401c", "hex": "0c000180", "op": "mem"} {"gpa": "0x40114020", "hex": "0d000180", "op": "mem"} {"gpa": "0x40114024", "hex": "0e000180", "op": "mem"} {"gpa": "0x40114028", "hex": "0f000180", "op": "mem"} {"gpa": "0x4011402c", "hex": "10000180", "op": "mem"} {"gpa": "0x40114030", "hex": "11000180", "op": "mem"} {"gpa": "0x40114034", "hex": "12000180", "op": "mem"} {"gpa": "0x40114038", "hex": "13000180", "op": "mem"} {"gpa": "0x4011403c", "hex": "14000180", "op": "mem"} {"gpa": "0x40114040", "hex": "15000180", "op": "mem"} {"gpa": "0x40114044", "hex": "16000180", "op": "mem"} {"gpa": "0x40114048", "hex": "17000180", "op": "mem"} {"gpa": "0x4011404c", "hex": "18000180", "op": "mem"} {"gpa": "0x40114050", "hex": "19000180", "op": "mem"} {"gpa": "0x40114054", "hex": "1a000180", "op": "mem"} {"gpa": "0x40114058", "hex": "1b000180", "op": "mem"} {"gpa": "0x4011405c", "hex": "1c000180", "op": "mem"} {"gpa": "0x40114060", "hex": "1d000180", "op": "mem"} {"gpa": "0x40114064", "hex": "1e000180", "op": "mem"} {"gpa": "0x40114068", "hex": "1f000180", "op": "mem"} {"gpa": "0x4011406c", "hex": "20000180", "op": "mem"} {"gpa": "0x40114070", "hex": "21000180", "op": "mem"} {"gpa": "0x40114074", "hex": "22000180", "op": "mem"} {"gpa": "0x40114078", "hex": "23000180", "op": "mem"} {"gpa": "0x4011407c", "hex": "24000180", "op": "mem"} {"gpa": "0x40114080", "hex": "25000180", "op": "mem"} {"gpa": "0x40114084", "hex": "26000180", "op": "mem"} {"gpa": "0x40114088", "hex": "27000180", "op": "mem"} {"gpa": "0x4011408c", "hex": "28000180", "op": "mem"} {"gpa": "0x40114090", "hex": "29000180", "op": "mem"} {"gpa": "0x40114094", "hex": "2a000180", "op": "mem"} {"gpa": "0x40114098", "hex": "2b000180", "op": "mem"} {"gpa": "0x4011409c", "hex": "2c000180", "op": "mem"} {"gpa": "0x401140a0", "hex": "2d000180", "op": "mem"} {"gpa": "0x401140a4", "hex": "2e000180", "op": "mem"} {"gpa": "0x401140a8", "hex": "2f000180", "op": "mem"} {"gpa": "0x401140ac", "hex": "30000180", "op": "mem"} {"gpa": "0x401140b0", "hex": "31000180", "op": "mem"} {"gpa": "0x401140b4", "hex": "32000180", "op": "mem"} {"gpa": "0x401140b8", "hex": "33000180", "op": "mem"} {"gpa": "0x401140bc", "hex": "34000180", "op": "mem"} {"gpa": "0x401140c0", "hex": "35000180", "op": "mem"} {"gpa": "0x401140c4", "hex": "36000180", "op": "mem"} {"gpa": "0x401140c8", "hex": "37000180", "op": "mem"} {"gpa": "0x401140cc", "hex": "38000180", "op": "mem"} {"gpa": "0x401140d0", "hex": "39000180", "op": "mem"} {"gpa": "0x401140d4", "hex": "3a000180", "op": "mem"} {"gpa": "0x401140d8", "hex": "3b000180", "op": "mem"} {"gpa": "0x401140dc", "hex": "3c000180", "op": "mem"} {"gpa": "0x401140e0", "hex": "3d000180", "op": "mem"} {"gpa": "0x401140e4", "hex": "3e000180", "op": "mem"} {"gpa": "0x401140e8", "hex": "3f000180", "op": "mem"} {"gpa": "0x401140ec", "hex": "40000180", "op": "mem"} {"gpa": "0x401140f0", "hex": "41000180", "op": "mem"} {"gpa": "0x401140f4", "hex": "42000180", "op": "mem"} {"gpa": "0x401140f8", "hex": "43000180", "op": "mem"} {"gpa": "0x401140fc", "hex": "44000180", "op": "mem"} {"gpa": "0x40010000", "hex": "45000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"} {"file": "shaders/vert.metallib", "gpa": "0x40034000", "op": "mem_file", "sha256": "2883f32e2c00714eae4d74d3a8d5c6c8b884c51fdad7368a3d048009d2b3eea0"} {"gpa": "0x40018000", "hex": "0000020000000000fe0d00000f00000000000000", "op": "mem"} {"file": "shaders/frag.metallib", "gpa": "0x40038000", "op": "mem_file", "sha256": "d69024a2345456addd8bbadac3114798b2d4531317f882cc1366c3f264e18fa4"} {"gpa": "0x40018020", "hex": "00400200000000002e0c00000f00000000000000", "op": "mem"} {"file": "shaders/kernel.metallib", "gpa": "0x4003c000", "op": "mem_file", "sha256": "52f96907c245aafe9287e95deb4d7d9535fc6d522364a8c25b41d20bad81ad2c"} {"gpa": "0x40018040", "hex": "0080020000000000a00d00000f00000000000000", "op": "mem"} {"file": "shaders/tile.metallib", "gpa": "0x40040000", "op": "mem_file", "sha256": "cd2993275c48e909ba6191ef1df9995d5a4c02ef7a934f0ded58b0e978cf4421"} {"gpa": "0x40018060", "hex": "00c0020000000000bc0d00000f00000000000000", "op": "mem"} {"gpa": "0x40018080", "hex": "00400000000000000c00000000000000", "op": "mem"} {"gpa": "0x40018090", "hex": "09000000000000000000000005000000000000000000000010000000000000000205460004000000040000000100000001000100010000000000000000000000", "op": "mem"} {"gpa": "0x400180d0", "hex": "00400000000000000d00000000000000", "op": "mem"} {"gpa": "0x400180e0", "hex": "04000000000000000000000009000000000000000000000000000000000000000000000000000000", "op": "mem"} {"gpa": "0x40018110", "hex": "0e0000000000000000000000290000000308041400000001040100000002040200000000010000000800000002000400000000010446000000", "op": "mem"} {"gpa": "0x40018150", "hex": "0e0000000000000000000000290000000308041400000001040100000002040200000000010000000800000002000400000000010446000000", "op": "mem"} {"gpa": "0x40018190", "hex": "03000000000000000000000000000084000000000000000000007a440000000000000000", "op": "mem"} {"gpa": "0x400181c0", "hex": "03000000000000000000000000000084000000000000000000007a440000000000000000", "op": "mem"} {"gpa": "0x400181f0", "hex": "03000000000000000000000000000084010000000000000000007a440000000000000000", "op": "mem"} {"gpa": "0x40018220", "hex": "03000000000000000000000001000084000000000000000000007a440000000000000000", "op": "mem"} {"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000010000000000004000100", "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": "0x4004c000", "hex": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee030000000000000001000000000000000300000000000000000000000000000005000000000000003412000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003412000000000000", "op": "mem"} {"gpa": "0x40014000", "hex": "00000000000000000000000006140000004000000000000006140000204000000000000006140000404000000000000006140000604000000000000001100000804000000000000008400000904000000000000001100000d04000000000000007280000e04000000000000007390000104100000000000007390000504100000000000007240000904100000000000007240000c04100000000000007240000f041000000000000072400002042000000000000", "op": "mem"} {"gpa": "0x4000841c", "hex": "4400000028000000020000000100000000000000000000000080030000000000b4000000f0000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x44"} {"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x4004c080", "label": "depth-stencil placement before", "len": "0x10", "op": "dump"} {"gpa": "0x40024000", "hex": "64020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000680000000c00000008000000", "op": "mem"} {"gpa": "0x40008444", "hex": "4300000038000000030000000100000002000000010000000500000000000000070000000000000000000100000000006402000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x7c"} {"ge": "0x3", "gpa": "0x40008000", "label": "depth-stencil state", "op": "wait", "timeout_ms": 5000} {"gpa": "0x4004c080", "label": "depth-stencil placement after", "len": "0x10", "op": "dump"} {"byte": 17, "gpa": "0x40044000", "len": "0x40", "op": "fill"} {"gpa": "0x40024300", "hex": "74020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000740000000c0000000900000001000000100000000300000000000300", "op": "mem"} {"gpa": "0x4000847c", "hex": "4300000038000000040000000100000002000000010000000500000000000000070000000000000000030100000000007402000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xb4"} {"ge": "0x4", "gpa": "0x40008000", "label": "pipeline at resource index 3", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40044000", "label": "pipeline at resource index 3", "len": "0x40", "op": "dump"} {"byte": 17, "gpa": "0x40044000", "len": "0x40", "op": "fill"} {"gpa": "0x40024600", "hex": "74020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000740000000c0000000a00000001000000100000000300000000000300", "op": "mem"} {"gpa": "0x400084b4", "hex": "4300000038000000050000000100000002000000010000000500000000000000070000000000000000060100000000007402000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xec"} {"ge": "0x5", "gpa": "0x40008000", "label": "pipeline with index 3, resourceID 0 (not placed)", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40044000", "label": "pipeline with index 3, resourceID 0 (not placed)", "len": "0x40", "op": "dump"} {"gpa": "0x40024900", "hex": "6c020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000700000001400000000000000010000000c000000", "op": "mem"} {"gpa": "0x400084ec", "hex": "4300000038000000060000000100000002000000010000000500000000000000070000000000000000090100000000006c02000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x124"} {"ge": "0x6", "gpa": "0x40008000", "label": "sampler without argument buffers", "op": "wait", "timeout_ms": 5000} {"gpa": "0x4004c0c0", "label": "that sampler's placement", "len": "0x10", "op": "dump"} {"gpa": "0x40024c00", "hex": "6c020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000700000001400000000000000010000000d000000", "op": "mem"} {"gpa": "0x40008524", "hex": "43000000380000000700000001000000020000000100000005000000000000000700000000000000000c0100000000006c02000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x15c"} {"ge": "0x7", "gpa": "0x40008000", "label": "sampler with argument buffers (its placement is written: host values, not observed)", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40024f00", "hex": "6c020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000700000001400000000000000010000000e000000", "op": "mem"} {"gpa": "0x4000855c", "hex": "43000000380000000800000001000000020000000100000005000000000000000700000000000000000f0100000000006c02000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x194"} {"ge": "0x8", "gpa": "0x40008000", "label": "sampler at index 0, resourceID 0x1234 (not checked)", "op": "wait", "timeout_ms": 5000} {"gpa": "0x4004c0e0", "label": "that sampler's placement", "len": "0x10", "op": "dump"} {"gpa": "0x40025200", "hex": "6c020000000000001a00000050020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000020001000000000000000000000000000000000000000000000000000000f03f000000000000f03f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000700000001400000000000000010000000b000000", "op": "mem"} {"gpa": "0x40008594", "hex": "4300000038000000090000000100000002000000010000000500000000000000070000000000000000120100000000006c02000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1cc"} {"label": "sampler at index 5, resourceID 0x1234", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000} {"label": "sampler at index 5, resourceID 0x1234", "off": "0x102c", "op": "mmio_r"} {"label": "sampler at index 5, resourceID 0x1234", "off": "0x103c", "op": "mmio_r"} {"off": "0x1024", "op": "mmio_w", "val": "0x0"} {"gpa": "0x400085cc", "hex": "20000000100000000a00000001000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1dc"} {"ge": "0xa", "gpa": "0x40008000", "label": "stamp 10 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"label": "end", "op": "events"}