diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 23b758897d..aa7e345541 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md @@ -1302,7 +1302,8 @@ and any validation error fails them. - `indirect_clamp_test`: the `ExecuteIndirect` argument clamp pass itself (section 4.7), with no game files: every argument kind (draw, draw indexed, dispatch, mesh dispatch) and the counted variants, in-range records bit-identical, garbage records bounded, records and counts past `max_command_count` empty, and the per-batch work - budget saturating; clean SKIP without a Vulkan device. + budget saturating; dispatch records bounded by the device's `maxComputeWorkGroupCount` (70 000 x 1 x 1 kept and run + where the device allows it, cut and counted where it does not); clean SKIP without a Vulkan device. - `d3d12_gcl8_test`: the public `ID3D12GraphicsCommandList8` surface: `QueryInterface` for its IID, `OMSetFrontAndBackStencilRef(1, 2)` with the recorded values, and the reference count around the query. It creates only an allocator and a list, so it needs no GPU or Vulkan loader. @@ -4339,14 +4340,22 @@ Not implemented yet: `LEONIDA_SKIP_COMPUTE`) or mistranslates leaves whatever the memory held: a dispatch of billions of groups or a draw of four billion vertices runs until the host resets the display driver. One small compute pass per `ExecuteIndirect` call copies the active records into device-local scratch with their values bounded - 2^24 - vertices or indices, 2^26 vertex instances (count times instances), 65 535 groups per dimension, 2^20 groups per - dispatch and a 2^27-unit work budget per call that saturates through an atomic compare-and-swap - and writes an + vertices or indices, 2^26 vertex instances (count times instances), the device's `maxComputeWorkGroupCount` groups + per dimension for a dispatch (65 535 for a mesh dispatch), 2^20 groups per dispatch and a 2^27-unit work budget per + call that saturates through an atomic compare-and-swap - and writes an empty record past `min(count, max_command_count)` and past the budget, and the clamped count word a `*Count` draw then reads (so the count is at most `maxDrawCount`, VUID-vkCmdDrawIndirectCount-countBuffer-02717). A draw record of 2^23 vertices or indices an instance or more is a slot the title has not filled: it runs empty and charges nothing (RT-INDIRECT-DRAW-UNFILLED-COUNT). Before, each was cut to 2^24 and charged that, so eight of them used up the budget and every later draw in the list ran empty; a census in a VIctory fork found 90 such records in one - list. The indirect command reads that scratch. A draw emits the pass before its rendering scope opens: `vkCmdCopyBuffer` and a + list. A dispatch record's groups per dimension follow the device (#2230): the title's tile + passes ask for 67 440 groups in x at 2560x1440 (found in the VIctory-Belobug-AMD fork of VIctory, + `crates/victory-gpu/src/indirect.rs`), RADV runs 2^32 - 1 in x in one dispatch, and the cut at 65 535 dropped the + last 1 905 tiles of the pass. A device that allows less (llvmpipe: 65 535) still gets the record cut at its + limit: running the rest would take more dispatches with a group-ID base the translated shader does not read. The + counters' `indirect clamp dispatch:` line (every 10 s while dispatch records are clamped) gives the records, those + wider than 65 535 in x, the widest x that ran and those cut at the device's limits, so a run shows which case it + is. The indirect command reads that scratch. A draw emits the pass before its rendering scope opens: `vkCmdCopyBuffer` and a memory barrier with a transfer access are not allowed inside a dynamic-rendering scope. The records are bit-identical to the application's when they are within the limits, the argument and count buffers are left untouched, and the scratch comes from a per-submission pool (`vulkan_scratch.h`) that a list with many indirect diff --git a/runtime/src/indirect_clamp.comp b/runtime/src/indirect_clamp.comp index 7cf9ec2449..37af7431ff 100644 --- a/runtime/src/indirect_clamp.comp +++ b/runtime/src/indirect_clamp.comp @@ -57,6 +57,7 @@ const uint unfilled_draw = 1u << 23u; // vertices or indices an instance const uint max_vertex_instances = 1u << 26u; // vertex (or index) count times instance count const uint max_mesh_dimension = 65535u; // groups in a mesh dispatch's x (dispatches: p.max_x, y, z) const uint max_groups = 1u << 20u; // groups in one dispatch or mesh dispatch +const uint narrow_groups = 65535u; // the x a dispatch record was cut at before, for the counters const uint budget = 1u << 27u; // work in the whole command list: vertices, indices, or groups * 64 // Charges `cost` units to the batch's budget. Saturating: a record that no longer fits runs empty, so the batch never @@ -148,6 +149,8 @@ void main() { uint y = min(asked_y, limit.y); uint z = min(asked_z, limit.z); if (p.kind == 3u) { y = 1u; z = 1u; } + // A dispatch past the device's limit in some dimension, cut there (stats word 14). + const bool past_device = p.kind != 3u && (x != asked_x || y != asked_y || z != asked_z); const uint groups = p.flags >> 1u; if (groups != 0u && x != 0u && y != 0u && z != 0u) { x = min(x, groups); @@ -159,6 +162,14 @@ void main() { y = 0u; z = 0u; } + if (p.kind != 3u) { + // Dispatch records (stats words 12-15): those that run wider than 65 535 groups in x, the widest x that + // runs, those cut at the device's limits (and still run), and all of them. + atomicAdd(p.stats.data[15], 1u); + if (x > narrow_groups) atomicAdd(p.stats.data[12], 1u); + atomicMax(p.stats.data[13], x); + if (past_device && x != 0u) atomicAdd(p.stats.data[14], 1u); + } clamped = x != asked_x || y != asked_y || z != asked_z ? 1u : 0u; cost = x * y * z * (p.kind == 3u ? 128u : 64u); words[0] = x; diff --git a/runtime/src/indirect_clamp_spv.h b/runtime/src/indirect_clamp_spv.h index fc13cd44ca..36e4d96545 100644 --- a/runtime/src/indirect_clamp_spv.h +++ b/runtime/src/indirect_clamp_spv.h @@ -3,7 +3,7 @@ #include namespace leonida { inline constexpr std::uint32_t indirect_clamp_spirv[] = { - 0x07230203u, 0x00010500u, 0x0008000bu, 0x00000353u, 0x00000000u, 0x00020011u, 0x00000001u, 0x00020011u, + 0x07230203u, 0x00010500u, 0x0008000bu, 0x000003b0u, 0x00000000u, 0x00020011u, 0x00000001u, 0x00020011u, 0x000014e3u, 0x0006000bu, 0x00000001u, 0x4c534c47u, 0x6474732eu, 0x3035342eu, 0x00000000u, 0x0003000eu, 0x000014e4u, 0x00000001u, 0x0007000fu, 0x00000005u, 0x00000004u, 0x6e69616du, 0x00000000u, 0x00000026u, 0x0000005au, 0x00060010u, 0x00000004u, 0x00000011u, 0x00000040u, 0x00000001u, 0x00000001u, 0x00030003u, @@ -46,7 +46,7 @@ inline constexpr std::uint32_t indirect_clamp_spirv[] = { 0x00030047u, 0x00000022u, 0x00000002u, 0x00050048u, 0x00000022u, 0x00000000u, 0x00000023u, 0x00000000u, 0x00040047u, 0x00000023u, 0x00000006u, 0x00000004u, 0x00030047u, 0x00000024u, 0x00000002u, 0x00050048u, 0x00000024u, 0x00000000u, 0x00000023u, 0x00000000u, 0x00040047u, 0x0000005au, 0x0000000bu, 0x0000001cu, - 0x00040047u, 0x00000260u, 0x0000000bu, 0x00000019u, 0x00020013u, 0x00000002u, 0x00030021u, 0x00000003u, + 0x00040047u, 0x00000293u, 0x0000000bu, 0x00000019u, 0x00020013u, 0x00000002u, 0x00030021u, 0x00000003u, 0x00000002u, 0x00040015u, 0x00000006u, 0x00000020u, 0x00000000u, 0x00040020u, 0x00000007u, 0x00000007u, 0x00000006u, 0x00020014u, 0x00000008u, 0x0004002bu, 0x00000006u, 0x0000000eu, 0x00000000u, 0x00030029u, 0x00000008u, 0x00000012u, 0x00030027u, 0x00000015u, 0x000014e5u, 0x00030027u, 0x00000016u, 0x000014e5u, @@ -83,249 +83,270 @@ inline constexpr std::uint32_t indirect_clamp_spirv[] = { 0x00000006u, 0x000001a8u, 0x0000ffffu, 0x0006002cu, 0x00000058u, 0x000001a9u, 0x000001a8u, 0x0000002fu, 0x0000002fu, 0x0004002bu, 0x00000027u, 0x000001abu, 0x0000000cu, 0x0004002bu, 0x00000027u, 0x000001aeu, 0x0000000du, 0x0004002bu, 0x00000027u, 0x000001b1u, 0x0000000eu, 0x0006002cu, 0x00000058u, 0x000001b5u, - 0x0000002fu, 0x0000002fu, 0x0000002fu, 0x0004002bu, 0x00000006u, 0x000001f7u, 0x00100000u, 0x0004002bu, - 0x00000006u, 0x00000222u, 0x00000080u, 0x0004002bu, 0x00000006u, 0x00000223u, 0x00000040u, 0x0006002cu, - 0x00000058u, 0x00000260u, 0x00000223u, 0x0000002fu, 0x0000002fu, 0x00030001u, 0x00000008u, 0x000002fau, - 0x00050036u, 0x00000002u, 0x00000004u, 0x00000000u, 0x00000003u, 0x000200f8u, 0x00000005u, 0x0004003bu, - 0x00000115u, 0x00000116u, 0x00000007u, 0x000300f7u, 0x00000261u, 0x00000000u, 0x000300fbu, 0x0000000eu, - 0x00000262u, 0x000200f8u, 0x00000262u, 0x00050041u, 0x0000005bu, 0x0000005cu, 0x0000005au, 0x0000000eu, - 0x0004003du, 0x00000006u, 0x0000005du, 0x0000005cu, 0x00050041u, 0x00000060u, 0x00000061u, 0x00000026u, - 0x0000005fu, 0x0004003du, 0x00000006u, 0x00000062u, 0x00000061u, 0x000500aeu, 0x00000008u, 0x00000063u, - 0x0000005du, 0x00000062u, 0x000300f7u, 0x00000065u, 0x00000000u, 0x000400fau, 0x00000063u, 0x00000064u, - 0x00000065u, 0x000200f8u, 0x00000064u, 0x000200f9u, 0x00000261u, 0x000200f8u, 0x00000065u, 0x00050041u, - 0x00000060u, 0x00000069u, 0x00000026u, 0x00000068u, 0x0004003du, 0x00000006u, 0x0000006au, 0x00000069u, - 0x00050080u, 0x00000006u, 0x0000006cu, 0x0000006au, 0x0000005du, 0x00050041u, 0x00000060u, 0x0000006fu, - 0x00000026u, 0x0000006eu, 0x0004003du, 0x00000006u, 0x00000070u, 0x0000006fu, 0x000500b2u, 0x00000008u, - 0x00000071u, 0x00000070u, 0x0000002fu, 0x000300f7u, 0x00000074u, 0x00000000u, 0x000400fau, 0x00000071u, - 0x00000073u, 0x0000007bu, 0x000200f8u, 0x00000073u, 0x000500aau, 0x00000008u, 0x00000077u, 0x00000070u, - 0x0000000eu, 0x000600a9u, 0x00000006u, 0x0000007au, 0x00000077u, 0x00000078u, 0x00000079u, 0x000200f9u, - 0x00000074u, 0x000200f8u, 0x0000007bu, 0x000200f9u, 0x00000074u, 0x000200f8u, 0x00000074u, 0x000700f5u, - 0x00000006u, 0x0000029du, 0x0000007au, 0x00000073u, 0x0000007cu, 0x0000007bu, 0x00050084u, 0x00000006u, - 0x00000081u, 0x0000005du, 0x0000029du, 0x00050041u, 0x00000060u, 0x00000085u, 0x00000026u, 0x00000084u, - 0x0004003du, 0x00000006u, 0x00000086u, 0x00000085u, 0x000500c7u, 0x00000006u, 0x00000087u, 0x00000086u, - 0x0000002fu, 0x000500abu, 0x00000008u, 0x00000088u, 0x00000087u, 0x0000000eu, 0x00050041u, 0x00000060u, - 0x0000008bu, 0x00000026u, 0x0000008au, 0x0004003du, 0x00000006u, 0x0000008cu, 0x0000008bu, 0x000300f7u, - 0x0000008fu, 0x00000000u, 0x000400fau, 0x00000088u, 0x0000008eu, 0x0000008fu, 0x000200f8u, 0x0000008eu, - 0x00050041u, 0x00000092u, 0x00000093u, 0x00000026u, 0x00000091u, 0x0004003du, 0x00000016u, 0x00000094u, - 0x00000093u, 0x00060041u, 0x0000002du, 0x00000095u, 0x00000094u, 0x0000002cu, 0x0000002cu, 0x0006003du, - 0x00000006u, 0x00000096u, 0x00000095u, 0x00000002u, 0x00000004u, 0x0007000cu, 0x00000006u, 0x00000099u, - 0x00000001u, 0x00000026u, 0x0000008cu, 0x00000096u, 0x000500aau, 0x00000008u, 0x0000009bu, 0x0000006cu, - 0x0000000eu, 0x000300f7u, 0x0000009du, 0x00000000u, 0x000400fau, 0x0000009bu, 0x0000009cu, 0x0000009du, - 0x000200f8u, 0x0000009cu, 0x00050041u, 0x0000009fu, 0x000000a0u, 0x00000026u, 0x0000009eu, 0x0004003du, - 0x00000018u, 0x000000a1u, 0x000000a0u, 0x00060041u, 0x0000002du, 0x000000a3u, 0x000000a1u, 0x0000002cu, - 0x0000002cu, 0x0005003eu, 0x000000a3u, 0x00000099u, 0x00000002u, 0x00000004u, 0x000500abu, 0x00000008u, - 0x000000a6u, 0x00000096u, 0x00000099u, 0x000300f7u, 0x000000a8u, 0x00000000u, 0x000400fau, 0x000000a6u, - 0x000000a7u, 0x000000a8u, 0x000200f8u, 0x000000a7u, 0x00050041u, 0x00000029u, 0x000000aau, 0x00000026u, - 0x000000a9u, 0x0004003du, 0x00000019u, 0x000000abu, 0x000000aau, 0x00060041u, 0x0000002du, 0x000000acu, - 0x000000abu, 0x0000002cu, 0x00000091u, 0x000700eau, 0x00000006u, 0x000000adu, 0x000000acu, 0x0000002fu, - 0x0000000eu, 0x0000002fu, 0x000200f9u, 0x000000a8u, 0x000200f8u, 0x000000a8u, 0x000200f9u, 0x0000009du, - 0x000200f8u, 0x0000009du, 0x000200f9u, 0x0000008fu, 0x000200f8u, 0x0000008fu, 0x000700f5u, 0x00000006u, - 0x000002a3u, 0x0000008cu, 0x00000074u, 0x00000099u, 0x0000009du, 0x000500aeu, 0x00000008u, 0x000000b0u, - 0x0000006cu, 0x000002a3u, 0x000300f7u, 0x000000b2u, 0x00000000u, 0x000400fau, 0x000000b0u, 0x000000b1u, - 0x000000b2u, 0x000200f8u, 0x000000b1u, 0x000200f9u, 0x000000b4u, 0x000200f8u, 0x000000b4u, 0x000700f5u, - 0x00000006u, 0x00000345u, 0x0000000eu, 0x000000b1u, 0x000000c5u, 0x000000b5u, 0x000500b0u, 0x00000008u, - 0x000000bbu, 0x00000345u, 0x0000029du, 0x000400f6u, 0x000000b6u, 0x000000b5u, 0x00000000u, 0x000400fau, - 0x000000bbu, 0x000000b5u, 0x000000b6u, 0x000200f8u, 0x000000b5u, 0x00050041u, 0x000000bdu, 0x000000beu, - 0x00000026u, 0x000000bcu, 0x0004003du, 0x00000017u, 0x000000bfu, 0x000000beu, 0x00050080u, 0x00000006u, - 0x000000c2u, 0x00000081u, 0x00000345u, 0x00060041u, 0x0000002du, 0x000000c3u, 0x000000bfu, 0x0000002cu, - 0x000000c2u, 0x0005003eu, 0x000000c3u, 0x0000000eu, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, - 0x000000c5u, 0x00000345u, 0x00000091u, 0x000200f9u, 0x000000b4u, 0x000200f8u, 0x000000b6u, 0x000200f9u, - 0x00000261u, 0x000200f8u, 0x000000b2u, 0x00050041u, 0x00000060u, 0x000000cau, 0x00000026u, 0x000000c9u, - 0x0004003du, 0x00000006u, 0x000000cbu, 0x000000cau, 0x00050084u, 0x00000006u, 0x000000ccu, 0x0000005du, - 0x000000cbu, 0x000200f9u, 0x000000cfu, 0x000200f8u, 0x000000cfu, 0x000700f5u, 0x00000008u, 0x000002aeu, - 0x00000012u, 0x000000b2u, 0x000000e4u, 0x000000d2u, 0x000700f5u, 0x00000006u, 0x000002a9u, 0x0000000eu, - 0x000000b2u, 0x000000e6u, 0x000000d2u, 0x000500b0u, 0x00000008u, 0x000000d6u, 0x000002a9u, 0x0000029du, - 0x000400f6u, 0x000000d1u, 0x000000d2u, 0x00000000u, 0x000400fau, 0x000000d6u, 0x000000d0u, 0x000000d1u, - 0x000200f8u, 0x000000d0u, 0x000300f7u, 0x000000d9u, 0x00000000u, 0x000400fau, 0x000002aeu, 0x000000d8u, - 0x000000d9u, 0x000200f8u, 0x000000d8u, 0x00050041u, 0x000000dau, 0x000000dbu, 0x00000026u, 0x0000002cu, - 0x0004003du, 0x00000015u, 0x000000dcu, 0x000000dbu, 0x00050080u, 0x00000006u, 0x000000dfu, 0x000000ccu, - 0x000002a9u, 0x00060041u, 0x0000002du, 0x000000e0u, 0x000000dcu, 0x0000002cu, 0x000000dfu, 0x0006003du, - 0x00000006u, 0x000000e1u, 0x000000e0u, 0x00000002u, 0x00000004u, 0x000500aau, 0x00000008u, 0x000000e3u, - 0x000000e1u, 0x000000e2u, 0x000200f9u, 0x000000d9u, 0x000200f8u, 0x000000d9u, 0x000700f5u, 0x00000008u, - 0x000000e4u, 0x000002aeu, 0x000000d0u, 0x000000e3u, 0x000000d8u, 0x000200f9u, 0x000000d2u, 0x000200f8u, - 0x000000d2u, 0x00050080u, 0x00000006u, 0x000000e6u, 0x000002a9u, 0x00000091u, 0x000200f9u, 0x000000cfu, - 0x000200f8u, 0x000000d1u, 0x000400a8u, 0x00000008u, 0x000000e8u, 0x000002aeu, 0x000300f7u, 0x000000eau, - 0x00000000u, 0x000400fau, 0x000000e8u, 0x000000e9u, 0x000000eau, 0x000200f8u, 0x000000e9u, 0x000500aau, - 0x00000008u, 0x000000edu, 0x00000070u, 0x0000007cu, 0x000300f7u, 0x000000efu, 0x00000000u, 0x000400fau, - 0x000000edu, 0x000000eeu, 0x000000efu, 0x000200f8u, 0x000000eeu, 0x00050041u, 0x000000dau, 0x000000f0u, - 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, 0x000000f1u, 0x000000f0u, 0x00060041u, 0x0000002du, - 0x000000f3u, 0x000000f1u, 0x0000002cu, 0x000000ccu, 0x0006003du, 0x00000006u, 0x000000f4u, 0x000000f3u, - 0x00000002u, 0x00000004u, 0x000500aau, 0x00000008u, 0x000000f5u, 0x000000f4u, 0x000000e2u, 0x000200f9u, - 0x000000efu, 0x000200f8u, 0x000000efu, 0x000700f5u, 0x00000008u, 0x000000f6u, 0x000000edu, 0x000000e9u, - 0x000000f5u, 0x000000eeu, 0x000200f9u, 0x000000eau, 0x000200f8u, 0x000000eau, 0x000700f5u, 0x00000008u, - 0x000000f7u, 0x000002aeu, 0x000000d1u, 0x000000f6u, 0x000000efu, 0x000300f7u, 0x000000f9u, 0x00000000u, - 0x000400fau, 0x000000f7u, 0x000000f8u, 0x000000f9u, 0x000200f8u, 0x000000f8u, 0x000200f9u, 0x000000fbu, - 0x000200f8u, 0x000000fbu, 0x000700f5u, 0x00000006u, 0x00000341u, 0x0000000eu, 0x000000f8u, 0x0000010au, - 0x000000fcu, 0x000500b0u, 0x00000008u, 0x00000102u, 0x00000341u, 0x0000029du, 0x000400f6u, 0x000000fdu, - 0x000000fcu, 0x00000000u, 0x000400fau, 0x00000102u, 0x000000fcu, 0x000000fdu, 0x000200f8u, 0x000000fcu, - 0x00050041u, 0x000000bdu, 0x00000103u, 0x00000026u, 0x000000bcu, 0x0004003du, 0x00000017u, 0x00000104u, - 0x00000103u, 0x00050080u, 0x00000006u, 0x00000107u, 0x00000081u, 0x00000341u, 0x00060041u, 0x0000002du, - 0x00000108u, 0x00000104u, 0x0000002cu, 0x00000107u, 0x0005003eu, 0x00000108u, 0x0000000eu, 0x00000002u, - 0x00000004u, 0x00050080u, 0x00000006u, 0x0000010au, 0x00000341u, 0x00000091u, 0x000200f9u, 0x000000fbu, - 0x000200f8u, 0x000000fdu, 0x00050041u, 0x00000029u, 0x0000010bu, 0x00000026u, 0x000000a9u, 0x0004003du, - 0x00000019u, 0x0000010cu, 0x0000010bu, 0x00060041u, 0x0000002du, 0x0000010du, 0x0000010cu, 0x0000002cu, - 0x0000002cu, 0x000700eau, 0x00000006u, 0x0000010eu, 0x0000010du, 0x0000002fu, 0x0000000eu, 0x0000002fu, - 0x00060041u, 0x0000002du, 0x00000111u, 0x0000010cu, 0x0000002cu, 0x0000009eu, 0x000700eau, 0x00000006u, - 0x00000112u, 0x00000111u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x000200f9u, 0x00000261u, 0x000200f8u, - 0x000000f9u, 0x0003003eu, 0x00000116u, 0x00000117u, 0x000300f7u, 0x0000011eu, 0x00000000u, 0x000400fau, - 0x00000071u, 0x0000011du, 0x0000016du, 0x000200f8u, 0x0000011du, 0x00050041u, 0x000000dau, 0x00000120u, - 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, 0x00000121u, 0x00000120u, 0x00060041u, 0x0000002du, - 0x00000123u, 0x00000121u, 0x0000002cu, 0x000000ccu, 0x0006003du, 0x00000006u, 0x00000124u, 0x00000123u, - 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x00000129u, 0x000000ccu, 0x0000002fu, 0x00060041u, - 0x0000002du, 0x0000012au, 0x00000121u, 0x0000002cu, 0x00000129u, 0x0006003du, 0x00000006u, 0x0000012bu, - 0x0000012au, 0x00000002u, 0x00000004u, 0x000500aeu, 0x00000008u, 0x0000012fu, 0x00000124u, 0x0000012eu, - 0x000300f7u, 0x00000132u, 0x00000000u, 0x000400fau, 0x0000012fu, 0x00000131u, 0x00000133u, 0x000200f8u, - 0x00000131u, 0x000200f9u, 0x00000132u, 0x000200f8u, 0x00000133u, 0x0007000cu, 0x00000006u, 0x00000136u, - 0x00000001u, 0x00000026u, 0x00000124u, 0x00000135u, 0x000200f9u, 0x00000132u, 0x000200f8u, 0x00000132u, - 0x000700f5u, 0x00000006u, 0x000002e0u, 0x0000000eu, 0x00000131u, 0x00000136u, 0x00000133u, 0x0007000cu, - 0x00000006u, 0x0000013cu, 0x00000001u, 0x00000029u, 0x000002e0u, 0x0000002fu, 0x00050086u, 0x00000006u, - 0x0000013du, 0x0000013au, 0x0000013cu, 0x0007000cu, 0x00000006u, 0x0000013eu, 0x00000001u, 0x00000026u, - 0x0000012bu, 0x0000013du, 0x000500aau, 0x00000008u, 0x00000140u, 0x000002e0u, 0x0000000eu, 0x000600a9u, - 0x00000006u, 0x0000034cu, 0x00000140u, 0x0000000eu, 0x0000013eu, 0x000500abu, 0x00000008u, 0x00000145u, - 0x000002e0u, 0x00000124u, 0x000500abu, 0x00000008u, 0x00000148u, 0x0000034cu, 0x0000012bu, 0x000500a6u, - 0x00000008u, 0x00000149u, 0x00000145u, 0x00000148u, 0x000600a9u, 0x00000006u, 0x0000014au, 0x00000149u, - 0x0000002fu, 0x0000000eu, 0x00050084u, 0x00000006u, 0x0000014du, 0x000002e0u, 0x0000034cu, 0x00050041u, - 0x00000007u, 0x0000014fu, 0x00000116u, 0x0000002cu, 0x0003003eu, 0x0000014fu, 0x000002e0u, 0x00050041u, - 0x00000007u, 0x00000151u, 0x00000116u, 0x00000091u, 0x0003003eu, 0x00000151u, 0x0000034cu, 0x00050080u, - 0x00000006u, 0x00000156u, 0x000000ccu, 0x00000155u, 0x00060041u, 0x0000002du, 0x00000157u, 0x00000121u, - 0x0000002cu, 0x00000156u, 0x0006003du, 0x00000006u, 0x00000158u, 0x00000157u, 0x00000002u, 0x00000004u, - 0x00050041u, 0x00000007u, 0x00000159u, 0x00000116u, 0x000000bcu, 0x0003003eu, 0x00000159u, 0x00000158u, - 0x00050080u, 0x00000006u, 0x0000015du, 0x000000ccu, 0x0000007cu, 0x00060041u, 0x0000002du, 0x0000015eu, - 0x00000121u, 0x0000002cu, 0x0000015du, 0x0006003du, 0x00000006u, 0x0000015fu, 0x0000015eu, 0x00000002u, - 0x00000004u, 0x00050041u, 0x00000007u, 0x00000160u, 0x00000116u, 0x0000009eu, 0x0003003eu, 0x00000160u, - 0x0000015fu, 0x000500aau, 0x00000008u, 0x00000163u, 0x00000070u, 0x0000002fu, 0x000300f7u, 0x00000165u, - 0x00000000u, 0x000400fau, 0x00000163u, 0x00000164u, 0x00000165u, 0x000200f8u, 0x00000164u, 0x00050080u, - 0x00000006u, 0x00000169u, 0x000000ccu, 0x00000078u, 0x00060041u, 0x0000002du, 0x0000016au, 0x00000121u, - 0x0000002cu, 0x00000169u, 0x0006003du, 0x00000006u, 0x0000016bu, 0x0000016au, 0x00000002u, 0x00000004u, - 0x00050041u, 0x00000007u, 0x0000016cu, 0x00000116u, 0x000000a9u, 0x0003003eu, 0x0000016cu, 0x0000016bu, - 0x000200f9u, 0x00000165u, 0x000200f8u, 0x00000165u, 0x000200f9u, 0x0000011eu, 0x000200f8u, 0x0000016du, - 0x00050041u, 0x000000dau, 0x0000016fu, 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, 0x00000170u, - 0x0000016fu, 0x00060041u, 0x0000002du, 0x00000172u, 0x00000170u, 0x0000002cu, 0x000000ccu, 0x0006003du, - 0x00000006u, 0x00000173u, 0x00000172u, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x00000178u, - 0x000000ccu, 0x0000002fu, 0x00060041u, 0x0000002du, 0x00000179u, 0x00000170u, 0x0000002cu, 0x00000178u, - 0x0006003du, 0x00000006u, 0x0000017au, 0x00000179u, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, - 0x0000017fu, 0x000000ccu, 0x00000155u, 0x00060041u, 0x0000002du, 0x00000180u, 0x00000170u, 0x0000002cu, - 0x0000017fu, 0x0006003du, 0x00000006u, 0x00000181u, 0x00000180u, 0x00000002u, 0x00000004u, 0x000500aau, - 0x00000008u, 0x00000184u, 0x00000070u, 0x0000007cu, 0x000300f7u, 0x00000186u, 0x00000000u, 0x000400fau, - 0x00000184u, 0x00000185u, 0x00000186u, 0x000200f8u, 0x00000185u, 0x00050041u, 0x00000029u, 0x00000187u, - 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x00000188u, 0x00000187u, 0x00060041u, 0x0000002du, - 0x00000189u, 0x00000188u, 0x0000002cu, 0x0000005fu, 0x000700eau, 0x00000006u, 0x0000018au, 0x00000189u, - 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x000500acu, 0x00000008u, 0x0000018cu, 0x0000017au, 0x0000002fu, - 0x000500acu, 0x00000008u, 0x0000018eu, 0x00000181u, 0x0000002fu, 0x000500a6u, 0x00000008u, 0x0000018fu, - 0x0000018cu, 0x0000018eu, 0x000300f7u, 0x00000191u, 0x00000000u, 0x000400fau, 0x0000018fu, 0x00000190u, - 0x00000191u, 0x000200f8u, 0x00000190u, 0x00060041u, 0x0000002du, 0x00000194u, 0x00000188u, 0x0000002cu, - 0x00000068u, 0x000700eau, 0x00000006u, 0x00000195u, 0x00000194u, 0x0000002fu, 0x0000000eu, 0x0000002fu, - 0x00060041u, 0x0000002du, 0x00000198u, 0x00000188u, 0x0000002cu, 0x0000008au, 0x000700efu, 0x00000006u, - 0x0000019au, 0x00000198u, 0x0000002fu, 0x0000000eu, 0x0000017au, 0x00060041u, 0x0000002du, 0x0000019du, - 0x00000188u, 0x0000002cu, 0x00000084u, 0x000700efu, 0x00000006u, 0x0000019fu, 0x0000019du, 0x0000002fu, - 0x0000000eu, 0x00000181u, 0x000200f9u, 0x00000191u, 0x000200f8u, 0x00000191u, 0x000200f9u, 0x00000186u, - 0x000200f8u, 0x00000186u, 0x000300f7u, 0x000001a7u, 0x00000000u, 0x000400fau, 0x00000184u, 0x000001a6u, - 0x000001aau, 0x000200f8u, 0x000001a6u, 0x000200f9u, 0x000001a7u, 0x000200f8u, 0x000001aau, 0x00050041u, - 0x00000060u, 0x000001acu, 0x00000026u, 0x000001abu, 0x0004003du, 0x00000006u, 0x000001adu, 0x000001acu, - 0x00050041u, 0x00000060u, 0x000001afu, 0x00000026u, 0x000001aeu, 0x0004003du, 0x00000006u, 0x000001b0u, - 0x000001afu, 0x00050041u, 0x00000060u, 0x000001b2u, 0x00000026u, 0x000001b1u, 0x0004003du, 0x00000006u, - 0x000001b3u, 0x000001b2u, 0x00060050u, 0x00000058u, 0x000001b4u, 0x000001adu, 0x000001b0u, 0x000001b3u, - 0x0007000cu, 0x00000058u, 0x000001b6u, 0x00000001u, 0x00000029u, 0x000001b4u, 0x000001b5u, 0x000200f9u, - 0x000001a7u, 0x000200f8u, 0x000001a7u, 0x000700f5u, 0x00000058u, 0x000002b2u, 0x000001a9u, 0x000001a6u, - 0x000001b6u, 0x000001aau, 0x00050051u, 0x00000006u, 0x000001bbu, 0x000002b2u, 0x00000000u, 0x0007000cu, - 0x00000006u, 0x000001bcu, 0x00000001u, 0x00000026u, 0x00000173u, 0x000001bbu, 0x00050051u, 0x00000006u, - 0x000001c0u, 0x000002b2u, 0x00000001u, 0x0007000cu, 0x00000006u, 0x000001c1u, 0x00000001u, 0x00000026u, - 0x0000017au, 0x000001c0u, 0x00050051u, 0x00000006u, 0x000001c5u, 0x000002b2u, 0x00000002u, 0x0007000cu, - 0x00000006u, 0x000001c6u, 0x00000001u, 0x00000026u, 0x00000181u, 0x000001c5u, 0x000600a9u, 0x00000006u, - 0x0000034du, 0x00000184u, 0x0000002fu, 0x000001c6u, 0x000600a9u, 0x00000006u, 0x0000034eu, 0x00000184u, - 0x0000002fu, 0x000001c1u, 0x000500c2u, 0x00000006u, 0x000001cfu, 0x00000086u, 0x0000002fu, 0x000500abu, - 0x00000008u, 0x000001d1u, 0x000001cfu, 0x0000000eu, 0x000500abu, 0x00000008u, 0x000001d3u, 0x000001bcu, - 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001d4u, 0x000001d1u, 0x000001d3u, 0x000500abu, 0x00000008u, - 0x000001d6u, 0x0000034eu, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001d7u, 0x000001d4u, 0x000001d6u, - 0x000500abu, 0x00000008u, 0x000001d9u, 0x0000034du, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001dau, - 0x000001d7u, 0x000001d9u, 0x000300f7u, 0x000001dcu, 0x00000000u, 0x000400fau, 0x000001dau, 0x000001dbu, - 0x000001dcu, 0x000200f8u, 0x000001dbu, 0x0007000cu, 0x00000006u, 0x000001dfu, 0x00000001u, 0x00000026u, - 0x000001bcu, 0x000001cfu, 0x00050086u, 0x00000006u, 0x000001e3u, 0x000001cfu, 0x000001dfu, 0x0007000cu, - 0x00000006u, 0x000001e4u, 0x00000001u, 0x00000026u, 0x0000034eu, 0x000001e3u, 0x00050086u, 0x00000006u, - 0x000001eau, 0x000001e3u, 0x000001e4u, 0x0007000cu, 0x00000006u, 0x000001ebu, 0x00000001u, 0x00000026u, - 0x0000034du, 0x000001eau, 0x000200f9u, 0x000001dcu, 0x000200f8u, 0x000001dcu, 0x000700f5u, 0x00000006u, - 0x000002c1u, 0x0000034du, 0x000001a7u, 0x000001ebu, 0x000001dbu, 0x000700f5u, 0x00000006u, 0x000002c0u, - 0x0000034eu, 0x000001a7u, 0x000001e4u, 0x000001dbu, 0x000700f5u, 0x00000006u, 0x000002bfu, 0x000001bcu, - 0x000001a7u, 0x000001dfu, 0x000001dbu, 0x000500abu, 0x00000008u, 0x000001edu, 0x000002bfu, 0x0000000eu, - 0x000500abu, 0x00000008u, 0x000001efu, 0x000002c0u, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001f0u, - 0x000001edu, 0x000001efu, 0x000500abu, 0x00000008u, 0x000001f2u, 0x000002c1u, 0x0000000eu, 0x000500a7u, - 0x00000008u, 0x000001f3u, 0x000001f0u, 0x000001f2u, 0x000300f7u, 0x000001f5u, 0x00000000u, 0x000400fau, - 0x000001f3u, 0x000001f4u, 0x000001f5u, 0x000200f8u, 0x000001f4u, 0x000500acu, 0x00000008u, 0x000001f8u, - 0x000002bfu, 0x000001f7u, 0x000400a8u, 0x00000008u, 0x000001f9u, 0x000001f8u, 0x000300f7u, 0x000001fbu, - 0x00000000u, 0x000400fau, 0x000001f9u, 0x000001fau, 0x000001fbu, 0x000200f8u, 0x000001fau, 0x00050086u, - 0x00000006u, 0x000001feu, 0x000001f7u, 0x000002bfu, 0x000500acu, 0x00000008u, 0x000001ffu, 0x000002c0u, - 0x000001feu, 0x000200f9u, 0x000001fbu, 0x000200f8u, 0x000001fbu, 0x000700f5u, 0x00000008u, 0x00000200u, - 0x000001f8u, 0x000001f4u, 0x000001ffu, 0x000001fau, 0x000400a8u, 0x00000008u, 0x00000201u, 0x00000200u, - 0x000300f7u, 0x00000203u, 0x00000000u, 0x000400fau, 0x00000201u, 0x00000202u, 0x00000203u, 0x000200f8u, - 0x00000202u, 0x00050086u, 0x00000006u, 0x00000206u, 0x000001f7u, 0x000002bfu, 0x00050086u, 0x00000006u, - 0x00000208u, 0x00000206u, 0x000002c0u, 0x000500acu, 0x00000008u, 0x00000209u, 0x000002c1u, 0x00000208u, - 0x000200f9u, 0x00000203u, 0x000200f8u, 0x00000203u, 0x000700f5u, 0x00000008u, 0x0000020au, 0x00000200u, - 0x000001fbu, 0x00000209u, 0x00000202u, 0x000200f9u, 0x000001f5u, 0x000200f8u, 0x000001f5u, 0x000700f5u, - 0x00000008u, 0x0000020bu, 0x000001f3u, 0x000001dcu, 0x0000020au, 0x00000203u, 0x000600a9u, 0x00000006u, - 0x0000034fu, 0x0000020bu, 0x0000000eu, 0x000002c1u, 0x000600a9u, 0x00000006u, 0x00000350u, 0x0000020bu, - 0x0000000eu, 0x000002c0u, 0x000600a9u, 0x00000006u, 0x00000351u, 0x0000020bu, 0x0000000eu, 0x000002bfu, - 0x000500abu, 0x00000008u, 0x00000210u, 0x00000351u, 0x00000173u, 0x000500abu, 0x00000008u, 0x00000213u, - 0x00000350u, 0x0000017au, 0x000500a6u, 0x00000008u, 0x00000214u, 0x00000210u, 0x00000213u, 0x000500abu, - 0x00000008u, 0x00000217u, 0x0000034fu, 0x00000181u, 0x000500a6u, 0x00000008u, 0x00000218u, 0x00000214u, - 0x00000217u, 0x000600a9u, 0x00000006u, 0x00000219u, 0x00000218u, 0x0000002fu, 0x0000000eu, 0x00050084u, - 0x00000006u, 0x0000021cu, 0x00000351u, 0x00000350u, 0x00050084u, 0x00000006u, 0x0000021eu, 0x0000021cu, - 0x0000034fu, 0x000600a9u, 0x00000006u, 0x00000224u, 0x00000184u, 0x00000222u, 0x00000223u, 0x00050084u, - 0x00000006u, 0x00000225u, 0x0000021eu, 0x00000224u, 0x00050041u, 0x00000007u, 0x00000227u, 0x00000116u, - 0x0000002cu, 0x0003003eu, 0x00000227u, 0x00000351u, 0x00050041u, 0x00000007u, 0x00000229u, 0x00000116u, - 0x00000091u, 0x0003003eu, 0x00000229u, 0x00000350u, 0x00050041u, 0x00000007u, 0x0000022bu, 0x00000116u, - 0x000000bcu, 0x0003003eu, 0x0000022bu, 0x0000034fu, 0x000200f9u, 0x0000011eu, 0x000200f8u, 0x0000011eu, - 0x000700f5u, 0x00000006u, 0x00000309u, 0x0000014au, 0x00000165u, 0x00000219u, 0x000001f5u, 0x000700f5u, - 0x00000006u, 0x000002e9u, 0x0000014du, 0x00000165u, 0x00000225u, 0x000001f5u, 0x000500abu, 0x00000008u, - 0x0000022du, 0x000002e9u, 0x0000000eu, 0x000300f7u, 0x0000022fu, 0x00000000u, 0x000400fau, 0x0000022du, - 0x0000022eu, 0x0000022fu, 0x000200f8u, 0x0000022eu, 0x000300f7u, 0x0000029bu, 0x00000000u, 0x000300fbu, - 0x0000000eu, 0x00000273u, 0x000200f8u, 0x00000273u, 0x000500aau, 0x00000008u, 0x00000275u, 0x000002e9u, - 0x0000000eu, 0x000300f7u, 0x00000277u, 0x00000000u, 0x000400fau, 0x00000275u, 0x00000276u, 0x00000277u, - 0x000200f8u, 0x00000276u, 0x000200f9u, 0x0000029bu, 0x000200f8u, 0x00000277u, 0x00050041u, 0x00000029u, - 0x00000278u, 0x00000026u, 0x00000028u, 0x0004003du, 0x00000019u, 0x00000279u, 0x00000278u, 0x00060041u, - 0x0000002du, 0x0000027au, 0x00000279u, 0x0000002cu, 0x0000002cu, 0x000700eau, 0x00000006u, 0x0000027bu, - 0x0000027au, 0x0000002fu, 0x0000000eu, 0x0000000eu, 0x000200f9u, 0x0000027cu, 0x000200f8u, 0x0000027cu, - 0x000700f5u, 0x00000006u, 0x000002ebu, 0x0000027bu, 0x00000277u, 0x00000290u, 0x00000297u, 0x000500b0u, - 0x00000008u, 0x0000027fu, 0x000002ebu, 0x00000037u, 0x000400f6u, 0x00000298u, 0x00000297u, 0x00000000u, - 0x000400fau, 0x0000027fu, 0x00000280u, 0x00000298u, 0x000200f8u, 0x00000280u, 0x00050082u, 0x00000006u, - 0x00000282u, 0x00000037u, 0x000002ebu, 0x000500acu, 0x00000008u, 0x00000285u, 0x000002e9u, 0x00000282u, - 0x000300f7u, 0x00000287u, 0x00000000u, 0x000400fau, 0x00000285u, 0x00000286u, 0x00000287u, 0x000200f8u, - 0x00000286u, 0x000200f9u, 0x00000298u, 0x000200f8u, 0x00000287u, 0x00050080u, 0x00000006u, 0x0000028au, - 0x000002ebu, 0x000002e9u, 0x000900e6u, 0x00000006u, 0x00000290u, 0x0000027au, 0x0000002fu, 0x0000000eu, - 0x0000000eu, 0x0000028au, 0x000002ebu, 0x000500aau, 0x00000008u, 0x00000293u, 0x00000290u, 0x000002ebu, - 0x000300f7u, 0x00000295u, 0x00000000u, 0x000400fau, 0x00000293u, 0x00000294u, 0x00000295u, 0x000200f8u, - 0x00000294u, 0x000200f9u, 0x00000298u, 0x000200f8u, 0x00000295u, 0x000200f9u, 0x00000297u, 0x000200f8u, - 0x00000297u, 0x000200f9u, 0x0000027cu, 0x000200f8u, 0x00000298u, 0x000900f5u, 0x00000008u, 0x000002f0u, - 0x000002fau, 0x0000027cu, 0x00000041u, 0x00000286u, 0x00000012u, 0x00000294u, 0x000900f5u, 0x00000008u, - 0x000002edu, 0x00000041u, 0x0000027cu, 0x00000012u, 0x00000286u, 0x00000012u, 0x00000294u, 0x000300f7u, - 0x0000029au, 0x00000000u, 0x000400fau, 0x000002edu, 0x0000029bu, 0x0000029au, 0x000200f8u, 0x0000029au, - 0x000200f9u, 0x0000029bu, 0x000200f8u, 0x0000029bu, 0x000900f5u, 0x00000008u, 0x000002efu, 0x00000012u, - 0x00000276u, 0x000002f0u, 0x00000298u, 0x00000041u, 0x0000029au, 0x000400a8u, 0x00000008u, 0x00000233u, - 0x000002efu, 0x000200f9u, 0x0000022fu, 0x000200f8u, 0x0000022fu, 0x000700f5u, 0x00000008u, 0x00000234u, - 0x0000022du, 0x0000011eu, 0x00000233u, 0x0000029bu, 0x000300f7u, 0x00000236u, 0x00000000u, 0x000400fau, - 0x00000234u, 0x00000235u, 0x00000236u, 0x000200f8u, 0x00000235u, 0x00050041u, 0x00000029u, 0x00000237u, - 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x00000238u, 0x00000237u, 0x00060041u, 0x0000002du, - 0x00000239u, 0x00000238u, 0x0000002cu, 0x000000bcu, 0x000700eau, 0x00000006u, 0x0000023au, 0x00000239u, - 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x0003003eu, 0x00000116u, 0x00000117u, 0x000200f9u, 0x00000236u, - 0x000200f8u, 0x00000236u, 0x000600a9u, 0x00000006u, 0x00000352u, 0x00000234u, 0x0000002fu, 0x00000309u, - 0x000500abu, 0x00000008u, 0x0000023cu, 0x00000352u, 0x0000000eu, 0x000300f7u, 0x0000023eu, 0x00000000u, - 0x000400fau, 0x0000023cu, 0x0000023du, 0x0000023eu, 0x000200f8u, 0x0000023du, 0x00050041u, 0x00000029u, - 0x0000023fu, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x00000240u, 0x0000023fu, 0x00060041u, - 0x0000002du, 0x00000241u, 0x00000240u, 0x0000002cu, 0x0000002cu, 0x000700eau, 0x00000006u, 0x00000242u, - 0x00000241u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x00050041u, 0x00000007u, 0x00000243u, 0x00000116u, - 0x0000002cu, 0x0004003du, 0x00000006u, 0x00000244u, 0x00000243u, 0x000500aau, 0x00000008u, 0x00000245u, - 0x00000244u, 0x0000000eu, 0x000300f7u, 0x00000247u, 0x00000000u, 0x000400fau, 0x00000245u, 0x00000246u, - 0x00000247u, 0x000200f8u, 0x00000246u, 0x00060041u, 0x0000002du, 0x0000024au, 0x00000240u, 0x0000002cu, - 0x0000009eu, 0x000700eau, 0x00000006u, 0x0000024bu, 0x0000024au, 0x0000002fu, 0x0000000eu, 0x0000002fu, - 0x000200f9u, 0x00000247u, 0x000200f8u, 0x00000247u, 0x000200f9u, 0x0000023eu, 0x000200f8u, 0x0000023eu, - 0x000200f9u, 0x0000024du, 0x000200f8u, 0x0000024du, 0x000700f5u, 0x00000006u, 0x0000030eu, 0x0000000eu, - 0x0000023eu, 0x0000025fu, 0x0000024eu, 0x000500b0u, 0x00000008u, 0x00000254u, 0x0000030eu, 0x0000029du, - 0x000400f6u, 0x0000024fu, 0x0000024eu, 0x00000000u, 0x000400fau, 0x00000254u, 0x0000024eu, 0x0000024fu, - 0x000200f8u, 0x0000024eu, 0x00050041u, 0x000000bdu, 0x00000255u, 0x00000026u, 0x000000bcu, 0x0004003du, - 0x00000017u, 0x00000256u, 0x00000255u, 0x00050080u, 0x00000006u, 0x00000259u, 0x00000081u, 0x0000030eu, - 0x00050041u, 0x00000007u, 0x0000025bu, 0x00000116u, 0x0000030eu, 0x0004003du, 0x00000006u, 0x0000025cu, - 0x0000025bu, 0x00060041u, 0x0000002du, 0x0000025du, 0x00000256u, 0x0000002cu, 0x00000259u, 0x0005003eu, - 0x0000025du, 0x0000025cu, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x0000025fu, 0x0000030eu, - 0x00000091u, 0x000200f9u, 0x0000024du, 0x000200f8u, 0x0000024fu, 0x000200f9u, 0x00000261u, 0x000200f8u, - 0x00000261u, 0x000100fdu, 0x00010038u, + 0x0000002fu, 0x0000002fu, 0x0000002fu, 0x0004002bu, 0x00000006u, 0x00000209u, 0x00100000u, 0x0004002bu, + 0x00000027u, 0x00000227u, 0x0000000fu, 0x0004002bu, 0x00000006u, 0x00000255u, 0x00000080u, 0x0004002bu, + 0x00000006u, 0x00000256u, 0x00000040u, 0x0006002cu, 0x00000058u, 0x00000293u, 0x00000256u, 0x0000002fu, + 0x0000002fu, 0x00030001u, 0x00000008u, 0x0000034bu, 0x00050036u, 0x00000002u, 0x00000004u, 0x00000000u, + 0x00000003u, 0x000200f8u, 0x00000005u, 0x0004003bu, 0x00000115u, 0x00000116u, 0x00000007u, 0x000300f7u, + 0x00000294u, 0x00000000u, 0x000300fbu, 0x0000000eu, 0x00000295u, 0x000200f8u, 0x00000295u, 0x00050041u, + 0x0000005bu, 0x0000005cu, 0x0000005au, 0x0000000eu, 0x0004003du, 0x00000006u, 0x0000005du, 0x0000005cu, + 0x00050041u, 0x00000060u, 0x00000061u, 0x00000026u, 0x0000005fu, 0x0004003du, 0x00000006u, 0x00000062u, + 0x00000061u, 0x000500aeu, 0x00000008u, 0x00000063u, 0x0000005du, 0x00000062u, 0x000300f7u, 0x00000065u, + 0x00000000u, 0x000400fau, 0x00000063u, 0x00000064u, 0x00000065u, 0x000200f8u, 0x00000064u, 0x000200f9u, + 0x00000294u, 0x000200f8u, 0x00000065u, 0x00050041u, 0x00000060u, 0x00000069u, 0x00000026u, 0x00000068u, + 0x0004003du, 0x00000006u, 0x0000006au, 0x00000069u, 0x00050080u, 0x00000006u, 0x0000006cu, 0x0000006au, + 0x0000005du, 0x00050041u, 0x00000060u, 0x0000006fu, 0x00000026u, 0x0000006eu, 0x0004003du, 0x00000006u, + 0x00000070u, 0x0000006fu, 0x000500b2u, 0x00000008u, 0x00000071u, 0x00000070u, 0x0000002fu, 0x000300f7u, + 0x00000074u, 0x00000000u, 0x000400fau, 0x00000071u, 0x00000073u, 0x0000007bu, 0x000200f8u, 0x00000073u, + 0x000500aau, 0x00000008u, 0x00000077u, 0x00000070u, 0x0000000eu, 0x000600a9u, 0x00000006u, 0x0000007au, + 0x00000077u, 0x00000078u, 0x00000079u, 0x000200f9u, 0x00000074u, 0x000200f8u, 0x0000007bu, 0x000200f9u, + 0x00000074u, 0x000200f8u, 0x00000074u, 0x000700f5u, 0x00000006u, 0x000002d0u, 0x0000007au, 0x00000073u, + 0x0000007cu, 0x0000007bu, 0x00050084u, 0x00000006u, 0x00000081u, 0x0000005du, 0x000002d0u, 0x00050041u, + 0x00000060u, 0x00000085u, 0x00000026u, 0x00000084u, 0x0004003du, 0x00000006u, 0x00000086u, 0x00000085u, + 0x000500c7u, 0x00000006u, 0x00000087u, 0x00000086u, 0x0000002fu, 0x000500abu, 0x00000008u, 0x00000088u, + 0x00000087u, 0x0000000eu, 0x00050041u, 0x00000060u, 0x0000008bu, 0x00000026u, 0x0000008au, 0x0004003du, + 0x00000006u, 0x0000008cu, 0x0000008bu, 0x000300f7u, 0x0000008fu, 0x00000000u, 0x000400fau, 0x00000088u, + 0x0000008eu, 0x0000008fu, 0x000200f8u, 0x0000008eu, 0x00050041u, 0x00000092u, 0x00000093u, 0x00000026u, + 0x00000091u, 0x0004003du, 0x00000016u, 0x00000094u, 0x00000093u, 0x00060041u, 0x0000002du, 0x00000095u, + 0x00000094u, 0x0000002cu, 0x0000002cu, 0x0006003du, 0x00000006u, 0x00000096u, 0x00000095u, 0x00000002u, + 0x00000004u, 0x0007000cu, 0x00000006u, 0x00000099u, 0x00000001u, 0x00000026u, 0x0000008cu, 0x00000096u, + 0x000500aau, 0x00000008u, 0x0000009bu, 0x0000006cu, 0x0000000eu, 0x000300f7u, 0x0000009du, 0x00000000u, + 0x000400fau, 0x0000009bu, 0x0000009cu, 0x0000009du, 0x000200f8u, 0x0000009cu, 0x00050041u, 0x0000009fu, + 0x000000a0u, 0x00000026u, 0x0000009eu, 0x0004003du, 0x00000018u, 0x000000a1u, 0x000000a0u, 0x00060041u, + 0x0000002du, 0x000000a3u, 0x000000a1u, 0x0000002cu, 0x0000002cu, 0x0005003eu, 0x000000a3u, 0x00000099u, + 0x00000002u, 0x00000004u, 0x000500abu, 0x00000008u, 0x000000a6u, 0x00000096u, 0x00000099u, 0x000300f7u, + 0x000000a8u, 0x00000000u, 0x000400fau, 0x000000a6u, 0x000000a7u, 0x000000a8u, 0x000200f8u, 0x000000a7u, + 0x00050041u, 0x00000029u, 0x000000aau, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x000000abu, + 0x000000aau, 0x00060041u, 0x0000002du, 0x000000acu, 0x000000abu, 0x0000002cu, 0x00000091u, 0x000700eau, + 0x00000006u, 0x000000adu, 0x000000acu, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x000200f9u, 0x000000a8u, + 0x000200f8u, 0x000000a8u, 0x000200f9u, 0x0000009du, 0x000200f8u, 0x0000009du, 0x000200f9u, 0x0000008fu, + 0x000200f8u, 0x0000008fu, 0x000700f5u, 0x00000006u, 0x000002d6u, 0x0000008cu, 0x00000074u, 0x00000099u, + 0x0000009du, 0x000500aeu, 0x00000008u, 0x000000b0u, 0x0000006cu, 0x000002d6u, 0x000300f7u, 0x000000b2u, + 0x00000000u, 0x000400fau, 0x000000b0u, 0x000000b1u, 0x000000b2u, 0x000200f8u, 0x000000b1u, 0x000200f9u, + 0x000000b4u, 0x000200f8u, 0x000000b4u, 0x000700f5u, 0x00000006u, 0x000003a2u, 0x0000000eu, 0x000000b1u, + 0x000000c5u, 0x000000b5u, 0x000500b0u, 0x00000008u, 0x000000bbu, 0x000003a2u, 0x000002d0u, 0x000400f6u, + 0x000000b6u, 0x000000b5u, 0x00000000u, 0x000400fau, 0x000000bbu, 0x000000b5u, 0x000000b6u, 0x000200f8u, + 0x000000b5u, 0x00050041u, 0x000000bdu, 0x000000beu, 0x00000026u, 0x000000bcu, 0x0004003du, 0x00000017u, + 0x000000bfu, 0x000000beu, 0x00050080u, 0x00000006u, 0x000000c2u, 0x00000081u, 0x000003a2u, 0x00060041u, + 0x0000002du, 0x000000c3u, 0x000000bfu, 0x0000002cu, 0x000000c2u, 0x0005003eu, 0x000000c3u, 0x0000000eu, + 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x000000c5u, 0x000003a2u, 0x00000091u, 0x000200f9u, + 0x000000b4u, 0x000200f8u, 0x000000b6u, 0x000200f9u, 0x00000294u, 0x000200f8u, 0x000000b2u, 0x00050041u, + 0x00000060u, 0x000000cau, 0x00000026u, 0x000000c9u, 0x0004003du, 0x00000006u, 0x000000cbu, 0x000000cau, + 0x00050084u, 0x00000006u, 0x000000ccu, 0x0000005du, 0x000000cbu, 0x000200f9u, 0x000000cfu, 0x000200f8u, + 0x000000cfu, 0x000700f5u, 0x00000008u, 0x000002e1u, 0x00000012u, 0x000000b2u, 0x000000e4u, 0x000000d2u, + 0x000700f5u, 0x00000006u, 0x000002dcu, 0x0000000eu, 0x000000b2u, 0x000000e6u, 0x000000d2u, 0x000500b0u, + 0x00000008u, 0x000000d6u, 0x000002dcu, 0x000002d0u, 0x000400f6u, 0x000000d1u, 0x000000d2u, 0x00000000u, + 0x000400fau, 0x000000d6u, 0x000000d0u, 0x000000d1u, 0x000200f8u, 0x000000d0u, 0x000300f7u, 0x000000d9u, + 0x00000000u, 0x000400fau, 0x000002e1u, 0x000000d8u, 0x000000d9u, 0x000200f8u, 0x000000d8u, 0x00050041u, + 0x000000dau, 0x000000dbu, 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, 0x000000dcu, 0x000000dbu, + 0x00050080u, 0x00000006u, 0x000000dfu, 0x000000ccu, 0x000002dcu, 0x00060041u, 0x0000002du, 0x000000e0u, + 0x000000dcu, 0x0000002cu, 0x000000dfu, 0x0006003du, 0x00000006u, 0x000000e1u, 0x000000e0u, 0x00000002u, + 0x00000004u, 0x000500aau, 0x00000008u, 0x000000e3u, 0x000000e1u, 0x000000e2u, 0x000200f9u, 0x000000d9u, + 0x000200f8u, 0x000000d9u, 0x000700f5u, 0x00000008u, 0x000000e4u, 0x000002e1u, 0x000000d0u, 0x000000e3u, + 0x000000d8u, 0x000200f9u, 0x000000d2u, 0x000200f8u, 0x000000d2u, 0x00050080u, 0x00000006u, 0x000000e6u, + 0x000002dcu, 0x00000091u, 0x000200f9u, 0x000000cfu, 0x000200f8u, 0x000000d1u, 0x000400a8u, 0x00000008u, + 0x000000e8u, 0x000002e1u, 0x000300f7u, 0x000000eau, 0x00000000u, 0x000400fau, 0x000000e8u, 0x000000e9u, + 0x000000eau, 0x000200f8u, 0x000000e9u, 0x000500aau, 0x00000008u, 0x000000edu, 0x00000070u, 0x0000007cu, + 0x000300f7u, 0x000000efu, 0x00000000u, 0x000400fau, 0x000000edu, 0x000000eeu, 0x000000efu, 0x000200f8u, + 0x000000eeu, 0x00050041u, 0x000000dau, 0x000000f0u, 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, + 0x000000f1u, 0x000000f0u, 0x00060041u, 0x0000002du, 0x000000f3u, 0x000000f1u, 0x0000002cu, 0x000000ccu, + 0x0006003du, 0x00000006u, 0x000000f4u, 0x000000f3u, 0x00000002u, 0x00000004u, 0x000500aau, 0x00000008u, + 0x000000f5u, 0x000000f4u, 0x000000e2u, 0x000200f9u, 0x000000efu, 0x000200f8u, 0x000000efu, 0x000700f5u, + 0x00000008u, 0x000000f6u, 0x000000edu, 0x000000e9u, 0x000000f5u, 0x000000eeu, 0x000200f9u, 0x000000eau, + 0x000200f8u, 0x000000eau, 0x000700f5u, 0x00000008u, 0x000000f7u, 0x000002e1u, 0x000000d1u, 0x000000f6u, + 0x000000efu, 0x000300f7u, 0x000000f9u, 0x00000000u, 0x000400fau, 0x000000f7u, 0x000000f8u, 0x000000f9u, + 0x000200f8u, 0x000000f8u, 0x000200f9u, 0x000000fbu, 0x000200f8u, 0x000000fbu, 0x000700f5u, 0x00000006u, + 0x0000039eu, 0x0000000eu, 0x000000f8u, 0x0000010au, 0x000000fcu, 0x000500b0u, 0x00000008u, 0x00000102u, + 0x0000039eu, 0x000002d0u, 0x000400f6u, 0x000000fdu, 0x000000fcu, 0x00000000u, 0x000400fau, 0x00000102u, + 0x000000fcu, 0x000000fdu, 0x000200f8u, 0x000000fcu, 0x00050041u, 0x000000bdu, 0x00000103u, 0x00000026u, + 0x000000bcu, 0x0004003du, 0x00000017u, 0x00000104u, 0x00000103u, 0x00050080u, 0x00000006u, 0x00000107u, + 0x00000081u, 0x0000039eu, 0x00060041u, 0x0000002du, 0x00000108u, 0x00000104u, 0x0000002cu, 0x00000107u, + 0x0005003eu, 0x00000108u, 0x0000000eu, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x0000010au, + 0x0000039eu, 0x00000091u, 0x000200f9u, 0x000000fbu, 0x000200f8u, 0x000000fdu, 0x00050041u, 0x00000029u, + 0x0000010bu, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x0000010cu, 0x0000010bu, 0x00060041u, + 0x0000002du, 0x0000010du, 0x0000010cu, 0x0000002cu, 0x0000002cu, 0x000700eau, 0x00000006u, 0x0000010eu, + 0x0000010du, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x00060041u, 0x0000002du, 0x00000111u, 0x0000010cu, + 0x0000002cu, 0x0000009eu, 0x000700eau, 0x00000006u, 0x00000112u, 0x00000111u, 0x0000002fu, 0x0000000eu, + 0x0000002fu, 0x000200f9u, 0x00000294u, 0x000200f8u, 0x000000f9u, 0x0003003eu, 0x00000116u, 0x00000117u, + 0x000300f7u, 0x0000011eu, 0x00000000u, 0x000400fau, 0x00000071u, 0x0000011du, 0x0000016du, 0x000200f8u, + 0x0000011du, 0x00050041u, 0x000000dau, 0x00000120u, 0x00000026u, 0x0000002cu, 0x0004003du, 0x00000015u, + 0x00000121u, 0x00000120u, 0x00060041u, 0x0000002du, 0x00000123u, 0x00000121u, 0x0000002cu, 0x000000ccu, + 0x0006003du, 0x00000006u, 0x00000124u, 0x00000123u, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, + 0x00000129u, 0x000000ccu, 0x0000002fu, 0x00060041u, 0x0000002du, 0x0000012au, 0x00000121u, 0x0000002cu, + 0x00000129u, 0x0006003du, 0x00000006u, 0x0000012bu, 0x0000012au, 0x00000002u, 0x00000004u, 0x000500aeu, + 0x00000008u, 0x0000012fu, 0x00000124u, 0x0000012eu, 0x000300f7u, 0x00000132u, 0x00000000u, 0x000400fau, + 0x0000012fu, 0x00000131u, 0x00000133u, 0x000200f8u, 0x00000131u, 0x000200f9u, 0x00000132u, 0x000200f8u, + 0x00000133u, 0x0007000cu, 0x00000006u, 0x00000136u, 0x00000001u, 0x00000026u, 0x00000124u, 0x00000135u, + 0x000200f9u, 0x00000132u, 0x000200f8u, 0x00000132u, 0x000700f5u, 0x00000006u, 0x00000331u, 0x0000000eu, + 0x00000131u, 0x00000136u, 0x00000133u, 0x0007000cu, 0x00000006u, 0x0000013cu, 0x00000001u, 0x00000029u, + 0x00000331u, 0x0000002fu, 0x00050086u, 0x00000006u, 0x0000013du, 0x0000013au, 0x0000013cu, 0x0007000cu, + 0x00000006u, 0x0000013eu, 0x00000001u, 0x00000026u, 0x0000012bu, 0x0000013du, 0x000500aau, 0x00000008u, + 0x00000140u, 0x00000331u, 0x0000000eu, 0x000600a9u, 0x00000006u, 0x000003a9u, 0x00000140u, 0x0000000eu, + 0x0000013eu, 0x000500abu, 0x00000008u, 0x00000145u, 0x00000331u, 0x00000124u, 0x000500abu, 0x00000008u, + 0x00000148u, 0x000003a9u, 0x0000012bu, 0x000500a6u, 0x00000008u, 0x00000149u, 0x00000145u, 0x00000148u, + 0x000600a9u, 0x00000006u, 0x0000014au, 0x00000149u, 0x0000002fu, 0x0000000eu, 0x00050084u, 0x00000006u, + 0x0000014du, 0x00000331u, 0x000003a9u, 0x00050041u, 0x00000007u, 0x0000014fu, 0x00000116u, 0x0000002cu, + 0x0003003eu, 0x0000014fu, 0x00000331u, 0x00050041u, 0x00000007u, 0x00000151u, 0x00000116u, 0x00000091u, + 0x0003003eu, 0x00000151u, 0x000003a9u, 0x00050080u, 0x00000006u, 0x00000156u, 0x000000ccu, 0x00000155u, + 0x00060041u, 0x0000002du, 0x00000157u, 0x00000121u, 0x0000002cu, 0x00000156u, 0x0006003du, 0x00000006u, + 0x00000158u, 0x00000157u, 0x00000002u, 0x00000004u, 0x00050041u, 0x00000007u, 0x00000159u, 0x00000116u, + 0x000000bcu, 0x0003003eu, 0x00000159u, 0x00000158u, 0x00050080u, 0x00000006u, 0x0000015du, 0x000000ccu, + 0x0000007cu, 0x00060041u, 0x0000002du, 0x0000015eu, 0x00000121u, 0x0000002cu, 0x0000015du, 0x0006003du, + 0x00000006u, 0x0000015fu, 0x0000015eu, 0x00000002u, 0x00000004u, 0x00050041u, 0x00000007u, 0x00000160u, + 0x00000116u, 0x0000009eu, 0x0003003eu, 0x00000160u, 0x0000015fu, 0x000500aau, 0x00000008u, 0x00000163u, + 0x00000070u, 0x0000002fu, 0x000300f7u, 0x00000165u, 0x00000000u, 0x000400fau, 0x00000163u, 0x00000164u, + 0x00000165u, 0x000200f8u, 0x00000164u, 0x00050080u, 0x00000006u, 0x00000169u, 0x000000ccu, 0x00000078u, + 0x00060041u, 0x0000002du, 0x0000016au, 0x00000121u, 0x0000002cu, 0x00000169u, 0x0006003du, 0x00000006u, + 0x0000016bu, 0x0000016au, 0x00000002u, 0x00000004u, 0x00050041u, 0x00000007u, 0x0000016cu, 0x00000116u, + 0x000000a9u, 0x0003003eu, 0x0000016cu, 0x0000016bu, 0x000200f9u, 0x00000165u, 0x000200f8u, 0x00000165u, + 0x000200f9u, 0x0000011eu, 0x000200f8u, 0x0000016du, 0x00050041u, 0x000000dau, 0x0000016fu, 0x00000026u, + 0x0000002cu, 0x0004003du, 0x00000015u, 0x00000170u, 0x0000016fu, 0x00060041u, 0x0000002du, 0x00000172u, + 0x00000170u, 0x0000002cu, 0x000000ccu, 0x0006003du, 0x00000006u, 0x00000173u, 0x00000172u, 0x00000002u, + 0x00000004u, 0x00050080u, 0x00000006u, 0x00000178u, 0x000000ccu, 0x0000002fu, 0x00060041u, 0x0000002du, + 0x00000179u, 0x00000170u, 0x0000002cu, 0x00000178u, 0x0006003du, 0x00000006u, 0x0000017au, 0x00000179u, + 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x0000017fu, 0x000000ccu, 0x00000155u, 0x00060041u, + 0x0000002du, 0x00000180u, 0x00000170u, 0x0000002cu, 0x0000017fu, 0x0006003du, 0x00000006u, 0x00000181u, + 0x00000180u, 0x00000002u, 0x00000004u, 0x000500aau, 0x00000008u, 0x00000184u, 0x00000070u, 0x0000007cu, + 0x000300f7u, 0x00000186u, 0x00000000u, 0x000400fau, 0x00000184u, 0x00000185u, 0x00000186u, 0x000200f8u, + 0x00000185u, 0x00050041u, 0x00000029u, 0x00000187u, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, + 0x00000188u, 0x00000187u, 0x00060041u, 0x0000002du, 0x00000189u, 0x00000188u, 0x0000002cu, 0x0000005fu, + 0x000700eau, 0x00000006u, 0x0000018au, 0x00000189u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x000500acu, + 0x00000008u, 0x0000018cu, 0x0000017au, 0x0000002fu, 0x000500acu, 0x00000008u, 0x0000018eu, 0x00000181u, + 0x0000002fu, 0x000500a6u, 0x00000008u, 0x0000018fu, 0x0000018cu, 0x0000018eu, 0x000300f7u, 0x00000191u, + 0x00000000u, 0x000400fau, 0x0000018fu, 0x00000190u, 0x00000191u, 0x000200f8u, 0x00000190u, 0x00060041u, + 0x0000002du, 0x00000194u, 0x00000188u, 0x0000002cu, 0x00000068u, 0x000700eau, 0x00000006u, 0x00000195u, + 0x00000194u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x00060041u, 0x0000002du, 0x00000198u, 0x00000188u, + 0x0000002cu, 0x0000008au, 0x000700efu, 0x00000006u, 0x0000019au, 0x00000198u, 0x0000002fu, 0x0000000eu, + 0x0000017au, 0x00060041u, 0x0000002du, 0x0000019du, 0x00000188u, 0x0000002cu, 0x00000084u, 0x000700efu, + 0x00000006u, 0x0000019fu, 0x0000019du, 0x0000002fu, 0x0000000eu, 0x00000181u, 0x000200f9u, 0x00000191u, + 0x000200f8u, 0x00000191u, 0x000200f9u, 0x00000186u, 0x000200f8u, 0x00000186u, 0x000300f7u, 0x000001a7u, + 0x00000000u, 0x000400fau, 0x00000184u, 0x000001a6u, 0x000001aau, 0x000200f8u, 0x000001a6u, 0x000200f9u, + 0x000001a7u, 0x000200f8u, 0x000001aau, 0x00050041u, 0x00000060u, 0x000001acu, 0x00000026u, 0x000001abu, + 0x0004003du, 0x00000006u, 0x000001adu, 0x000001acu, 0x00050041u, 0x00000060u, 0x000001afu, 0x00000026u, + 0x000001aeu, 0x0004003du, 0x00000006u, 0x000001b0u, 0x000001afu, 0x00050041u, 0x00000060u, 0x000001b2u, + 0x00000026u, 0x000001b1u, 0x0004003du, 0x00000006u, 0x000001b3u, 0x000001b2u, 0x00060050u, 0x00000058u, + 0x000001b4u, 0x000001adu, 0x000001b0u, 0x000001b3u, 0x0007000cu, 0x00000058u, 0x000001b6u, 0x00000001u, + 0x00000029u, 0x000001b4u, 0x000001b5u, 0x000200f9u, 0x000001a7u, 0x000200f8u, 0x000001a7u, 0x000700f5u, + 0x00000058u, 0x000002e5u, 0x000001a9u, 0x000001a6u, 0x000001b6u, 0x000001aau, 0x00050051u, 0x00000006u, + 0x000001bbu, 0x000002e5u, 0x00000000u, 0x0007000cu, 0x00000006u, 0x000001bcu, 0x00000001u, 0x00000026u, + 0x00000173u, 0x000001bbu, 0x00050051u, 0x00000006u, 0x000001c0u, 0x000002e5u, 0x00000001u, 0x0007000cu, + 0x00000006u, 0x000001c1u, 0x00000001u, 0x00000026u, 0x0000017au, 0x000001c0u, 0x00050051u, 0x00000006u, + 0x000001c5u, 0x000002e5u, 0x00000002u, 0x0007000cu, 0x00000006u, 0x000001c6u, 0x00000001u, 0x00000026u, + 0x00000181u, 0x000001c5u, 0x000600a9u, 0x00000006u, 0x000003aau, 0x00000184u, 0x0000002fu, 0x000001c6u, + 0x000600a9u, 0x00000006u, 0x000003abu, 0x00000184u, 0x0000002fu, 0x000001c1u, 0x000500abu, 0x00000008u, + 0x000001cfu, 0x00000070u, 0x0000007cu, 0x000300f7u, 0x000001d1u, 0x00000000u, 0x000400fau, 0x000001cfu, + 0x000001d0u, 0x000001d1u, 0x000200f8u, 0x000001d0u, 0x000500abu, 0x00000008u, 0x000001d4u, 0x000001bcu, + 0x00000173u, 0x000500abu, 0x00000008u, 0x000001d7u, 0x000003abu, 0x0000017au, 0x000500a6u, 0x00000008u, + 0x000001d8u, 0x000001d4u, 0x000001d7u, 0x000500abu, 0x00000008u, 0x000001dbu, 0x000003aau, 0x00000181u, + 0x000500a6u, 0x00000008u, 0x000001dcu, 0x000001d8u, 0x000001dbu, 0x000200f9u, 0x000001d1u, 0x000200f8u, + 0x000001d1u, 0x000700f5u, 0x00000008u, 0x000001ddu, 0x000001cfu, 0x000001a7u, 0x000001dcu, 0x000001d0u, + 0x000500c2u, 0x00000006u, 0x000001e1u, 0x00000086u, 0x0000002fu, 0x000500abu, 0x00000008u, 0x000001e3u, + 0x000001e1u, 0x0000000eu, 0x000500abu, 0x00000008u, 0x000001e5u, 0x000001bcu, 0x0000000eu, 0x000500a7u, + 0x00000008u, 0x000001e6u, 0x000001e3u, 0x000001e5u, 0x000500abu, 0x00000008u, 0x000001e8u, 0x000003abu, + 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001e9u, 0x000001e6u, 0x000001e8u, 0x000500abu, 0x00000008u, + 0x000001ebu, 0x000003aau, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x000001ecu, 0x000001e9u, 0x000001ebu, + 0x000300f7u, 0x000001eeu, 0x00000000u, 0x000400fau, 0x000001ecu, 0x000001edu, 0x000001eeu, 0x000200f8u, + 0x000001edu, 0x0007000cu, 0x00000006u, 0x000001f1u, 0x00000001u, 0x00000026u, 0x000001bcu, 0x000001e1u, + 0x00050086u, 0x00000006u, 0x000001f5u, 0x000001e1u, 0x000001f1u, 0x0007000cu, 0x00000006u, 0x000001f6u, + 0x00000001u, 0x00000026u, 0x000003abu, 0x000001f5u, 0x00050086u, 0x00000006u, 0x000001fcu, 0x000001f5u, + 0x000001f6u, 0x0007000cu, 0x00000006u, 0x000001fdu, 0x00000001u, 0x00000026u, 0x000003aau, 0x000001fcu, + 0x000200f9u, 0x000001eeu, 0x000200f8u, 0x000001eeu, 0x000700f5u, 0x00000006u, 0x000002fau, 0x000003aau, + 0x000001d1u, 0x000001fdu, 0x000001edu, 0x000700f5u, 0x00000006u, 0x000002f9u, 0x000003abu, 0x000001d1u, + 0x000001f6u, 0x000001edu, 0x000700f5u, 0x00000006u, 0x000002f8u, 0x000001bcu, 0x000001d1u, 0x000001f1u, + 0x000001edu, 0x000500abu, 0x00000008u, 0x000001ffu, 0x000002f8u, 0x0000000eu, 0x000500abu, 0x00000008u, + 0x00000201u, 0x000002f9u, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x00000202u, 0x000001ffu, 0x00000201u, + 0x000500abu, 0x00000008u, 0x00000204u, 0x000002fau, 0x0000000eu, 0x000500a7u, 0x00000008u, 0x00000205u, + 0x00000202u, 0x00000204u, 0x000300f7u, 0x00000207u, 0x00000000u, 0x000400fau, 0x00000205u, 0x00000206u, + 0x00000207u, 0x000200f8u, 0x00000206u, 0x000500acu, 0x00000008u, 0x0000020au, 0x000002f8u, 0x00000209u, + 0x000400a8u, 0x00000008u, 0x0000020bu, 0x0000020au, 0x000300f7u, 0x0000020du, 0x00000000u, 0x000400fau, + 0x0000020bu, 0x0000020cu, 0x0000020du, 0x000200f8u, 0x0000020cu, 0x00050086u, 0x00000006u, 0x00000210u, + 0x00000209u, 0x000002f8u, 0x000500acu, 0x00000008u, 0x00000211u, 0x000002f9u, 0x00000210u, 0x000200f9u, + 0x0000020du, 0x000200f8u, 0x0000020du, 0x000700f5u, 0x00000008u, 0x00000212u, 0x0000020au, 0x00000206u, + 0x00000211u, 0x0000020cu, 0x000400a8u, 0x00000008u, 0x00000213u, 0x00000212u, 0x000300f7u, 0x00000215u, + 0x00000000u, 0x000400fau, 0x00000213u, 0x00000214u, 0x00000215u, 0x000200f8u, 0x00000214u, 0x00050086u, + 0x00000006u, 0x00000218u, 0x00000209u, 0x000002f8u, 0x00050086u, 0x00000006u, 0x0000021au, 0x00000218u, + 0x000002f9u, 0x000500acu, 0x00000008u, 0x0000021bu, 0x000002fau, 0x0000021au, 0x000200f9u, 0x00000215u, + 0x000200f8u, 0x00000215u, 0x000700f5u, 0x00000008u, 0x0000021cu, 0x00000212u, 0x0000020du, 0x0000021bu, + 0x00000214u, 0x000200f9u, 0x00000207u, 0x000200f8u, 0x00000207u, 0x000700f5u, 0x00000008u, 0x0000021du, + 0x00000205u, 0x000001eeu, 0x0000021cu, 0x00000215u, 0x000600a9u, 0x00000006u, 0x000003acu, 0x0000021du, + 0x0000000eu, 0x000002fau, 0x000600a9u, 0x00000006u, 0x000003adu, 0x0000021du, 0x0000000eu, 0x000002f9u, + 0x000600a9u, 0x00000006u, 0x000003aeu, 0x0000021du, 0x0000000eu, 0x000002f8u, 0x000300f7u, 0x00000224u, + 0x00000000u, 0x000400fau, 0x000001cfu, 0x00000223u, 0x00000224u, 0x000200f8u, 0x00000223u, 0x00050041u, + 0x00000029u, 0x00000225u, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x00000226u, 0x00000225u, + 0x00060041u, 0x0000002du, 0x00000228u, 0x00000226u, 0x0000002cu, 0x00000227u, 0x000700eau, 0x00000006u, + 0x00000229u, 0x00000228u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x000500acu, 0x00000008u, 0x0000022bu, + 0x000003aeu, 0x000001a8u, 0x000300f7u, 0x0000022du, 0x00000000u, 0x000400fau, 0x0000022bu, 0x0000022cu, + 0x0000022du, 0x000200f8u, 0x0000022cu, 0x00060041u, 0x0000002du, 0x00000230u, 0x00000226u, 0x0000002cu, + 0x000001abu, 0x000700eau, 0x00000006u, 0x00000231u, 0x00000230u, 0x0000002fu, 0x0000000eu, 0x0000002fu, + 0x000200f9u, 0x0000022du, 0x000200f8u, 0x0000022du, 0x00060041u, 0x0000002du, 0x00000234u, 0x00000226u, + 0x0000002cu, 0x000001aeu, 0x000700efu, 0x00000006u, 0x00000236u, 0x00000234u, 0x0000002fu, 0x0000000eu, + 0x000003aeu, 0x000500abu, 0x00000008u, 0x00000239u, 0x000003aeu, 0x0000000eu, 0x000500a7u, 0x00000008u, + 0x0000023au, 0x000001ddu, 0x00000239u, 0x000300f7u, 0x0000023cu, 0x00000000u, 0x000400fau, 0x0000023au, + 0x0000023bu, 0x0000023cu, 0x000200f8u, 0x0000023bu, 0x00060041u, 0x0000002du, 0x0000023fu, 0x00000226u, + 0x0000002cu, 0x000001b1u, 0x000700eau, 0x00000006u, 0x00000240u, 0x0000023fu, 0x0000002fu, 0x0000000eu, + 0x0000002fu, 0x000200f9u, 0x0000023cu, 0x000200f8u, 0x0000023cu, 0x000200f9u, 0x00000224u, 0x000200f8u, + 0x00000224u, 0x000500abu, 0x00000008u, 0x00000243u, 0x000003aeu, 0x00000173u, 0x000500abu, 0x00000008u, + 0x00000246u, 0x000003adu, 0x0000017au, 0x000500a6u, 0x00000008u, 0x00000247u, 0x00000243u, 0x00000246u, + 0x000500abu, 0x00000008u, 0x0000024au, 0x000003acu, 0x00000181u, 0x000500a6u, 0x00000008u, 0x0000024bu, + 0x00000247u, 0x0000024au, 0x000600a9u, 0x00000006u, 0x0000024cu, 0x0000024bu, 0x0000002fu, 0x0000000eu, + 0x00050084u, 0x00000006u, 0x0000024fu, 0x000003aeu, 0x000003adu, 0x00050084u, 0x00000006u, 0x00000251u, + 0x0000024fu, 0x000003acu, 0x000600a9u, 0x00000006u, 0x00000257u, 0x00000184u, 0x00000255u, 0x00000256u, + 0x00050084u, 0x00000006u, 0x00000258u, 0x00000251u, 0x00000257u, 0x00050041u, 0x00000007u, 0x0000025au, + 0x00000116u, 0x0000002cu, 0x0003003eu, 0x0000025au, 0x000003aeu, 0x00050041u, 0x00000007u, 0x0000025cu, + 0x00000116u, 0x00000091u, 0x0003003eu, 0x0000025cu, 0x000003adu, 0x00050041u, 0x00000007u, 0x0000025eu, + 0x00000116u, 0x000000bcu, 0x0003003eu, 0x0000025eu, 0x000003acu, 0x000200f9u, 0x0000011eu, 0x000200f8u, + 0x0000011eu, 0x000700f5u, 0x00000006u, 0x0000035eu, 0x0000014au, 0x00000165u, 0x0000024cu, 0x00000224u, + 0x000700f5u, 0x00000006u, 0x0000033au, 0x0000014du, 0x00000165u, 0x00000258u, 0x00000224u, 0x000500abu, + 0x00000008u, 0x00000260u, 0x0000033au, 0x0000000eu, 0x000300f7u, 0x00000262u, 0x00000000u, 0x000400fau, + 0x00000260u, 0x00000261u, 0x00000262u, 0x000200f8u, 0x00000261u, 0x000300f7u, 0x000002ceu, 0x00000000u, + 0x000300fbu, 0x0000000eu, 0x000002a6u, 0x000200f8u, 0x000002a6u, 0x000500aau, 0x00000008u, 0x000002a8u, + 0x0000033au, 0x0000000eu, 0x000300f7u, 0x000002aau, 0x00000000u, 0x000400fau, 0x000002a8u, 0x000002a9u, + 0x000002aau, 0x000200f8u, 0x000002a9u, 0x000200f9u, 0x000002ceu, 0x000200f8u, 0x000002aau, 0x00050041u, + 0x00000029u, 0x000002abu, 0x00000026u, 0x00000028u, 0x0004003du, 0x00000019u, 0x000002acu, 0x000002abu, + 0x00060041u, 0x0000002du, 0x000002adu, 0x000002acu, 0x0000002cu, 0x0000002cu, 0x000700eau, 0x00000006u, + 0x000002aeu, 0x000002adu, 0x0000002fu, 0x0000000eu, 0x0000000eu, 0x000200f9u, 0x000002afu, 0x000200f8u, + 0x000002afu, 0x000700f5u, 0x00000006u, 0x0000033cu, 0x000002aeu, 0x000002aau, 0x000002c3u, 0x000002cau, + 0x000500b0u, 0x00000008u, 0x000002b2u, 0x0000033cu, 0x00000037u, 0x000400f6u, 0x000002cbu, 0x000002cau, + 0x00000000u, 0x000400fau, 0x000002b2u, 0x000002b3u, 0x000002cbu, 0x000200f8u, 0x000002b3u, 0x00050082u, + 0x00000006u, 0x000002b5u, 0x00000037u, 0x0000033cu, 0x000500acu, 0x00000008u, 0x000002b8u, 0x0000033au, + 0x000002b5u, 0x000300f7u, 0x000002bau, 0x00000000u, 0x000400fau, 0x000002b8u, 0x000002b9u, 0x000002bau, + 0x000200f8u, 0x000002b9u, 0x000200f9u, 0x000002cbu, 0x000200f8u, 0x000002bau, 0x00050080u, 0x00000006u, + 0x000002bdu, 0x0000033cu, 0x0000033au, 0x000900e6u, 0x00000006u, 0x000002c3u, 0x000002adu, 0x0000002fu, + 0x0000000eu, 0x0000000eu, 0x000002bdu, 0x0000033cu, 0x000500aau, 0x00000008u, 0x000002c6u, 0x000002c3u, + 0x0000033cu, 0x000300f7u, 0x000002c8u, 0x00000000u, 0x000400fau, 0x000002c6u, 0x000002c7u, 0x000002c8u, + 0x000200f8u, 0x000002c7u, 0x000200f9u, 0x000002cbu, 0x000200f8u, 0x000002c8u, 0x000200f9u, 0x000002cau, + 0x000200f8u, 0x000002cau, 0x000200f9u, 0x000002afu, 0x000200f8u, 0x000002cbu, 0x000900f5u, 0x00000008u, + 0x00000341u, 0x0000034bu, 0x000002afu, 0x00000041u, 0x000002b9u, 0x00000012u, 0x000002c7u, 0x000900f5u, + 0x00000008u, 0x0000033eu, 0x00000041u, 0x000002afu, 0x00000012u, 0x000002b9u, 0x00000012u, 0x000002c7u, + 0x000300f7u, 0x000002cdu, 0x00000000u, 0x000400fau, 0x0000033eu, 0x000002ceu, 0x000002cdu, 0x000200f8u, + 0x000002cdu, 0x000200f9u, 0x000002ceu, 0x000200f8u, 0x000002ceu, 0x000900f5u, 0x00000008u, 0x00000340u, + 0x00000012u, 0x000002a9u, 0x00000341u, 0x000002cbu, 0x00000041u, 0x000002cdu, 0x000400a8u, 0x00000008u, + 0x00000266u, 0x00000340u, 0x000200f9u, 0x00000262u, 0x000200f8u, 0x00000262u, 0x000700f5u, 0x00000008u, + 0x00000267u, 0x00000260u, 0x0000011eu, 0x00000266u, 0x000002ceu, 0x000300f7u, 0x00000269u, 0x00000000u, + 0x000400fau, 0x00000267u, 0x00000268u, 0x00000269u, 0x000200f8u, 0x00000268u, 0x00050041u, 0x00000029u, + 0x0000026au, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x0000026bu, 0x0000026au, 0x00060041u, + 0x0000002du, 0x0000026cu, 0x0000026bu, 0x0000002cu, 0x000000bcu, 0x000700eau, 0x00000006u, 0x0000026du, + 0x0000026cu, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x0003003eu, 0x00000116u, 0x00000117u, 0x000200f9u, + 0x00000269u, 0x000200f8u, 0x00000269u, 0x000600a9u, 0x00000006u, 0x000003afu, 0x00000267u, 0x0000002fu, + 0x0000035eu, 0x000500abu, 0x00000008u, 0x0000026fu, 0x000003afu, 0x0000000eu, 0x000300f7u, 0x00000271u, + 0x00000000u, 0x000400fau, 0x0000026fu, 0x00000270u, 0x00000271u, 0x000200f8u, 0x00000270u, 0x00050041u, + 0x00000029u, 0x00000272u, 0x00000026u, 0x000000a9u, 0x0004003du, 0x00000019u, 0x00000273u, 0x00000272u, + 0x00060041u, 0x0000002du, 0x00000274u, 0x00000273u, 0x0000002cu, 0x0000002cu, 0x000700eau, 0x00000006u, + 0x00000275u, 0x00000274u, 0x0000002fu, 0x0000000eu, 0x0000002fu, 0x00050041u, 0x00000007u, 0x00000276u, + 0x00000116u, 0x0000002cu, 0x0004003du, 0x00000006u, 0x00000277u, 0x00000276u, 0x000500aau, 0x00000008u, + 0x00000278u, 0x00000277u, 0x0000000eu, 0x000300f7u, 0x0000027au, 0x00000000u, 0x000400fau, 0x00000278u, + 0x00000279u, 0x0000027au, 0x000200f8u, 0x00000279u, 0x00060041u, 0x0000002du, 0x0000027du, 0x00000273u, + 0x0000002cu, 0x0000009eu, 0x000700eau, 0x00000006u, 0x0000027eu, 0x0000027du, 0x0000002fu, 0x0000000eu, + 0x0000002fu, 0x000200f9u, 0x0000027au, 0x000200f8u, 0x0000027au, 0x000200f9u, 0x00000271u, 0x000200f8u, + 0x00000271u, 0x000200f9u, 0x00000280u, 0x000200f8u, 0x00000280u, 0x000700f5u, 0x00000006u, 0x00000363u, + 0x0000000eu, 0x00000271u, 0x00000292u, 0x00000281u, 0x000500b0u, 0x00000008u, 0x00000287u, 0x00000363u, + 0x000002d0u, 0x000400f6u, 0x00000282u, 0x00000281u, 0x00000000u, 0x000400fau, 0x00000287u, 0x00000281u, + 0x00000282u, 0x000200f8u, 0x00000281u, 0x00050041u, 0x000000bdu, 0x00000288u, 0x00000026u, 0x000000bcu, + 0x0004003du, 0x00000017u, 0x00000289u, 0x00000288u, 0x00050080u, 0x00000006u, 0x0000028cu, 0x00000081u, + 0x00000363u, 0x00050041u, 0x00000007u, 0x0000028eu, 0x00000116u, 0x00000363u, 0x0004003du, 0x00000006u, + 0x0000028fu, 0x0000028eu, 0x00060041u, 0x0000002du, 0x00000290u, 0x00000289u, 0x0000002cu, 0x0000028cu, + 0x0005003eu, 0x00000290u, 0x0000028fu, 0x00000002u, 0x00000004u, 0x00050080u, 0x00000006u, 0x00000292u, + 0x00000363u, 0x00000091u, 0x000200f9u, 0x00000280u, 0x000200f8u, 0x00000282u, 0x000200f9u, 0x00000294u, + 0x000200f8u, 0x00000294u, 0x000100fdu, 0x00010038u, }; } // namespace leonida diff --git a/runtime/src/vulkan_indirect_clamp.h b/runtime/src/vulkan_indirect_clamp.h index 5563860154..fcf5cd76b6 100644 --- a/runtime/src/vulkan_indirect_clamp.h +++ b/runtime/src/vulkan_indirect_clamp.h @@ -70,6 +70,8 @@ inline constexpr std::uint32_t indirect_clamp_max_vertex_instances = 1u << 26; // (indirect_clamp_dispatch_limit), which on NVIDIA, for one, is far above Vulkan's guaranteed 65 535 in x. inline constexpr std::uint32_t indirect_clamp_max_group_dimension = 65535u; inline constexpr std::uint32_t indirect_clamp_max_groups = 1u << 20; +// The x a dispatch record was cut at before the device's limit applied, which the dispatch counters compare with. +inline constexpr std::uint32_t indirect_clamp_narrow_groups = 65535u; inline constexpr std::uint32_t indirect_clamp_budget = 1u << 27; // What the pass lets a dispatch record ask for in x, y and z: the device's own maxComputeWorkGroupCount. A fixed @@ -182,6 +184,12 @@ class IndirectArgumentClamp { std::uint64_t mesh_yz_records = 0; std::uint32_t mesh_max_y = 0; std::uint32_t mesh_max_z = 0; + // Dispatch records after the clamp: all of them, those that run wider than 65 535 groups in x (the old cut), + // the widest x that runs, and those cut at the device's own limits. + std::uint64_t dispatch_records = 0; + std::uint64_t dispatch_wide = 0; + std::uint32_t dispatch_widest = 0; + std::uint64_t dispatch_cut = 0; }; // One submission's clamp state: the counter slots its calls claimed, read and released together once that @@ -247,7 +255,7 @@ class IndirectArgumentClamp { VkDeviceMemory memory = VK_NULL_HANDLE; std::uint8_t* host = nullptr; std::uint32_t slots = 0; - static constexpr std::uint32_t slot_bytes = 64; // 48 bytes of counters (words 4-7 unused), 16 of padding + static constexpr std::uint32_t slot_bytes = 64; // 16 words of counters (words 4-7 unused) }; static constexpr std::uint32_t slots_per_area = 64; // 4,096 slots (128 KiB of host memory): enough for a submission's ExecuteIndirect calls after the load, and the @@ -280,6 +288,7 @@ class IndirectArgumentClamp { Counters counters_{}; std::uint64_t next_report_frame_ = 0; std::chrono::steady_clock::time_point next_mesh_report_{}; + std::chrono::steady_clock::time_point next_dispatch_report_{}; }; namespace detail { @@ -470,6 +479,10 @@ inline void IndirectArgumentClamp::release(std::vector& slots, bool read) delta.mesh_yz_records += words[9]; delta.mesh_max_y = std::max(delta.mesh_max_y, words[10]); delta.mesh_max_z = std::max(delta.mesh_max_z, words[11]); + delta.dispatch_wide += words[12]; + delta.dispatch_widest = std::max(delta.dispatch_widest, words[13]); + delta.dispatch_cut += words[14]; + delta.dispatch_records += words[15]; // Clear after reading so a later aborted batch that reuses this slot without submitting never // double-counts a previous submission's counters. std::memset(words, 0, HostArea::slot_bytes); @@ -484,6 +497,10 @@ inline void IndirectArgumentClamp::release(std::vector& slots, bool read) counters_.mesh_yz_records += delta.mesh_yz_records; counters_.mesh_max_y = std::max(counters_.mesh_max_y, delta.mesh_max_y); counters_.mesh_max_z = std::max(counters_.mesh_max_z, delta.mesh_max_z); + counters_.dispatch_records += delta.dispatch_records; + counters_.dispatch_wide += delta.dispatch_wide; + counters_.dispatch_widest = std::max(counters_.dispatch_widest, delta.dispatch_widest); + counters_.dispatch_cut += delta.dispatch_cut; // One line every 10 s while mesh records are clamped: does the console's mesh dispatch use y or z? const auto now = std::chrono::steady_clock::now(); if (read && counters_.mesh_records && now >= next_mesh_report_) { @@ -494,6 +511,18 @@ inline void IndirectArgumentClamp::release(std::vector& slots, bool read) static_cast(counters_.mesh_yz_records), counters_.mesh_max_y, counters_.mesh_max_z); } + // One line every 10 s while dispatch records are clamped: how wide the title's dispatches are, and whether + // the device's limits cut any (a device whose x limit is 65 535 still cuts a wider record). + if (read && counters_.dispatch_records && now >= next_dispatch_report_) { + next_dispatch_report_ = now + std::chrono::seconds(10); + std::fprintf(stderr, "[rt] indirect clamp dispatch: %llu records, %llu wider than %u groups in x, widest x %u, " + "%llu cut at the device's limits (%u x %u x %u)\n", + static_cast(counters_.dispatch_records), + static_cast(counters_.dispatch_wide), indirect_clamp_narrow_groups, + counters_.dispatch_widest, static_cast(counters_.dispatch_cut), + indirect_clamp_dispatch_limit(limits_, 0), indirect_clamp_dispatch_limit(limits_, 1), + indirect_clamp_dispatch_limit(limits_, 2)); + } const auto frame = submit_phases::totals().present_serial.load(std::memory_order_relaxed); if (read && calls && frame >= next_report_frame_) { next_report_frame_ = frame + 60; @@ -606,7 +635,8 @@ inline void IndirectArgumentClamp::emit(VkCommandBuffer cb, const ClampedIndirec // The counters start at zero: the budget's compare-and-swap and the record counts accumulate into them. A // transfer write, ordered to the compute stage by the barrier below, like the arguments' own writes. fn("vkCmdFillBuffer")(cb, job.buffer, job.stats_scratch_offset, job.list_budget == job.stats + 16 ? 20 : 16, 0); - fn("vkCmdFillBuffer")(cb, job.buffer, job.stats_scratch_offset + 32, 16, 0); // mesh words 8-11 + // Words 8-15: the mesh and dispatch counters. + fn("vkCmdFillBuffer")(cb, job.buffer, job.stats_scratch_offset + 32, 32, 0); VkMemoryBarrier before{VK_STRUCTURE_TYPE_MEMORY_BARRIER}; before.srcAccessMask = VK_ACCESS_MEMORY_WRITE_BIT; // every earlier write: the compute that wrote these arguments before.dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; @@ -649,7 +679,7 @@ inline void IndirectArgumentClamp::emit(VkCommandBuffer cb, const ClampedIndirec after_copy.dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT; barrier(cb, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 1, &after_copy, 0, nullptr, 0, nullptr); - VkBufferCopy copy{job.stats_scratch_offset, job.stats_offset, 12 * sizeof(std::uint32_t)}; + VkBufferCopy copy{job.stats_scratch_offset, job.stats_offset, 16 * sizeof(std::uint32_t)}; fn("vkCmdCopyBuffer")(cb, job.buffer, job.stats_buffer, 1, ©); } // The indirect command reads the records, and nothing else may read them while it does. diff --git a/runtime/test/indirect_clamp_test.cpp b/runtime/test/indirect_clamp_test.cpp index 0bdfc924c7..3a119b9521 100644 --- a/runtime/test/indirect_clamp_test.cpp +++ b/runtime/test/indirect_clamp_test.cpp @@ -103,6 +103,10 @@ struct Env { out.counters.records_clamped = after.records_clamped - before.records_clamped; out.counters.counts_clamped = after.counts_clamped - before.counts_clamped; out.counters.over_budget = after.over_budget - before.over_budget; + out.counters.dispatch_records = after.dispatch_records - before.dispatch_records; + out.counters.dispatch_wide = after.dispatch_wide - before.dispatch_wide; + out.counters.dispatch_widest = after.dispatch_widest; // the largest so far: cases go from narrow to wide + out.counters.dispatch_cut = after.dispatch_cut - before.dispatch_cut; // The scratch is idle once the queue is; hand it back for the next case like a completed submission does. clamp.retire(VK_NULL_HANDLE, 0); clamp.collect(); @@ -294,6 +298,10 @@ int main() { CHECK(all_zero(per_dimension)); CHECK(all_zero(record(out, 1, 3))); CHECK(out.counters.records_clamped == 2); + // The dispatch counters: both records, neither wider than 65 535 in x, and the first cut at the device's + // limit where it still runs. + CHECK(out.counters.dispatch_records == 2 && out.counters.dispatch_wide == 0); + CHECK(out.counters.dispatch_cut == (max_y <= leonida::indirect_clamp_max_groups ? 1u : 0u)); } // 6c. x within the device's limit is not cut at 65 535: 70 000 groups (fewer than 2^20) come back as asked on a @@ -306,6 +314,10 @@ int main() { const auto words = record(out, 0, 3); CHECK(words[0] == std::min(70000, max_x) && words[1] == 1 && words[2] == 1); CHECK(out.counters.records_clamped == (max_x >= 70000 ? 0u : 1u)); + // Counted as wider than 65 535 where it runs so, and as cut at the device's limit where it is cut. + CHECK(out.counters.dispatch_records == 1 && out.counters.dispatch_wide == (max_x >= 70000 ? 1u : 0u)); + CHECK(out.counters.dispatch_widest == std::min(70000, max_x)); + CHECK(out.counters.dispatch_cut == (max_x >= 70000 ? 0u : 1u)); } // 7. A console mesh dispatch uses only x. diff --git a/tests/test_indirect_clamp_telemetry.py b/tests/test_indirect_clamp_telemetry.py index df73bf763e..4e65ecf1da 100644 --- a/tests/test_indirect_clamp_telemetry.py +++ b/tests/test_indirect_clamp_telemetry.py @@ -47,9 +47,10 @@ def mesh_counter_ops(header): class TestIndirectClampTelemetry(unittest.TestCase): def test_embedded_preclamp_mesh_counters(self): src = Path(__file__).resolve().parents[1] / "runtime" / "src" - # Active mesh records + records requesting y/z > 1; max y and max z before clamping. + # Active mesh records + records requesting y/z > 1; max y and max z before clamping. Then the dispatch + # records: wider than 65 535 groups in x, the widest x, cut at the device's limits, and all of them. self.assertEqual(mesh_counter_ops((src / "indirect_clamp_spv.h").read_text(encoding="ascii")), - {(8, 234), (9, 234), (10, 239), (11, 239)}) + {(8, 234), (9, 234), (10, 239), (11, 239), (12, 234), (13, 239), (14, 234), (15, 234)}) if __name__ == "__main__":