upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorIAmNotSiob <273832158+IAmNotSiob@users.noreply.github.com>2026-11-22 17:31:21 +0100
committerIAmNotSiob <273832158+IAmNotSiob@users.noreply.github.com>2026-11-22 17:31:21 +0100
commit9b99a5f030cfd6c8bf96f0af2002dc939aa13b5b (patch)
tree3d2d0bfd501a978d00a12f755c8e5bc6eee12f32 /runtime
parentfaa42a61c5ffb24fe4046a5336102bba996872e7 (diff)
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
Merge remote-tracking branch 'origin/main' into d3d12-queues-v2
# Conflicts: # runtime/test/vk_test_device.h
Diffstat (limited to 'runtime')
-rw-r--r--runtime/CMakeLists.txt71
-rw-r--r--runtime/shims/d3d12_com.cpp45
-rw-r--r--runtime/shims/d3d12_com.h6
-rw-r--r--runtime/shims/d3d12_vulkan_device.cpp374
-rw-r--r--runtime/shims/dxgi_com.cpp15
-rw-r--r--runtime/shims/xgameruntime.cpp261
-rw-r--r--runtime/src/base_reservation.h22
-rw-r--r--runtime/src/command_list.h36
-rw-r--r--runtime/src/descriptor_table.h24
-rw-r--r--runtime/src/vulkan13_features.h127
-rw-r--r--runtime/src/vulkan_backend.h71
-rw-r--r--runtime/src/vulkan_bindless.h16
-rw-r--r--runtime/src/vulkan_replay.h54
-rw-r--r--runtime/src/xdxr_build.comp16
-rw-r--r--runtime/src/xdxr_build.h37
-rw-r--r--runtime/src/xdxr_build.inc7526
-rw-r--r--runtime/test/bink_audio_test.cpp2
-rw-r--r--runtime/test/check_texture_readback_sync.cmake3
-rw-r--r--runtime/test/check_vk_pipeline_cli.cmake3
-rw-r--r--runtime/test/d3d12_buffer_uav_test.cpp699
-rw-r--r--runtime/test/d3d12_compute_test.cpp2
-rw-r--r--runtime/test/d3d12_descriptor_test.cpp36
-rw-r--r--runtime/test/d3d12_m4_compute_test.cpp395
-rw-r--r--runtime/test/d3d12_pipeline_library_test.cpp316
-rw-r--r--runtime/test/d3d12_present_test.cpp13
-rw-r--r--runtime/test/d3d12_translated_draw_test.cpp26
-rw-r--r--runtime/test/d3d12_typeless_rtv_test.cpp249
-rw-r--r--runtime/test/d3d12_vulkan_device_test.cpp236
-rw-r--r--runtime/test/d3d12_xdxr_rt_test.cpp69
-rw-r--r--runtime/test/descriptor_table_test.cpp51
-rw-r--r--runtime/test/dxgi_swapchain_test.cpp43
-rw-r--r--runtime/test/fixtures/tiny_gdk_load.cpp21
-rw-r--r--runtime/test/shaders/build.py45
-rw-r--r--runtime/test/shaders/check.py71
-rw-r--r--runtime/test/shaders/cs_buf_counter.asm40
-rw-r--r--runtime/test/shaders/cs_buf_typed.asm63
-rw-r--r--runtime/test/shaders/cs_lds_b64_cmpst.asm132
-rw-r--r--runtime/test/shaders/cs_m4_fill.asm51
-rw-r--r--runtime/test/shaders/cs_m4_indirect.asm28
-rw-r--r--runtime/test/shaders/cs_tbuffer_store.asm275
-rw-r--r--runtime/test/shaders/ps_mandelbrot.asm46
-rw-r--r--runtime/test/shaders/vs_w64_a_skip.asm45
-rw-r--r--runtime/test/shaders/vs_w64_b_ballot_atomic.asm42
-rw-r--r--runtime/test/shaders/vs_w64_b_readlane_uniform.asm33
-rw-r--r--runtime/test/shaders/vs_w64_b_waterfall.asm35
-rw-r--r--runtime/test/shaders/vs_w64_c_bcnt_export.asm23
-rw-r--r--runtime/test/shaders/vs_w64_c_lane_id.asm21
-rw-r--r--runtime/test/shaders/vs_w64_c_readlane.asm23
-rw-r--r--runtime/test/shaders/w64_graphics.py98
-rw-r--r--runtime/test/typeless_rtv_test.cpp24
-rw-r--r--runtime/test/vk_bindless_test.cpp2
-rw-r--r--runtime/test/vk_descriptor_bench.cpp42
-rw-r--r--runtime/test/vk_harness.cpp23
-rw-r--r--runtime/test/vk_overlapping_occlusion_test.cpp74
-rw-r--r--runtime/test/vk_pipeline_check.cpp291
-rw-r--r--runtime/test/vk_presenter_sync_test.cpp30
-rw-r--r--runtime/test/vk_test_device.h85
-rw-r--r--runtime/test/vk_xdxr_build_test.cpp64
-rw-r--r--runtime/test/xgameruntime_test.cpp158
59 files changed, 8770 insertions, 3959 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
index 6ad6672e7..263d07ed7 100644
--- a/runtime/CMakeLists.txt
+++ b/runtime/CMakeLists.txt
@@ -857,7 +857,7 @@ if(TARGET Vulkan::Headers)
857 ${_stubs_header} 857 ${_stubs_header}
858 ID3D12GraphicsCommandList8 ID3D12CommandQueue ID3D12CommandAllocator ID3D12Fence1 858 ID3D12GraphicsCommandList8 ID3D12CommandQueue ID3D12CommandAllocator ID3D12Fence1
859 ID3D12Device11 ID3D12DescriptorHeap ID3D12Heap ID3D12Resource ID3D12QueryHeap ID3D12RootSignature 859 ID3D12Device11 ID3D12DescriptorHeap ID3D12Heap ID3D12Resource ID3D12QueryHeap ID3D12RootSignature
860 ID3D12PipelineState ID3D12CommandSignature 860 ID3D12PipelineState ID3D12CommandSignature ID3D12PipelineLibrary1
861 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../tools/gen_d3d12_stubs.py ${LEONIDA_D3D12_HEADER} 861 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../tools/gen_d3d12_stubs.py ${LEONIDA_D3D12_HEADER}
862 COMMENT "Generating D3D12 COM stubs" 862 COMMENT "Generating D3D12 COM stubs"
863 VERBATIM) 863 VERBATIM)
@@ -1222,8 +1222,65 @@ if(TARGET Vulkan::Headers)
1222 target_compile_options(d3d12_m3_frame_test PRIVATE /W4 /permissive- /utf-8) 1222 target_compile_options(d3d12_m3_frame_test PRIVATE /W4 /permissive- /utf-8)
1223 add_test(NAME d3d12_m3_frame COMMAND d3d12_m3_frame_test) 1223 add_test(NAME d3d12_m3_frame COMMAND d3d12_m3_frame_test)
1224 set_tests_properties(d3d12_m3_frame PROPERTIES SKIP_RETURN_CODE 77) 1224 set_tests_properties(d3d12_m3_frame PROPERTIES SKIP_RETURN_CODE 77)
1225
1226 # M4 (synthetic part): compute PSOs, a UAV table (structured and raw buffers, an R32_UINT storage image), an indirect
1227 # dispatch from arguments a first dispatch wrote, and a copy queue that streams the input in and reads the results
1228 # back across queue fences. cs_m4_fill.asm and cs_m4_indirect.asm go through the same build; build.py publishes
1229 # their synthetic FSSM programs (the compute header and the words their "fssm-data" comments give), which the
1230 # test wraps in shader containers.
1231 set(LEONIDA_M4_DIR ${CMAKE_CURRENT_BINARY_DIR}/generated/m4_shaders)
1232 set(LEONIDA_M4_FILES ${LEONIDA_M4_DIR}/spirv/index.json ${LEONIDA_M4_DIR}/fssm/cs_m4_fill.fssm
1233 ${LEONIDA_M4_DIR}/fssm/cs_m4_indirect.fssm)
1234 add_custom_command(
1235 OUTPUT ${LEONIDA_M4_FILES}
1236 COMMAND ${CMAKE_COMMAND} -E remove_directory ${LEONIDA_M4_DIR}
1237 COMMAND ${CMAKE_COMMAND} -E env "LLVM_MC=${LEONIDA_LLVM_MC}" "LEONIDA_SPIRV_TOOLS=${LEONIDA_SPIRV_TOOLS_NATIVE}"
1238 $<TARGET_FILE:Python3::Interpreter> -I ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/build.py
1239 ${LEONIDA_M4_DIR} cs_m4_fill cs_m4_indirect
1240 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/build.py
1241 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/compute_fixture.py
1242 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/cs_m4_fill.asm
1243 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/cs_m4_indirect.asm
1244 ${CMAKE_CURRENT_SOURCE_DIR}/../tools/rdna2spirv.py
1245 COMMENT "Translating cs_m4_fill and cs_m4_indirect for the compute test"
1246 VERBATIM)
1247 add_executable(d3d12_m4_compute_test test/d3d12_m4_compute_test.cpp shims/d3d12_xs_device.cpp ${LEONIDA_M4_FILES})
1248 target_link_libraries(d3d12_m4_compute_test PRIVATE gta6rt_d3d12_com)
1249 target_compile_definitions(d3d12_m4_compute_test PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX
1250 LEONIDA_TEST_M4_DIR="${LEONIDA_M4_DIR}")
1251 target_compile_options(d3d12_m4_compute_test PRIVATE /W4 /permissive- /utf-8)
1252 add_test(NAME d3d12_m4_compute COMMAND d3d12_m4_compute_test)
1253 set_tests_properties(d3d12_m4_compute PROPERTIES SKIP_RETURN_CODE 77)
1254
1255 # Typed buffer UAVs and UAV counters: cs_buf_typed.asm writes typed views through V#s with a FORMAT, and
1256 # cs_buf_counter.asm appends to and consumes from a structured view whose counter is the second V# of its slot;
1257 # the test also compares typed-buffer and counter clears with the host runtime on the layer's adapter.
1258 set(LEONIDA_BUFFER_UAV_DIR ${CMAKE_CURRENT_BINARY_DIR}/generated/buffer_uav_shaders)
1259 set(LEONIDA_BUFFER_UAV_FILES ${LEONIDA_BUFFER_UAV_DIR}/spirv/index.json
1260 ${LEONIDA_BUFFER_UAV_DIR}/fssm/cs_buf_typed.fssm
1261 ${LEONIDA_BUFFER_UAV_DIR}/fssm/cs_buf_counter.fssm)
1262 add_custom_command(
1263 OUTPUT ${LEONIDA_BUFFER_UAV_FILES}
1264 COMMAND ${CMAKE_COMMAND} -E remove_directory ${LEONIDA_BUFFER_UAV_DIR}
1265 COMMAND ${CMAKE_COMMAND} -E env "LLVM_MC=${LEONIDA_LLVM_MC}" "LEONIDA_SPIRV_TOOLS=${LEONIDA_SPIRV_TOOLS_NATIVE}"
1266 $<TARGET_FILE:Python3::Interpreter> -I ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/build.py
1267 ${LEONIDA_BUFFER_UAV_DIR} cs_buf_typed cs_buf_counter
1268 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/build.py
1269 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/compute_fixture.py
1270 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/cs_buf_typed.asm
1271 ${CMAKE_CURRENT_SOURCE_DIR}/test/shaders/cs_buf_counter.asm
1272 ${CMAKE_CURRENT_SOURCE_DIR}/../tools/rdna2spirv.py
1273 COMMENT "Translating cs_buf_typed and cs_buf_counter for the buffer UAV test"
1274 VERBATIM)
1275 add_executable(d3d12_buffer_uav_test test/d3d12_buffer_uav_test.cpp shims/d3d12_xs_device.cpp ${LEONIDA_BUFFER_UAV_FILES})
1276 target_link_libraries(d3d12_buffer_uav_test PRIVATE gta6rt_d3d12_com)
1277 target_compile_definitions(d3d12_buffer_uav_test PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX
1278 LEONIDA_TEST_BUFFER_UAV_DIR="${LEONIDA_BUFFER_UAV_DIR}")
1279 target_compile_options(d3d12_buffer_uav_test PRIVATE /W4 /permissive- /utf-8)
1280 add_test(NAME d3d12_buffer_uav COMMAND d3d12_buffer_uav_test)
1281 set_tests_properties(d3d12_buffer_uav PROPERTIES SKIP_RETURN_CODE 77)
1225 else() 1282 else()
1226 message(STATUS "llvm-mc (set LLVM_MC) or the SDK's spirv-as/spirv-val not found: d3d12_translated_draw_test, d3d12_m2_textured_test and d3d12_m3_frame_test are not built") 1283 message(STATUS "llvm-mc (set LLVM_MC) or the SDK's spirv-as/spirv-val not found: d3d12_translated_draw_test, d3d12_m2_textured_test, d3d12_m3_frame_test, d3d12_m4_compute_test and d3d12_buffer_uav_test are not built")
1227 endif() 1284 endif()
1228 # ID3D12Resource::GetHeapProperties and ID3D12DescriptorHeap::GetDesc (node masks, resolved heap flags) against the 1285 # ID3D12Resource::GetHeapProperties and ID3D12DescriptorHeap::GetDesc (node masks, resolved heap flags) against the
1229 # host runtime and WARP; run explicitly on a Vulkan GPU. 1286 # host runtime and WARP; run explicitly on a Vulkan GPU.
@@ -1379,6 +1436,16 @@ if(TARGET Vulkan::Headers)
1379 target_compile_options(d3d12_set0_compute_test PRIVATE /W4 /permissive- /utf-8) 1436 target_compile_options(d3d12_set0_compute_test PRIVATE /W4 /permissive- /utf-8)
1380 add_test(NAME d3d12_set0_compute COMMAND d3d12_set0_compute_test) 1437 add_test(NAME d3d12_set0_compute COMMAND d3d12_set0_compute_test)
1381 set_tests_properties(d3d12_set0_compute PROPERTIES SKIP_RETURN_CODE 77) 1438 set_tests_properties(d3d12_set0_compute PROPERTIES SKIP_RETURN_CODE 77)
1439 add_executable(d3d12_pipeline_library_test test/d3d12_pipeline_library_test.cpp
1440 ${LEONIDA_TEST_CS} ${LEONIDA_TEST_VS} ${LEONIDA_TEST_PS})
1441 target_link_libraries(d3d12_pipeline_library_test PRIVATE gta6rt_d3d12_com)
1442 target_compile_definitions(d3d12_pipeline_library_test PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX
1443 LEONIDA_TEST_CS_SPV="${LEONIDA_TEST_CS}"
1444 LEONIDA_TEST_VS_SPV="${LEONIDA_TEST_VS}"
1445 LEONIDA_TEST_PS_SPV="${LEONIDA_TEST_PS}")
1446 target_compile_options(d3d12_pipeline_library_test PRIVATE /W4 /permissive- /utf-8)
1447 add_test(NAME d3d12_pipeline_library COMMAND d3d12_pipeline_library_test)
1448 set_tests_properties(d3d12_pipeline_library PROPERTIES SKIP_RETURN_CODE 77)
1382 else() 1449 else()
1383 message(STATUS "glslangValidator not found: d3d12_compute_test, d3d12_draw_test and d3d12_set0_compute_test are not built") 1450 message(STATUS "glslangValidator not found: d3d12_compute_test, d3d12_draw_test and d3d12_set0_compute_test are not built")
1384 endif() 1451 endif()
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp
index 581bc0fa9..55c6f86a8 100644
--- a/runtime/shims/d3d12_com.cpp
+++ b/runtime/shims/d3d12_com.cpp
@@ -601,12 +601,17 @@ public:
601 cmd.argument_offset = argument_buffer_offset; 601 cmd.argument_offset = argument_buffer_offset;
602 cmd.count_buffer = count_buffer ? resource_id(count_buffer) : 0; 602 cmd.count_buffer = count_buffer ? resource_id(count_buffer) : 0;
603 cmd.count_offset = count_buffer ? count_buffer_offset : 0; 603 cmd.count_offset = count_buffer ? count_buffer_offset : 0;
604 if (kind == leonida::IndirectKind::dispatch && max_command_count) { // the pipeline and root arguments a Dispatch would record
605 if (!compute_pipeline_ || !compute_.layout) return check(false);
606 cmd.pipeline = compute_pipeline_;
607 cmd.user_data = compute_.data;
608 }
604 check(list_.execute_indirect(cmd)); 609 check(list_.execute_indirect(cmd));
605 } 610 }
606 611
607 void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure( 612 void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure(
608 const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* desc, UINT, 613 const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* desc, UINT postbuild_count,
609 const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC*) override { 614 const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* postbuild) override {
610 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE || !desc) return check(false); 615 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE || !desc) return check(false);
611 const auto& in = desc->Inputs; 616 const auto& in = desc->Inputs;
612 leonida::BuildAccelerationStructure cmd{}; 617 leonida::BuildAccelerationStructure cmd{};
@@ -660,7 +665,38 @@ public:
660 cmd.triangles.push_back(t); 665 cmd.triangles.push_back(t);
661 } 666 }
662 } 667 }
663 check(list_.build_acceleration_structure(cmd)); 668 const std::uint64_t built = cmd.dst_va;
669 const bool recorded = list_.build_acceleration_structure(std::move(cmd));
670 check(recorded);
671 if (!recorded) return;
672 // The postbuild values of the structure just built, after it (D3D12 orders them after the build).
673 for (UINT i = 0; postbuild && i < postbuild_count; ++i) {
674 leonida::AccelerationStructurePostbuild info{};
675 info.dest_va = postbuild[i].DestBuffer;
676 info.type = static_cast<std::uint32_t>(postbuild[i].InfoType);
677 info.sources = {built};
678 const bool ok = list_.acceleration_structure_postbuild(std::move(info));
679 check(ok);
680 if (!ok) return;
681 }
682 }
683
684 void STDMETHODCALLTYPE EmitRaytracingAccelerationStructurePostbuildInfo(
685 const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* desc, UINT count,
686 const D3D12_GPU_VIRTUAL_ADDRESS* sources) override {
687 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE || !desc || !count || !sources) return check(false);
688 leonida::AccelerationStructurePostbuild info{};
689 info.dest_va = desc->DestBuffer;
690 info.type = static_cast<std::uint32_t>(desc->InfoType);
691 info.sources.assign(sources, sources + count);
692 check(list_.acceleration_structure_postbuild(std::move(info)));
693 }
694
695 void STDMETHODCALLTYPE CopyRaytracingAccelerationStructure(D3D12_GPU_VIRTUAL_ADDRESS dest,
696 D3D12_GPU_VIRTUAL_ADDRESS source,
697 D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE mode) override {
698 if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE) return check(false);
699 check(list_.copy_acceleration_structure({dest, source, static_cast<std::uint32_t>(mode)}));
664 } 700 }
665 701
666 static GraphicsCommandList* from(IUnknown* object) { return Child::from<GraphicsCommandList>(object); } 702 static GraphicsCommandList* from(IUnknown* object) { return Child::from<GraphicsCommandList>(object); }
@@ -1261,7 +1297,8 @@ HRESULT create_command_list(D3D12_COMMAND_LIST_TYPE type, ID3D12CommandAllocator
1261 if (!command_allocator || command_allocator->type() != type) return E_INVALIDARG; 1297 if (!command_allocator || command_allocator->type() != type) return E_INVALIDARG;
1262 // A list is created open, so the allocator must be free: E_INVALIDARG as on the PC runtime (D3D-51). 1298 // A list is created open, so the allocator must be free: E_INVALIDARG as on the PC runtime (D3D-51).
1263 if (command_allocator->recording()) return E_INVALIDARG; 1299 if (command_allocator->recording()) return E_INVALIDARG;
1264 if (type != D3D12_COMMAND_LIST_TYPE_DIRECT && type != D3D12_COMMAND_LIST_TYPE_BUNDLE) 1300 if (type != D3D12_COMMAND_LIST_TYPE_DIRECT && type != D3D12_COMMAND_LIST_TYPE_BUNDLE &&
1301 type != D3D12_COMMAND_LIST_TYPE_COMPUTE && type != D3D12_COMMAND_LIST_TYPE_COPY)
1265 stub("create_command_list(non-direct type)"); 1302 stub("create_command_list(non-direct type)");
1266 auto* object = new GraphicsCommandList(type); // created open, as D3D12 does 1303 auto* object = new GraphicsCommandList(type); // created open, as D3D12 does
1267 object->record_into(command_allocator); 1304 object->record_into(command_allocator);
diff --git a/runtime/shims/d3d12_com.h b/runtime/shims/d3d12_com.h
index ae99ce739..3e82d8bcf 100644
--- a/runtime/shims/d3d12_com.h
+++ b/runtime/shims/d3d12_com.h
@@ -277,6 +277,12 @@ inline constexpr UINT descriptor_size = 32;
277// ExecuteCommandLists returns void; this is what the last call on the queue did. 277// ExecuteCommandLists returns void; this is what the last call on the queue did.
278leonida::ReplayResult last_execute_result(ID3D12CommandQueue* queue); 278leonida::ReplayResult last_execute_result(ID3D12CommandQueue* queue);
279 279
280// True when the current thread or process token has SeIncreaseBasePriorityPrivilege enabled (or the test override
281// forces it), which D3D12 requires for D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME.
282bool has_global_realtime_privilege();
283// Test override for has_global_realtime_privilege(): -1 queries the token (default), 0 forces denied, 1 forces granted.
284void set_global_realtime_privilege_override_for_test(int state);
285
280// The front/back stencil references last recorded by ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef on 286// The front/back stencil references last recorded by ID3D12GraphicsCommandList8::OMSetFrontAndBackStencilRef on
281// `list`. The values are kept for the future pipeline path, which is what would apply them. False when `list` is 287// `list`. The values are kept for the future pipeline path, which is what would apply them. False when `list` is
282// not one of this module's command lists. 288// not one of this module's command lists.
diff --git a/runtime/shims/d3d12_vulkan_device.cpp b/runtime/shims/d3d12_vulkan_device.cpp
index a98b49171..bb335d3d9 100644
--- a/runtime/shims/d3d12_vulkan_device.cpp
+++ b/runtime/shims/d3d12_vulkan_device.cpp
@@ -15,15 +15,19 @@
15#include "d3d12_xs_device.h" 15#include "d3d12_xs_device.h"
16#include "dxgi_com.h" 16#include "dxgi_com.h"
17#include "../src/gfx10_descriptors.h" 17#include "../src/gfx10_descriptors.h"
18#include "../src/uav_clear.h"
18#include "../src/vulkan_bindless.h" 19#include "../src/vulkan_bindless.h"
19#include "../src/vulkan_memory.h" 20#include "../src/vulkan_memory.h"
20#include "../src/resource_tiling.h" 21#include "../src/resource_tiling.h"
21#include "../src/shader_library.h" 22#include "../src/shader_library.h"
22#include "../src/vulkan_present.h" 23#include "../src/vulkan_present.h"
23#include "../src/vulkan_device_filter.h" 24#include "../src/vulkan_device_filter.h"
25#include "../src/vulkan13_features.h"
24 26
25#include <vulkan/vulkan_win32.h> 27#include <vulkan/vulkan_win32.h>
26 28#ifdef _MSC_VER
29#pragma comment(lib, "advapi32.lib")
30#endif
27 31
28#include <algorithm> 32#include <algorithm>
29#include <atomic> 33#include <atomic>
@@ -59,6 +63,8 @@ static_assert(sizeof(leonida::TargetView) <= kDescriptorSize);
59constexpr D3D_SHADER_MODEL kHighestShaderModel = D3D_SHADER_MODEL_6_0; 63constexpr D3D_SHADER_MODEL kHighestShaderModel = D3D_SHADER_MODEL_6_0;
60constexpr D3D_ROOT_SIGNATURE_VERSION kHighestRootSignatureVersion = D3D_ROOT_SIGNATURE_VERSION_1_1; 64constexpr D3D_ROOT_SIGNATURE_VERSION kHighestRootSignatureVersion = D3D_ROOT_SIGNATURE_VERSION_1_1;
61 65
66std::atomic<int> g_global_realtime_privilege_override{-1};
67
62void log_once(const char* what, int value) { 68void log_once(const char* what, int value) {
63 static std::mutex mutex; 69 static std::mutex mutex;
64 static std::set<std::pair<std::string, int>> seen; 70 static std::set<std::pair<std::string, int>> seen;
@@ -390,12 +396,6 @@ struct DeviceState {
390 // True when VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 lacks native STORAGE_IMAGE but mutable R32_UINT+{R32_UINT,E5B9G9R9} 396 // True when VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 lacks native STORAGE_IMAGE but mutable R32_UINT+{R32_UINT,E5B9G9R9}
391 // is supported, so R9G9B9E5_SHAREDEXP UAV textures are backed by R32_UINT with separate storage/sampled views. 397 // is supported, so R9G9B9E5_SHAREDEXP UAV textures are backed by R32_UINT with separate storage/sampled views.
392 bool r9g9b9e5_uav_emulated = false; 398 bool r9g9b9e5_uav_emulated = false;
393 // D3D-219: VK_EXT_image_view_min_lod may select levels with minLodInteger = floor(minLod), the spec's
394 // "alternative", while D3D12's ResourceMinLODClamp is fractional. Intel's integrated GPUs on Windows do: a 0.75
395 // clamp sampled at LOD 0 with point mip filtering reads mip 0 (UHD 770 101.7092, Arrow Lake Xe-LPG; #1015).
396 // bind_image gives such a driver the clamp rounded to the nearest level, which point mip filtering selects
397 // exactly. LEONIDA_MIN_LOD_INTEGER=1 or 0 forces it either way.
398 bool min_lod_integer = false;
399 399
400 // Cached physical-device no-attachment sample counts for D3D12_OPTIONS19. 400 // Cached physical-device no-attachment sample counts for D3D12_OPTIONS19.
401 UINT no_output_sample_counts = 0; 401 UINT no_output_sample_counts = 0;
@@ -807,9 +807,6 @@ struct DeviceState {
807 log_once("SRV requires VK_EXT_image_view_min_lod; first mip", int(image.first_mip)); 807 log_once("SRV requires VK_EXT_image_view_min_lod; first mip", int(image.first_mip));
808 return false; 808 return false;
809 } 809 }
810 // A driver that floors the clamp (min_lod_integer) gets the level point mip filtering picks:
811 // nearest(d') = ceil(d' + 0.5) - 1, the spec's preferred rounding. It stays within the mip range.
812 if (min_lod_integer) clamp.minLod = std::ceil(clamp.minLod + 0.5f) - 1.0f;
813 clamp.pNext = view_info.pNext; 810 clamp.pNext = view_info.pNext;
814 view_info.pNext = &clamp; 811 view_info.pNext = &clamp;
815 } 812 }
@@ -1080,6 +1077,21 @@ const char* heap_properties_refusal(const D3D12_HEAP_PROPERTIES& heap) {
1080 return nullptr; 1077 return nullptr;
1081} 1078}
1082 1079
1080// Why the host would refuse this CreateHeap/CreateHeap1 description, or null if these checks pass (D3D-238). A probe
1081// on an RX 5700 and WARP refuses an alignment other than 0, 64 KiB and 4 MiB, the heap properties above (a type of 0,
1082// a custom heap without a CPU page property), and a heap that denies buffers and both kinds of texture.
1083const char* heap_desc_refusal(const D3D12_HEAP_DESC& desc) {
1084 if (!desc.SizeInBytes) return "zero size";
1085 if (desc.Alignment && desc.Alignment != D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT &&
1086 desc.Alignment != D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT)
1087 return "alignment (0, 64 KiB or 4 MiB)";
1088 if (const char* why = heap_properties_refusal(desc.Properties)) return why;
1089 constexpr UINT deny_all = D3D12_HEAP_FLAG_DENY_BUFFERS | D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES |
1090 D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES;
1091 if ((UINT(desc.Flags) & deny_all) == deny_all) return "heap flags denying every resource kind";
1092 return nullptr;
1093}
1094
1083// Why the host would refuse this committed resource, or null if these checks pass. The flag and format tables were 1095// Why the host would refuse this committed resource, or null if these checks pass. The flag and format tables were
1084// measured on an RX 9070 XT, an integrated Radeon and WARP, which agree on all of them. Cross-adapter resources 1096// measured on an RX 9070 XT, an integrated Radeon and WARP, which agree on all of them. Cross-adapter resources
1085// (valid there only as a row-major texture on a SHARED | SHARED_CROSS_ADAPTER heap) are refused: this layer has no 1097// (valid there only as a row-major texture on a SHARED | SHARED_CROSS_ADAPTER heap) are refused: this layer has no
@@ -2626,6 +2638,99 @@ struct TextureView {
2626 float min_lod = 0.0f; 2638 float min_lod = 0.0f;
2627}; 2639};
2628 2640
2641// In-memory pipeline library (docs/d3d12_vulkan.md sections 3.6 and 4). D3D12 cached blobs are driver-specific
2642// and ignored across runs; Serialize writes a versioned header so CreatePipelineLibrary recognizes our own blobs
2643// and returns D3D12_ERROR_DRIVER_VERSION_MISMATCH for foreign or corrupt ones.
2644class PipelineLibrary final
2645 : public Child<PipelineLibrary, ID3D12PipelineLibrary1Stubs, ID3D12Object, ID3D12DeviceChild, ID3D12Pageable,
2646 ID3D12PipelineLibrary, ID3D12PipelineLibrary1> {
2647public:
2648 // {6e2a9d41-7b5f-4c83-8e14-2a9d6f3c5b10}
2649 static constexpr GUID kTag{0x6e2a9d41, 0x7b5f, 0x4c83, {0x8e, 0x14, 0x2a, 0x9d, 0x6f, 0x3c, 0x5b, 0x10}};
2650
2651 struct Header {
2652 std::uint32_t magic;
2653 std::uint32_t version;
2654 std::uint32_t count;
2655 std::uint32_t reserved;
2656 };
2657 static constexpr std::uint32_t kMagic = 0x314C504Cu; // "LPL1"
2658 static constexpr std::uint32_t kVersion = 1;
2659
2660 ~PipelineLibrary() override {
2661 std::lock_guard lock(mutex_);
2662 for (auto& [name, pso] : entries_)
2663 if (pso) pso->Release();
2664 entries_.clear();
2665 }
2666
2667 static bool valid_blob(const void* data, SIZE_T size) {
2668 if (!data || size < sizeof(Header)) return false;
2669 Header h{};
2670 std::memcpy(&h, data, sizeof(h));
2671 return h.magic == kMagic && h.version == kVersion && h.reserved == 0;
2672 }
2673
2674 HRESULT STDMETHODCALLTYPE StorePipeline(LPCWSTR name, ID3D12PipelineState* pipeline) override {
2675 if (!name || !*name || !pipeline) return E_INVALIDARG;
2676 if (!PipelineState::from<PipelineState>(pipeline)) return E_INVALIDARG;
2677 std::lock_guard lock(mutex_);
2678 auto [it, inserted] = entries_.emplace(name, pipeline);
2679 if (!inserted) return E_INVALIDARG;
2680 pipeline->AddRef();
2681 return S_OK;
2682 }
2683
2684 HRESULT STDMETHODCALLTYPE LoadGraphicsPipeline(LPCWSTR name, const D3D12_GRAPHICS_PIPELINE_STATE_DESC* desc,
2685 REFIID riid, void** out) override {
2686 if (!out) return E_POINTER;
2687 *out = nullptr;
2688 if (!name || !*name || !desc) return E_INVALIDARG;
2689 return load_entry(name, false, true, riid, out);
2690 }
2691
2692 HRESULT STDMETHODCALLTYPE LoadComputePipeline(LPCWSTR name, const D3D12_COMPUTE_PIPELINE_STATE_DESC* desc,
2693 REFIID riid, void** out) override {
2694 if (!out) return E_POINTER;
2695 *out = nullptr;
2696 if (!name || !*name || !desc) return E_INVALIDARG;
2697 return load_entry(name, true, false, riid, out);
2698 }
2699
2700 HRESULT STDMETHODCALLTYPE LoadPipeline(LPCWSTR name, const D3D12_PIPELINE_STATE_STREAM_DESC* desc,
2701 REFIID riid, void** out) override {
2702 if (!out) return E_POINTER;
2703 *out = nullptr;
2704 if (!name || !*name || !desc || !desc->SizeInBytes || !desc->pPipelineStateSubobjectStream) return E_INVALIDARG;
2705 return load_entry(name, false, false, riid, out);
2706 }
2707
2708 SIZE_T STDMETHODCALLTYPE GetSerializedSize() override { return sizeof(Header); }
2709
2710 HRESULT STDMETHODCALLTYPE Serialize(void* data, SIZE_T size) override {
2711 if (!data || size < sizeof(Header)) return E_INVALIDARG;
2712 std::lock_guard lock(mutex_);
2713 const Header h{kMagic, kVersion, static_cast<std::uint32_t>(entries_.size()), 0};
2714 std::memcpy(data, &h, sizeof(h));
2715 return S_OK;
2716 }
2717
2718private:
2719 HRESULT load_entry(LPCWSTR name, bool require_compute, bool require_graphics, REFIID riid, void** out) {
2720 std::lock_guard lock(mutex_);
2721 const auto it = entries_.find(name);
2722 if (it == entries_.end()) return E_INVALIDARG;
2723 PipelineState* ps = PipelineState::from<PipelineState>(it->second);
2724 if (!ps) return E_INVALIDARG;
2725 if (require_compute && !ps->compute()) return E_INVALIDARG;
2726 if (require_graphics && !ps->graphics()) return E_INVALIDARG;
2727 return it->second->QueryInterface(riid, out);
2728 }
2729
2730 std::mutex mutex_;
2731 std::unordered_map<std::wstring, ID3D12PipelineState*> entries_;
2732};
2733
2629// The T# of a view: what the shader gets to know about it, in the structure the console's shaders read. 2734// The T# of a view: what the shader gets to know about it, in the structure the console's shaders read.
2630// False (with a log) for a view set 0 cannot show yet. 2735// False (with a log) for a view set 0 cannot show yet.
2631bool image_descriptor(const Resource& resource, const TextureView& view, leonida::gfx10::Image& out) { 2736bool image_descriptor(const Resource& resource, const TextureView& view, leonida::gfx10::Image& out) {
@@ -2656,7 +2761,7 @@ bool image_descriptor(const Resource& resource, const TextureView& view, leonida
2656 const auto dimension = line ? D3D12_RESOURCE_DIMENSION_TEXTURE1D : 2761 const auto dimension = line ? D3D12_RESOURCE_DIMENSION_TEXTURE1D :
2657 view.type == g::ImageType::image_3d ? D3D12_RESOURCE_DIMENSION_TEXTURE3D : 2762 view.type == g::ImageType::image_3d ? D3D12_RESOURCE_DIMENSION_TEXTURE3D :
2658 D3D12_RESOURCE_DIMENSION_TEXTURE2D; 2763 D3D12_RESOURCE_DIMENSION_TEXTURE2D;
2659 if (desc.Dimension != dimension || (line && desc.DepthOrArraySize != 1) || msaa != (desc.SampleDesc.Count > 1)) { 2764 if (desc.Dimension != dimension || (line && view.layer_count != 1) || msaa != (desc.SampleDesc.Count > 1)) {
2660 log_once("view type incompatible with texture dimension or sample count; view type", int(view.type)); 2765 log_once("view type incompatible with texture dimension or sample count; view type", int(view.type));
2661 return false; 2766 return false;
2662 } 2767 }
@@ -3067,15 +3172,6 @@ public:
3067 VkPhysicalDeviceProperties properties{}; 3172 VkPhysicalDeviceProperties properties{};
3068 device_properties(info.physical, &properties); 3173 device_properties(info.physical, &properties);
3069 state_.max_sampler_lod_bias = properties.limits.maxSamplerLodBias; 3174 state_.max_sampler_lod_bias = properties.limits.maxSamplerLodBias;
3070 {
3071 constexpr std::uint32_t kIntelVendorId = 0x8086;
3072 state_.min_lod_integer = properties.vendorID == kIntelVendorId &&
3073 properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
3074 char text[4] = {};
3075 size_t length = 0;
3076 if (getenv_s(&length, text, "LEONIDA_MIN_LOD_INTEGER") == 0 && length > 1)
3077 state_.min_lod_integer = text[0] != '0';
3078 }
3079 std::uint32_t family_count = 0; 3175 std::uint32_t family_count = 0;
3080 queue_families(info.physical, &family_count, nullptr); 3176 queue_families(info.physical, &family_count, nullptr);
3081 std::vector<VkQueueFamilyProperties> families(family_count); 3177 std::vector<VkQueueFamilyProperties> families(family_count);
@@ -3418,8 +3514,8 @@ public:
3418 log_once("CreateCommandQueue refused (type, priority, flags or node mask), type", desc->Type); 3514 log_once("CreateCommandQueue refused (type, priority, flags or node mask), type", desc->Type);
3419 return d3d12_trace::result(method, E_INVALIDARG); 3515 return d3d12_trace::result(method, E_INVALIDARG);
3420 } 3516 }
3421 // Global realtime priority needs a privilege the host grants only on request; without it, this answer. 3517 // Global realtime priority needs SeIncreaseBasePriorityPrivilege enabled in the token; without it, this answer.
3422 if (desc->Priority == D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME) { 3518 if (desc->Priority == D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME && !has_global_realtime_privilege()) {
3423 log_once("CreateCommandQueue refused (global realtime priority), type", desc->Type); 3519 log_once("CreateCommandQueue refused (global realtime priority), type", desc->Type);
3424 return d3d12_trace::result(method, DXGI_ERROR_ACCESS_DENIED); 3520 return d3d12_trace::result(method, DXGI_ERROR_ACCESS_DENIED);
3425 } 3521 }
@@ -3768,6 +3864,19 @@ public:
3768 return hand_out(pipeline, riid, out); 3864 return hand_out(pipeline, riid, out);
3769 } 3865 }
3770 3866
3867 // Device1: in-memory pipeline library (docs/d3d12_vulkan.md sections 3.6 and 4).
3868 HRESULT STDMETHODCALLTYPE CreatePipelineLibrary(const void* blob, SIZE_T size, REFIID riid, void** out) override {
3869 constexpr auto method = "ID3D12Device1::CreatePipelineLibrary";
3870 if (out) *out = nullptr;
3871 if (size > 0 && !blob) return d3d12_trace::result(method, E_INVALIDARG);
3872 if (size > 0 && !PipelineLibrary::valid_blob(blob, size))
3873 return d3d12_trace::result(method, D3D12_ERROR_DRIVER_VERSION_MISMATCH);
3874 if (!out) return d3d12_trace::result(method, S_FALSE);
3875 auto* lib = new PipelineLibrary();
3876 lib->attach_device(identity());
3877 return d3d12_trace::result(method, hand_out(lib, riid, out));
3878 }
3879
3771 UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE) override { 3880 UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE) override {
3772 return kDescriptorSize; 3881 return kDescriptorSize;
3773 } 3882 }
@@ -3826,13 +3935,16 @@ public:
3826 r->allows_view_format(vulkan_format(requested, false).format)); 3935 r->allows_view_format(vulkan_format(requested, false).format));
3827 if (typeless_rgba8 || (requested != rd.Format && listed && 3936 if (typeless_rgba8 || (requested != rd.Format && listed &&
3828 rd.Format == DXGI_FORMAT_R8G8B8A8_UNORM)) { 3937 rd.Format == DXGI_FORMAT_R8G8B8A8_UNORM)) {
3829 const bool plain = desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2D; 3938 const bool msaa = rd.SampleDesc.Count > 1;
3830 const bool array = desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2DARRAY; 3939 const bool plain = !msaa && desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2D;
3940 const bool array = !msaa && desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2DARRAY;
3941 const bool ms = msaa && desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2DMS;
3942 const bool ms_array = msaa && desc && desc->ViewDimension == D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY;
3831 const UINT plane = plain ? desc->Texture2D.PlaneSlice : 3943 const UINT plane = plain ? desc->Texture2D.PlaneSlice :
3832 array ? desc->Texture2DArray.PlaneSlice : 0; 3944 array ? desc->Texture2DArray.PlaneSlice : 0;
3833 // Subtraction keeps malformed layer ranges from overflowing during validation. 3945 // Subtraction keeps malformed layer ranges from overflowing during validation.
3834 if ((!plain && !array) || rd.Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D || 3946 if ((!plain && !array && !ms && !ms_array) || rd.Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D ||
3835 rd.SampleDesc.Count != 1 || plane || !view.resource || view.mip >= rd.MipLevels || 3947 plane || !view.resource || view.mip >= rd.MipLevels ||
3836 !view.layer_count || view.first_layer >= rd.DepthOrArraySize || 3948 !view.layer_count || view.first_layer >= rd.DepthOrArraySize ||
3837 view.layer_count > rd.DepthOrArraySize - view.first_layer || 3949 view.layer_count > rd.DepthOrArraySize - view.first_layer ||
3838 !(rd.Flags & D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET)) { 3950 !(rd.Flags & D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET)) {
@@ -3966,9 +4078,10 @@ public:
3966 TextureView view{}; 4078 TextureView view{};
3967 if (!desc) { 4079 if (!desc) {
3968 const bool array = r->desc().DepthOrArraySize > 1; 4080 const bool array = r->desc().DepthOrArraySize > 1;
3969 if (r->desc().Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE1D && !array) 4081 if (r->desc().Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE1D && !array) {
3970 view.type = ImageType::image_1d; 4082 view.type = ImageType::image_1d;
3971 else if (r->desc().Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D) 4083 view.layer_count = 1;
4084 } else if (r->desc().Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D)
3972 view.type = ImageType::image_3d; 4085 view.type = ImageType::image_3d;
3973 else if (r->desc().SampleDesc.Count > 1) 4086 else if (r->desc().SampleDesc.Count > 1)
3974 view.type = array ? ImageType::image_2d_msaa_array : ImageType::image_2d_msaa; 4087 view.type = array ? ImageType::image_2d_msaa_array : ImageType::image_2d_msaa;
@@ -3982,6 +4095,7 @@ public:
3982 view.type = ImageType::image_1d; 4095 view.type = ImageType::image_1d;
3983 view.first_mip = desc->Texture1D.MostDetailedMip; 4096 view.first_mip = desc->Texture1D.MostDetailedMip;
3984 view.mip_count = desc->Texture1D.MipLevels; 4097 view.mip_count = desc->Texture1D.MipLevels;
4098 view.layer_count = 1;
3985 view.min_lod = desc->Texture1D.ResourceMinLODClamp; 4099 view.min_lod = desc->Texture1D.ResourceMinLODClamp;
3986 break; 4100 break;
3987 case D3D12_SRV_DIMENSION_TEXTURE3D: 4101 case D3D12_SRV_DIMENSION_TEXTURE3D:
@@ -4038,6 +4152,95 @@ public:
4038 write_image_descriptor(*r, view, destination, false); 4152 write_image_descriptor(*r, view, destination, false);
4039 } 4153 }
4040 4154
4155 // An unordered-access view of a buffer is a V# in the slot (docs section 3.4): the shader loads those four dwords
4156 // through its descriptor table and reaches the bytes by the console VA in them. A structured view (format
4157 // UNKNOWN and a stride) is `stride` and a record count, a raw one (R32_TYPELESS with the RAW flag) is a byte count,
4158 // a typed one (any other format) is the format's GFX10_FORMAT code with the element size as the stride and an
4159 // element count: the V# a buffer_load_format / buffer_store_format / buffer_atomic reads (OOB_SELECT 1, so the
4160 // index is checked against NUM_RECORDS, docs/buffer_bounds.md). A slot left as zeros is a null descriptor.
4161 // A UAV counter (docs section 3.4, "UAV counters") is a second, raw V# of 4 bytes in the slot's upper 16 bytes: the
4162 // counter resource's address plus CounterOffsetInBytes. Append and consume are atomics a shader does on it.
4163 void write_buffer_uav(ID3D12Resource* resource, ID3D12Resource* counter, const D3D12_UNORDERED_ACCESS_VIEW_DESC* desc,
4164 D3D12_CPU_DESCRIPTOR_HANDLE destination) {
4165 namespace g = leonida::gfx10;
4166 const D3D12_RESOURCE_DESC& rd = Resource::from<Resource>(resource)->desc();
4167 if (!(rd.Flags & D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS)) {
4168 log_once("unordered-access view of a buffer created without ALLOW_UNORDERED_ACCESS; flags", int(rd.Flags));
4169 return;
4170 }
4171 if (!desc || desc->ViewDimension != D3D12_UAV_DIMENSION_BUFFER) {
4172 log_once("unordered-access view of a buffer needs a buffer view description; dimension",
4173 desc ? int(desc->ViewDimension) : -1);
4174 return;
4175 }
4176 const D3D12_BUFFER_UAV& view = desc->Buffer;
4177 const bool structured = desc->Format == DXGI_FORMAT_UNKNOWN;
4178 const bool raw = desc->Format == DXGI_FORMAT_R32_TYPELESS && (view.Flags & D3D12_BUFFER_UAV_FLAG_RAW);
4179 const bool typed = !structured && !raw;
4180 std::uint32_t format_code = 0, element_bytes = 0;
4181 g::Swizzle channels = g::identity_swizzle;
4182 if (typed) {
4183 // D3D12: a typed view has no RAW flag; its format is one of the typed-UAV formats the layer can name.
4184 const Format mapped = vulkan_format(desc->Format, false);
4185 const auto* layout = mapped.format != VK_FORMAT_UNDEFINED && !mapped.typeless && !mapped.rgb96 &&
4186 !(view.Flags & D3D12_BUFFER_UAV_FLAG_RAW)
4187 ? leonida::uav_clear::layout(mapped.format)
4188 : nullptr;
4189 format_code = layout ? g::format_from_vulkan(mapped.format) : 0;
4190 if (!format_code || format_code >= 128) { // the V#'s FORMAT is 7 bits
4191 log_once("typed buffer unordered-access view format not supported; format", int(desc->Format));
4192 return;
4193 }
4194 element_bytes = layout->bytes;
4195 channels = g::format_swizzle(mapped.format);
4196 }
4197 const UINT64 unit = structured ? view.StructureByteStride : typed ? element_bytes : 4;
4198 if (!unit || unit > 0x3fff || view.FirstElement > rd.Width / unit ||
4199 (UINT64(view.FirstElement) + view.NumElements) > rd.Width / unit ||
4200 UINT64(view.NumElements) * (structured || typed ? 1 : 4) > ~0u) {
4201 log_once("unordered-access view of a buffer outside the resource or with a bad stride; elements",
4202 int(view.NumElements));
4203 return;
4204 }
4205 // D3D12: a counter belongs to a structured view and sits in a buffer that allows unordered access, 4096-byte
4206 // aligned with room for its 4 bytes; with no counter resource the offset is 0.
4207 if (counter || view.CounterOffsetInBytes) {
4208 const Resource* c = counter ? Resource::from<Resource>(counter) : nullptr;
4209 const bool valid = c && !c->image() && structured &&
4210 (c->desc().Flags & D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS) &&
4211 !(view.CounterOffsetInBytes % D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT) &&
4212 UINT64(view.CounterOffsetInBytes) + 4 <= c->desc().Width;
4213 if (!valid) {
4214 log_once("unordered-access view counter refused (a structured view, a buffer that allows unordered "
4215 "access, a 4096-aligned offset inside it); offset",
4216 int(view.CounterOffsetInBytes));
4217 return;
4218 }
4219 }
4220 const UINT64 va = resource->GetGPUVirtualAddress();
4221 const UINT64 counter_va = counter ? counter->GetGPUVirtualAddress() : 0;
4222 if (!va || (counter && !counter_va)) return;
4223 g::Buffer buffer{};
4224 buffer.address = va + view.FirstElement * unit;
4225 buffer.stride = structured || typed ? std::uint32_t(unit) : 0;
4226 buffer.num_records = std::uint32_t(structured || typed ? view.NumElements : UINT64(view.NumElements) * 4);
4227 buffer.format = format_code;
4228 buffer.swizzle = channels;
4229 buffer.oob_select = typed ? g::OobSelect::structured
4230 : structured ? g::OobSelect::structured_with_offset : g::OobSelect::raw;
4231 const g::BufferWords words = g::encode(buffer);
4232 std::memcpy(reinterpret_cast<void*>(destination.ptr), words.data(), sizeof(words));
4233 if (counter) {
4234 g::Buffer counter_buffer{};
4235 counter_buffer.address = counter_va + view.CounterOffsetInBytes;
4236 counter_buffer.num_records = 4;
4237 counter_buffer.oob_select = g::OobSelect::raw;
4238 const g::BufferWords counter_words = g::encode(counter_buffer);
4239 std::memcpy(reinterpret_cast<char*>(destination.ptr) + sizeof(words), counter_words.data(),
4240 sizeof(counter_words));
4241 }
4242 }
4243
4041 // An unordered-access view of a texture is a T# too, of one mip; set 0 also holds it as a storage image. 4244 // An unordered-access view of a texture is a T# too, of one mip; set 0 also holds it as a storage image.
4042 void STDMETHODCALLTYPE CreateUnorderedAccessView(ID3D12Resource* resource, ID3D12Resource* counter, 4245 void STDMETHODCALLTYPE CreateUnorderedAccessView(ID3D12Resource* resource, ID3D12Resource* counter,
4043 const D3D12_UNORDERED_ACCESS_VIEW_DESC* desc, 4246 const D3D12_UNORDERED_ACCESS_VIEW_DESC* desc,
@@ -4050,7 +4253,11 @@ public:
4050 if (resource) stub("ID3D12Device::CreateUnorderedAccessView(resource from another device)"); 4253 if (resource) stub("ID3D12Device::CreateUnorderedAccessView(resource from another device)");
4051 return; 4254 return;
4052 } 4255 }
4053 if (!r->image() || counter) return stub("ID3D12Device::CreateUnorderedAccessView(buffer)"); 4256 if (!r->image()) return write_buffer_uav(resource, counter, desc, destination);
4257 if (counter) {
4258 log_once("unordered-access view of a texture with a counter resource; dimension", int(r->desc().Dimension));
4259 return;
4260 }
4054 if (!(r->desc().Flags & D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS)) { 4261 if (!(r->desc().Flags & D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS)) {
4055 log_once("unordered-access view of a texture created without ALLOW_UNORDERED_ACCESS; flags", 4262 log_once("unordered-access view of a texture created without ALLOW_UNORDERED_ACCESS; flags",
4056 int(r->desc().Flags)); 4263 int(r->desc().Flags));
@@ -4086,6 +4293,7 @@ public:
4086 return; 4293 return;
4087 } 4294 }
4088 write_image_descriptor(*r, view, destination, true); 4295 write_image_descriptor(*r, view, destination, true);
4296 state_.context->note_storage_image(r->id());
4089 } 4297 }
4090 4298
4091 // A sampler is an S# in the first 16 bytes of the slot; the shader finds the sampler by those four dwords. 4299 // A sampler is an S# in the first 16 bytes of the slot; the shader finds the sampler by those four dwords.
@@ -4319,7 +4527,11 @@ public:
4319 // 64 KiB-aligned offset is simply that offset into the arena, and its console VA is the heap's place plus it. 4527 // 64 KiB-aligned offset is simply that offset into the arena, and its console VA is the heap's place plus it.
4320 HRESULT STDMETHODCALLTYPE CreateHeap(const D3D12_HEAP_DESC* desc, REFIID riid, void** out) override { 4528 HRESULT STDMETHODCALLTYPE CreateHeap(const D3D12_HEAP_DESC* desc, REFIID riid, void** out) override {
4321 if (out) *out = nullptr; 4529 if (out) *out = nullptr;
4322 if (!desc || !desc->SizeInBytes) return E_INVALIDARG; 4530 if (!desc) return E_INVALIDARG;
4531 if (const char* why = heap_desc_refusal(*desc)) {
4532 log_once((std::string("CreateHeap refused (") + why + "), heap type").c_str(), int(desc->Properties.Type));
4533 return E_INVALIDARG;
4534 }
4323 if (!state_.arena.mapped) { 4535 if (!state_.arena.mapped) {
4324 log_once("heaps need the GPU address arena (bufferDeviceAddress); heap size in KiB:", 4536 log_once("heaps need the GPU address arena (bufferDeviceAddress); heap size in KiB:",
4325 int(desc->SizeInBytes / 1024)); 4537 int(desc->SizeInBytes / 1024));
@@ -4339,6 +4551,18 @@ public:
4339 return hand_out(heap, riid, out); 4551 return hand_out(heap, riid, out);
4340 } 4552 }
4341 4553
4554 // Device4: CreateHeap with a protected session, which is refused as CreateCommittedResource1 refuses one. The host
4555 // gives the same answers as CreateHeap for the D3D-238 descriptions.
4556 HRESULT STDMETHODCALLTYPE CreateHeap1(const D3D12_HEAP_DESC* desc, ID3D12ProtectedResourceSession* session,
4557 REFIID riid, void** out) override {
4558 if (out) *out = nullptr;
4559 if (session) {
4560 log_once("protected resource session refused (not supported) by CreateHeap1", 1);
4561 return E_INVALIDARG;
4562 }
4563 return CreateHeap(desc, riid, out);
4564 }
4565
4342 HRESULT STDMETHODCALLTYPE CreatePlacedResource(ID3D12Heap* heap_interface, UINT64 heap_offset, 4566 HRESULT STDMETHODCALLTYPE CreatePlacedResource(ID3D12Heap* heap_interface, UINT64 heap_offset,
4343 const D3D12_RESOURCE_DESC* desc, D3D12_RESOURCE_STATES, 4567 const D3D12_RESOURCE_DESC* desc, D3D12_RESOURCE_STATES,
4344 const D3D12_CLEAR_VALUE*, REFIID riid, void** out) override { 4568 const D3D12_CLEAR_VALUE*, REFIID riid, void** out) override {
@@ -4393,18 +4617,22 @@ public:
4393 const bool tiled = is_tiled_layout(desc->Layout); 4617 const bool tiled = is_tiled_layout(desc->Layout);
4394 const bool msaa = desc->SampleDesc.Count > 1; 4618 const bool msaa = desc->SampleDesc.Count > 1;
4395 if (desc->Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) { 4619 if (desc->Dimension == D3D12_RESOURCE_DIMENSION_BUFFER) {
4620 if (heap->flags() & D3D12_HEAP_FLAG_DENY_BUFFERS) return E_INVALIDARG;
4396 if (desc->Layout != D3D12_TEXTURE_LAYOUT_ROW_MAJOR) return E_INVALIDARG; 4621 if (desc->Layout != D3D12_TEXTURE_LAYOUT_ROW_MAJOR) return E_INVALIDARG;
4397 if (desc->Width > heap->bytes() || heap_offset > heap->bytes() - desc->Width) return E_INVALIDARG; 4622 if (desc->Width > heap->bytes() || heap_offset > heap->bytes() - desc->Width) return E_INVALIDARG;
4398 } else { 4623 } else {
4399 if (heap->properties().Type == D3D12_HEAP_TYPE_UPLOAD || 4624 if (heap->properties().Type == D3D12_HEAP_TYPE_UPLOAD ||
4400 heap->properties().Type == D3D12_HEAP_TYPE_READBACK) 4625 heap->properties().Type == D3D12_HEAP_TYPE_READBACK)
4401 return E_INVALIDARG; 4626 return E_INVALIDARG;
4627 const bool rt_ds = (desc->Flags & (D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET |
4628 D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL)) != 0;
4629 if (rt_ds && (heap->flags() & D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES)) return E_INVALIDARG;
4630 if (!rt_ds && (heap->flags() & D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES)) return E_INVALIDARG;
4402 if (tiled || msaa) { 4631 if (tiled || msaa) {
4403 if (tiled && desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D && 4632 if (tiled && desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D &&
4404 desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE3D) 4633 desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE3D)
4405 return E_INVALIDARG; 4634 return E_INVALIDARG;
4406 if (msaa && desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D) return E_INVALIDARG; 4635 if (msaa && desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE2D) return E_INVALIDARG;
4407 if (msaa && (heap->flags() & D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES)) return E_INVALIDARG;
4408 const D3D12_RESOURCE_ALLOCATION_INFO alloc = allocation(*desc); 4636 const D3D12_RESOURCE_ALLOCATION_INFO alloc = allocation(*desc);
4409 if (alloc.SizeInBytes == UINT64_MAX || heap->alignment() < alloc.Alignment || 4637 if (alloc.SizeInBytes == UINT64_MAX || heap->alignment() < alloc.Alignment ||
4410 heap_offset % alloc.Alignment || alloc.SizeInBytes > heap->bytes() || 4638 heap_offset % alloc.Alignment || alloc.SizeInBytes > heap->bytes() ||
@@ -5823,7 +6051,8 @@ HRESULT create_dxgi_factory(ID3D12Device* device, REFIID riid, void** out) {
5823 i.queue_family, riid, out); 6051 i.queue_family, riid, out);
5824} 6052}
5825 6053
5826// Creates its own Vulkan 1.3 instance and device. LEONIDA_VK_VALIDATION=1 adds VK_LAYER_KHRONOS_validation. 6054// Creates its own Vulkan instance and a Vulkan 1.3 device, or a 1.2 device with VK_KHR_dynamic_rendering and
6055// VK_KHR_synchronization2 (vulkan13_features.h). LEONIDA_VK_VALIDATION=1 adds VK_LAYER_KHRONOS_validation.
5827HRESULT create_vulkan_device_standalone(REFIID riid, void** out) { 6056HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
5828 if (!out) return E_POINTER; 6057 if (!out) return E_POINTER;
5829 *out = nullptr; 6058 *out = nullptr;
@@ -5936,22 +6165,21 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
5936 bool chosen_bc = false; 6165 bool chosen_bc = false;
5937 VkPhysicalDeviceFeatures chosen_features{}; 6166 VkPhysicalDeviceFeatures chosen_features{};
5938 VkPhysicalDeviceVulkan12Features chosen12{}; 6167 VkPhysicalDeviceVulkan12Features chosen12{};
5939 VkPhysicalDeviceVulkan13Features chosen13{};
5940 bool chosen_draw_params = false; 6168 bool chosen_draw_params = false;
6169 leonida::Vulkan13Features v13, candidate13;
5941 for (VkPhysicalDevice candidate : physicals) { 6170 for (VkPhysicalDevice candidate : physicals) {
5942 VkPhysicalDeviceProperties props{}; 6171 VkPhysicalDeviceProperties props{};
5943 vkGetPhysicalDeviceProperties(candidate, &props); 6172 vkGetPhysicalDeviceProperties(candidate, &props);
5944 if (props.apiVersion < VK_API_VERSION_1_3 || !leonida::vulkan_device_wanted(props.deviceName)) continue; 6173 if (!leonida::vulkan_device_wanted(props.deviceName)) continue;
5945 VkPhysicalDeviceVulkan13Features f13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES}; 6174 candidate13.query(candidate, props.apiVersion, vkGetPhysicalDeviceFeatures2, vkEnumerateDeviceExtensionProperties);
5946 VkPhysicalDeviceVulkan11Features f11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES, &f13}; 6175 if (!candidate13.usable()) continue;
6176 VkPhysicalDeviceVulkan11Features f11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES};
5947 VkPhysicalDeviceVulkan12Features f12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &f11}; 6177 VkPhysicalDeviceVulkan12Features f12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &f11};
5948 VkPhysicalDeviceFeatures2 features{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &f12}; 6178 VkPhysicalDeviceFeatures2 features{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &f12};
5949 vkGetPhysicalDeviceFeatures2(candidate, &features); 6179 vkGetPhysicalDeviceFeatures2(candidate, &features);
5950 const bool bc = features.features.textureCompressionBC; 6180 const bool bc = features.features.textureCompressionBC;
5951 const bool draw_params = f11.shaderDrawParameters; 6181 const bool draw_params = f11.shaderDrawParameters;
5952 if (!f13.dynamicRendering || !f13.synchronization2 || !f12.timelineSemaphore || 6182 if (!f12.timelineSemaphore || !f12.separateDepthStencilLayouts || !f12.bufferDeviceAddress) continue;
5953 !f12.separateDepthStencilLayouts || !f12.bufferDeviceAddress)
5954 continue;
5955 std::uint32_t family_count = 0; 6183 std::uint32_t family_count = 0;
5956 vkGetPhysicalDeviceQueueFamilyProperties(candidate, &family_count, nullptr); 6184 vkGetPhysicalDeviceQueueFamilyProperties(candidate, &family_count, nullptr);
5957 std::vector<VkQueueFamilyProperties> families(family_count); 6185 std::vector<VkQueueFamilyProperties> families(family_count);
@@ -5965,18 +6193,22 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
5965 chosen_bc = bc; 6193 chosen_bc = bc;
5966 chosen_features = features.features; 6194 chosen_features = features.features;
5967 chosen12 = f12; 6195 chosen12 = f12;
5968 chosen13 = f13;
5969 chosen_draw_params = draw_params; 6196 chosen_draw_params = draw_params;
6197 v13.choose(candidate13);
5970 } 6198 }
5971 break; 6199 break;
5972 } 6200 }
5973 } 6201 }
5974 if (!info.physical) 6202 if (!info.physical)
5975 return fail(leonida::vulkan_device_filter().empty() 6203 return fail(leonida::vulkan_device_filter().empty()
5976 ? "no Vulkan 1.3 GPU with dynamicRendering, synchronization2, timelineSemaphore and " 6204 ? "no Vulkan 1.3 GPU (or 1.2 with VK_KHR_dynamic_rendering and VK_KHR_synchronization2) with "
5977 "separateDepthStencilLayouts" 6205 "dynamicRendering, synchronization2, timelineSemaphore and separateDepthStencilLayouts"
5978 : "no GPU named by LEONIDA_VK_DEVICE has Vulkan 1.3 with dynamicRendering, synchronization2, " 6206 : "no GPU named by LEONIDA_VK_DEVICE has Vulkan 1.3 (or 1.2 with VK_KHR_dynamic_rendering and "
5979 "timelineSemaphore and separateDepthStencilLayouts"); 6207 "VK_KHR_synchronization2) with dynamicRendering, synchronization2, timelineSemaphore and "
6208 "separateDepthStencilLayouts");
6209 if (!v13.core)
6210 std::fprintf(stderr, "[rt] d3d12: Vulkan 1.2 device: dynamicRendering and synchronization2 through their KHR "
6211 "extensions\n");
5980 6212
5981 // VK_EXT_conditional_rendering for SetPredication, VK_KHR_swapchain for DXGI presentation, and optional 6213 // VK_EXT_conditional_rendering for SetPredication, VK_KHR_swapchain for DXGI presentation, and optional
5982 // VK_KHR_acceleration_structure + VK_KHR_ray_query for hardware BVH builds (BLAS + TLAS). 6214 // VK_KHR_acceleration_structure + VK_KHR_ray_query for hardware BVH builds (BLAS + TLAS).
@@ -6046,17 +6278,13 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6046 ext_chain = &enable_conditional; 6278 ext_chain = &enable_conditional;
6047 } 6279 }
6048 6280
6049 VkPhysicalDeviceVulkan13Features enable13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES, ext_chain};
6050 enable13.dynamicRendering = VK_TRUE;
6051 enable13.synchronization2 = VK_TRUE;
6052 // Subgroup size control: a pipeline stage asks for the size its shader was translated for (src/subgroup_size.h). 6281 // Subgroup size control: a pipeline stage asks for the size its shader was translated for (src/subgroup_size.h).
6053 enable13.subgroupSizeControl = chosen13.subgroupSizeControl; 6282 leonida::query_subgroup_size_caps(vkGetPhysicalDeviceProperties2, info.physical, v13.subgroup_size_control,
6054 enable13.computeFullSubgroups = chosen13.computeFullSubgroups; 6283 v13.compute_full_subgroups, info.subgroup);
6055 leonida::query_subgroup_size_caps(vkGetPhysicalDeviceProperties2, info.physical, chosen13.subgroupSizeControl,
6056 chosen13.computeFullSubgroups, info.subgroup);
6057 // Translated vertex shaders read BaseVertex / BaseInstance (SPIR-V DrawParameters) to give v0 / v3 the 6284 // Translated vertex shaders read BaseVertex / BaseInstance (SPIR-V DrawParameters) to give v0 / v3 the
6058 // hardware's zero-based vertex and instance ids (docs/design.md, Inputs and outputs). 6285 // hardware's zero-based vertex and instance ids (docs/design.md, Inputs and outputs).
6059 VkPhysicalDeviceVulkan11Features enable11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES, &enable13}; 6286 VkPhysicalDeviceVulkan11Features enable11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES,
6287 v13.enable(ext_chain)};
6060 enable11.shaderDrawParameters = chosen_draw_params ? VK_TRUE : VK_FALSE; 6288 enable11.shaderDrawParameters = chosen_draw_params ? VK_TRUE : VK_FALSE;
6061 if (!chosen_draw_params) std::fprintf(stderr, "[rt] d3d12: the GPU has no shaderDrawParameters\n"); 6289 if (!chosen_draw_params) std::fprintf(stderr, "[rt] d3d12: the GPU has no shaderDrawParameters\n");
6062 VkPhysicalDeviceVulkan12Features enable12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &enable11}; 6290 VkPhysicalDeviceVulkan12Features enable12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &enable11};
@@ -6155,8 +6383,8 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6155 vkGetPhysicalDeviceFeatures2(info.physical, &query); 6383 vkGetPhysicalDeviceFeatures2(info.physical, &query);
6156 info.image_view_min_lod = min_lod.minLod == VK_TRUE; 6384 info.image_view_min_lod = min_lod.minLod == VK_TRUE;
6157 if (info.image_view_min_lod) { 6385 if (info.image_view_min_lod) {
6158 min_lod.pNext = enable13.pNext; 6386 min_lod.pNext = *v13.next();
6159 enable13.pNext = &min_lod; 6387 *v13.next() = &min_lod;
6160 } 6388 }
6161 } 6389 }
6162 VkPhysicalDeviceHostImageCopyFeaturesEXT host_copy{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT}; 6390 VkPhysicalDeviceHostImageCopyFeaturesEXT host_copy{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_FEATURES_EXT};
@@ -6167,8 +6395,8 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6167 const char* host_image_copy_name = VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME; 6395 const char* host_image_copy_name = VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME;
6168 info.host_image_copy = has_host_image_copy && host_copy.hostImageCopy; 6396 info.host_image_copy = has_host_image_copy && host_copy.hostImageCopy;
6169 if (info.host_image_copy) { 6397 if (info.host_image_copy) {
6170 host_copy.pNext = enable13.pNext; // after the conditional rendering features, if any 6398 host_copy.pNext = *v13.next(); // after the conditional rendering features, if any
6171 enable13.pNext = &host_copy; 6399 *v13.next() = &host_copy;
6172 } else { 6400 } else {
6173 std::fprintf(stderr, "[rt] d3d12: no VK_EXT_host_image_copy; CPU texture copies use a staging submit\n"); 6401 std::fprintf(stderr, "[rt] d3d12: no VK_EXT_host_image_copy; CPU texture copies use a staging submit\n");
6174 } 6402 }
@@ -6185,8 +6413,8 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6185 vkGetPhysicalDeviceFeatures2(info.physical, &query); 6413 vkGetPhysicalDeviceFeatures2(info.physical, &query);
6186 info.shader_fma = shader_fma.shaderFmaFloat32 == VK_TRUE; 6414 info.shader_fma = shader_fma.shaderFmaFloat32 == VK_TRUE;
6187 if (info.shader_fma) { 6415 if (info.shader_fma) {
6188 shader_fma.pNext = enable13.pNext; 6416 shader_fma.pNext = *v13.next();
6189 enable13.pNext = &shader_fma; 6417 *v13.next() = &shader_fma;
6190 } 6418 }
6191 } 6419 }
6192#endif 6420#endif
@@ -6238,8 +6466,8 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6238 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &swapchain_m1}; 6466 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &swapchain_m1};
6239 vkGetPhysicalDeviceFeatures2(info.physical, &query); 6467 vkGetPhysicalDeviceFeatures2(info.physical, &query);
6240 if (swapchain_m1.swapchainMaintenance1 == VK_TRUE) { 6468 if (swapchain_m1.swapchainMaintenance1 == VK_TRUE) {
6241 swapchain_m1.pNext = enable13.pNext; 6469 swapchain_m1.pNext = *v13.next();
6242 enable13.pNext = &swapchain_m1; 6470 *v13.next() = &swapchain_m1;
6243 } else { 6471 } else {
6244 swapchain_m1_name = nullptr; 6472 swapchain_m1_name = nullptr;
6245 } 6473 }
@@ -6253,6 +6481,7 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6253 device_info.pQueueCreateInfos = queue_infos.data(); 6481 device_info.pQueueCreateInfos = queue_infos.data();
6254 device_info.pEnabledFeatures = &enable; 6482 device_info.pEnabledFeatures = &enable;
6255 std::vector<const char*> device_extensions; 6483 std::vector<const char*> device_extensions;
6484 v13.add_extensions(device_extensions);
6256 if (info.image_view_min_lod) device_extensions.push_back(VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME); 6485 if (info.image_view_min_lod) device_extensions.push_back(VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME);
6257 if (info.conditional_rendering) device_extensions.push_back(conditional_extension); 6486 if (info.conditional_rendering) device_extensions.push_back(conditional_extension);
6258 if (info.host_image_copy) device_extensions.push_back(host_image_copy_name); 6487 if (info.host_image_copy) device_extensions.push_back(host_image_copy_name);
@@ -6322,4 +6551,29 @@ HRESULT create_vulkan_device_standalone(REFIID riid, void** out) {
6322 return hand_out(device, riid, out); 6551 return hand_out(device, riid, out);
6323} 6552}
6324 6553
6554bool has_global_realtime_privilege() {
6555 const int override_state = g_global_realtime_privilege_override.load(std::memory_order_relaxed);
6556 if (override_state >= 0) return override_state != 0;
6557 HANDLE token = nullptr;
6558 if (!OpenThreadToken(GetCurrentThread(), TOKEN_QUERY, TRUE, &token) &&
6559 !OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token))
6560 return false;
6561 LUID luid{};
6562 BOOL enabled = FALSE;
6563 if (LookupPrivilegeValueW(nullptr, L"SeIncreaseBasePriorityPrivilege", &luid)) {
6564 PRIVILEGE_SET set{};
6565 set.PrivilegeCount = 1;
6566 set.Control = PRIVILEGE_SET_ALL_NECESSARY;
6567 set.Privilege[0].Luid = luid;
6568 set.Privilege[0].Attributes = SE_PRIVILEGE_ENABLED;
6569 if (!PrivilegeCheck(token, &set, &enabled)) enabled = FALSE;
6570 }
6571 CloseHandle(token);
6572 return enabled != FALSE;
6573}
6574
6575void set_global_realtime_privilege_override_for_test(int state) {
6576 g_global_realtime_privilege_override.store(state, std::memory_order_relaxed);
6577}
6578
6325} // namespace rt::d3d12 6579} // namespace rt::d3d12
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp
index c4a7530c4..caf09cee7 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -29,9 +29,7 @@ bool valid_flip_buffer_count(UINT count) {
29VkFormat dxgi_to_vk_format(DXGI_FORMAT fmt) { 29VkFormat dxgi_to_vk_format(DXGI_FORMAT fmt) {
30 switch (fmt) { 30 switch (fmt) {
31 case DXGI_FORMAT_B8G8R8A8_UNORM: return VK_FORMAT_B8G8R8A8_UNORM; 31 case DXGI_FORMAT_B8G8R8A8_UNORM: return VK_FORMAT_B8G8R8A8_UNORM;
32 case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB: return VK_FORMAT_B8G8R8A8_SRGB;
33 case DXGI_FORMAT_R8G8B8A8_UNORM: return VK_FORMAT_R8G8B8A8_UNORM; 32 case DXGI_FORMAT_R8G8B8A8_UNORM: return VK_FORMAT_R8G8B8A8_UNORM;
34 case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB: return VK_FORMAT_R8G8B8A8_SRGB;
35 case DXGI_FORMAT_R10G10B10A2_UNORM: return VK_FORMAT_A2B10G10R10_UNORM_PACK32; 33 case DXGI_FORMAT_R10G10B10A2_UNORM: return VK_FORMAT_A2B10G10R10_UNORM_PACK32;
36 case DXGI_FORMAT_R16G16B16A16_FLOAT: return VK_FORMAT_R16G16B16A16_SFLOAT; 34 case DXGI_FORMAT_R16G16B16A16_FLOAT: return VK_FORMAT_R16G16B16A16_SFLOAT;
37 default: return VK_FORMAT_UNDEFINED; 35 default: return VK_FORMAT_UNDEFINED;
@@ -126,17 +124,12 @@ public:
126 if (parent_) parent_->Release(); 124 if (parent_) parent_->Release();
127 } 125 }
128 126
129 bool init(HWND hwnd, const DXGI_SWAP_CHAIN_DESC1& desc) { 127 bool init(HWND hwnd, const DXGI_SWAP_CHAIN_DESC1& desc, VkFormat vk_fmt) {
130 hwnd_ = hwnd; 128 hwnd_ = hwnd;
131 flags_ = desc.Flags; 129 flags_ = desc.Flags;
132 const VkExtent2D size = size_or_client(desc.Width, desc.Height, {256u, 256u}); 130 const VkExtent2D size = size_or_client(desc.Width, desc.Height, {256u, 256u});
133 const std::uint32_t w = size.width; 131 const std::uint32_t w = size.width;
134 const std::uint32_t h = size.height; 132 const std::uint32_t h = size.height;
135 VkFormat vk_fmt = VK_FORMAT_UNDEFINED;
136 if (desc.Format != DXGI_FORMAT_UNKNOWN) {
137 vk_fmt = dxgi_to_vk_format(desc.Format);
138 if (vk_fmt == VK_FORMAT_UNDEFINED) return false;
139 }
140 const bool allow_tearing = (flags_ & DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) != 0; 133 const bool allow_tearing = (flags_ & DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) != 0;
141 if (!swapchain_.create(hwnd, w, h, vk_fmt, desc.BufferCount, allow_tearing)) return false; 134 if (!swapchain_.create(hwnd, w, h, vk_fmt, desc.BufferCount, allow_tearing)) return false;
142 if (flags_ & DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT) { 135 if (flags_ & DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT) {
@@ -241,7 +234,7 @@ public:
241 VkFormat vk_fmt = VK_FORMAT_UNDEFINED; 234 VkFormat vk_fmt = VK_FORMAT_UNDEFINED;
242 if (fmt != DXGI_FORMAT_UNKNOWN) { 235 if (fmt != DXGI_FORMAT_UNKNOWN) {
243 vk_fmt = dxgi_to_vk_format(fmt); 236 vk_fmt = dxgi_to_vk_format(fmt);
244 if (vk_fmt == VK_FORMAT_UNDEFINED) return DXGI_ERROR_UNSUPPORTED; 237 if (vk_fmt == VK_FORMAT_UNDEFINED) return E_INVALIDARG;
245 } 238 }
246 constexpr UINT creation_only_flags = DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT | 239 constexpr UINT creation_only_flags = DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT |
247 DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING; 240 DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING;
@@ -789,8 +782,10 @@ public:
789 *out = nullptr; 782 *out = nullptr;
790 if (!hwnd || !desc) return E_INVALIDARG; 783 if (!hwnd || !desc) return E_INVALIDARG;
791 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL; 784 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL;
785 const VkFormat vk_fmt = dxgi_to_vk_format(desc->Format);
786 if (vk_fmt == VK_FORMAT_UNDEFINED) return DXGI_ERROR_INVALID_CALL;
792 auto* sc = new SwapChain(this, device, context_, gipa_, instance_, physical_, gdpa_, queue_, queue_family_); 787 auto* sc = new SwapChain(this, device, context_, gipa_, instance_, physical_, gdpa_, queue_, queue_family_);
793 if (!sc->init(hwnd, *desc)) { 788 if (!sc->init(hwnd, *desc, vk_fmt)) {
794 sc->Release(); 789 sc->Release();
795 return E_FAIL; 790 return E_FAIL;
796 } 791 }
diff --git a/runtime/shims/xgameruntime.cpp b/runtime/shims/xgameruntime.cpp
index 8135589b9..46aec5af7 100644
--- a/runtime/shims/xgameruntime.cpp
+++ b/runtime/shims/xgameruntime.cpp
@@ -16,6 +16,7 @@
16#include <cstdio> 16#include <cstdio>
17#include <cstdlib> 17#include <cstdlib>
18#include <cstring> 18#include <cstring>
19#include <iterator>
19 20
20#include <XAsync.h> 21#include <XAsync.h>
21#include <XAsyncProvider.h> 22#include <XAsyncProvider.h>
@@ -35,9 +36,9 @@ std::atomic<int> g_runtime_refs{0};
35// "xgameruntime.dll" and GetProcAddress these five names (measured in the package's libHttpClient.GDK.dll and 36// "xgameruntime.dll" and GetProcAddress these five names (measured in the package's libHttpClient.GDK.dll and
36// XCurl.dll, docs/runtime_imports.md). Signatures, the options struct and the error for an unknown class follow 37// XCurl.dll, docs/runtime_imports.md). Signatures, the options struct and the error for an unknown class follow
37// xodus-gaming/xgameruntime-docs (GPL-3.0; facts only, nothing copied): InitializeApiImplEx2 is the one 38// xodus-gaming/xgameruntime-docs (GPL-3.0; facts only, nothing copied): InitializeApiImplEx2 is the one
38// XGameRuntimeInitialize[WithOptions] calls, and QueryApiImpl hands out the runtime's COM classes. The classes' 39// XGameRuntimeInitialize[WithOptions] calls, and QueryApiImpl hands out the runtime's COM classes. XThreadingImpl and
39// method layouts are not known yet, so QueryApiImpl logs each class and interface id it is asked for and refuses 40// XErrorImpl are served (their layouts are measured, below); for any other class QueryApiImpl logs the class and
40// them; the first boot with the executable then lists the interfaces to implement. 41// interface id and refuses it, so the first boot with the executable lists the interfaces to implement next.
41 42
42struct ApiImplOptions { // InitializeApiImplEx2's fourth argument 43struct ApiImplOptions { // InitializeApiImplEx2's fourth argument
43 uint32_t unknown; // documented as always 1 44 uint32_t unknown; // documented as always 1
@@ -85,8 +86,149 @@ void print_guid(char (&out)[40], const GUID* g) {
85 g->Data4[6], g->Data4[7]); 86 g->Data4[6], g->Data4[7]);
86} 87}
87 88
89// ---- The runtime classes QueryApiImpl hands out ----
90//
91// xgameruntime.lib's thunk for each function asks QueryApiImpl for the class (passing the class id as the interface
92// id too), calls one slot of the object's vtable with the function's own arguments after `this`, and Releases it.
93// The slot order is xgameruntime-docs' "Layout" list after IUnknown's three slots, and it is measured: the thunks
94// statically linked into the package's libHttpClient.GDK.dll and XCurl.dll (disassembled, their code not run)
95// call IXThreadingImpl slots 3-7 and 9-30, each with the argument shape of the documented function in that
96// position (XAsyncBegin's five arguments at slot 7, XTaskQueueCreate's two modes and a handle pointer at 12,
97// XTaskQueueTerminate's bool at 22, XThreadSetTimeSensitive's bool at 27, ...), and IXErrorImpl slot 3 with an
98// HRESULT and a pointer. docs/runtime_imports.md has the table. Each function is served by the implementation the
99// named export already uses (third_party/xtaskqueue), so the two ways in behave the same.
100
101constexpr GUID kThreadingClass = {0x073b7dcb, 0x1fcf, 0x4030, {0x94, 0xbe, 0xe3, 0xc9, 0xeb, 0x62, 0x34, 0x28}};
102constexpr GUID kErrorClass = {0x8ca467f7, 0x22e8, 0x4096, {0x84, 0x56, 0xbb, 0x8a, 0xa1, 0x3f, 0x79, 0xd8}};
103
104// A function's arguments after `this`, forwarded unchanged (x64 has one calling convention).
105// Specialised on the function's exact type, so a noexcept function matches only one form.
106template <auto F, class T = decltype(F)> struct Method;
107template <auto F, class R, class... A> struct Method<F, R (*)(A...)> {
108 static R STDMETHODCALLTYPE call(void*, A... a) { return F(a...); }
109};
110template <auto F, class R, class... A> struct Method<F, R (*)(A...) noexcept> {
111 static R STDMETHODCALLTYPE call(void*, A... a) noexcept { return F(a...); }
112};
113
114constexpr GUID kIUnknown = {0x00000000, 0x0000, 0x0000, {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}};
115
116// The runtime's objects are process-wide singletons: AddRef/Release count but never free.
117struct RuntimeObject {
118 const void* const* vtable;
119 const GUID* class_id;
120 std::atomic<long> refs{1};
121};
122
123HRESULT STDMETHODCALLTYPE object_query_interface(void* self, REFIID iid, void** out) {
124 if (!out) return E_POINTER;
125 auto* o = static_cast<RuntimeObject*>(self);
126 if (iid == kIUnknown || iid == *o->class_id) {
127 o->refs.fetch_add(1);
128 *out = self;
129 return S_OK;
130 }
131 *out = nullptr;
132 return E_NOINTERFACE;
133}
134ULONG STDMETHODCALLTYPE object_add_ref(void* self) { return static_cast<ULONG>(static_cast<RuntimeObject*>(self)->refs.fetch_add(1) + 1); }
135ULONG STDMETHODCALLTYPE object_release(void* self) {
136 long prev = static_cast<RuntimeObject*>(self)->refs.load();
137 while (prev > 1 && !static_cast<RuntimeObject*>(self)->refs.compare_exchange_weak(prev, prev - 1)) {}
138 return static_cast<ULONG>(prev > 1 ? prev - 1 : 1); // the singleton's own reference stays
139}
140
141// A private slot whose signature isn't public: logged once, answers 0 (S_OK / false / nothing to do).
142template <int Slot> uint64_t STDMETHODCALLTYPE private_slot(void*) {
143 static std::atomic<bool> s_logged{false};
144 if (!s_logged.exchange(true))
145 std::fprintf(stderr, "[rt] xgameruntime: XThreadingImpl private slot %d called; answering 0\n", Slot);
146 return 0;
147}
148
149// XThreadSetTimeSensitive / XThreadIsTimeSensitive / XThreadAssertNotTimeSensitive. The flag is per thread, as in
150// the GDK; nothing is enforced offline (a time-sensitive thread may still block).
151thread_local bool t_time_sensitive = false;
152HRESULT STDMETHODCALLTYPE thread_set_time_sensitive(void*, bool value) {
153 t_time_sensitive = value;
154 return S_OK;
155}
156void STDMETHODCALLTYPE thread_assert_not_time_sensitive(void*) {}
157bool STDMETHODCALLTYPE thread_is_time_sensitive(void*) { return t_time_sensitive; }
158
159#define XM(fn) reinterpret_cast<const void*>(&Method<&fn>::call)
160const void* const kThreadingVtable[] = {
161 reinterpret_cast<const void*>(&object_query_interface), reinterpret_cast<const void*>(&object_add_ref),
162 reinterpret_cast<const void*>(&object_release),
163 XM(XAsyncGetStatus), // 3
164 XM(XAsyncGetResultSize), // 4
165 XM(XAsyncCancel), // 5
166 XM(XAsyncRun), // 6
167 XM(XAsyncBegin), // 7
168 reinterpret_cast<const void*>(&private_slot<8>), // 8 XAsyncBeginAlloc (private, not called by the package)
169 XM(XAsyncSchedule), // 9
170 XM(XAsyncComplete), // 10
171 XM(XAsyncGetResult), // 11
172 XM(XTaskQueueCreate), // 12
173 XM(XTaskQueueCreateComposite), // 13
174 XM(XTaskQueueGetPort), // 14
175 XM(XTaskQueueDuplicateHandle), // 15
176 XM(XTaskQueueDispatch), // 16
177 XM(XTaskQueueCloseHandle), // 17
178 XM(XTaskQueueSubmitCallback), // 18
179 XM(XTaskQueueSubmitDelayedCallback), // 19
180 XM(XTaskQueueRegisterWaiter), // 20
181 XM(XTaskQueueUnregisterWaiter), // 21
182 XM(XTaskQueueTerminate), // 22
183 XM(XTaskQueueRegisterMonitor), // 23
184 XM(XTaskQueueUnregisterMonitor), // 24
185 XM(XTaskQueueGetCurrentProcessTaskQueue), // 25
186 XM(XTaskQueueSetCurrentProcessTaskQueue), // 26
187 reinterpret_cast<const void*>(&thread_set_time_sensitive), // 27
188 reinterpret_cast<const void*>(&private_slot<28>), // 28 XTaskQueueIsEmpty (private; no arguments)
189 reinterpret_cast<const void*>(&thread_assert_not_time_sensitive), // 29
190 reinterpret_cast<const void*>(&thread_is_time_sensitive), // 30
191};
192#undef XM
193static_assert(std::size(kThreadingVtable) == 31, "IUnknown + IXThreadingImpl's 28 methods");
194
195// IXErrorImpl: XErrorReport(HRESULT, const char*) at slot 3 (the docs' "_unknown_"; XCurl calls it with an HRESULT
196// and a string), XErrorSetCallback(XErrorCallback*, void*) and XErrorSetOptions(options, options). Offline, a report
197// is logged and handed to the callback the title set, if any.
198using XErrorCallback = bool(CALLBACK*)(HRESULT hr, const char* message, void* context);
199std::atomic<XErrorCallback> g_error_callback{nullptr};
200std::atomic<void*> g_error_context{nullptr};
201
202void STDMETHODCALLTYPE error_report(void*, HRESULT hr, const char* message) {
203 static std::atomic<int> s_logged{0};
204 if (s_logged.fetch_add(1) < 64)
205 std::fprintf(stderr, "[rt] xgameruntime: XErrorReport(0x%08lx, %s)\n", static_cast<unsigned long>(hr),
206 message ? message : "(null)");
207 if (XErrorCallback cb = g_error_callback.load()) cb(hr, message, g_error_context.load());
208}
209void STDMETHODCALLTYPE error_set_callback(void*, XErrorCallback callback, void* context) {
210 g_error_context = context;
211 g_error_callback = callback;
212}
213HRESULT STDMETHODCALLTYPE error_set_options(void*, uint32_t, uint32_t) { return S_OK; }
214
215const void* const kErrorVtable[] = {
216 reinterpret_cast<const void*>(&object_query_interface), reinterpret_cast<const void*>(&object_add_ref),
217 reinterpret_cast<const void*>(&object_release),
218 reinterpret_cast<const void*>(&error_report), // 3
219 reinterpret_cast<const void*>(&error_set_callback), // 4
220 reinterpret_cast<const void*>(&error_set_options), // 5
221};
222
223RuntimeObject g_threading{kThreadingVtable, &kThreadingClass};
224RuntimeObject g_error{kErrorVtable, &kErrorClass};
225
88HRESULT WINAPI QueryApiImpl(const GUID* class_id, REFIID interface_id, void** out) { 226HRESULT WINAPI QueryApiImpl(const GUID* class_id, REFIID interface_id, void** out) {
89 if (out) *out = nullptr; 227 if (out) *out = nullptr;
228 if (class_id && out) {
229 for (RuntimeObject* o : {&g_threading, &g_error})
230 if (*class_id == *o->class_id) return object_query_interface(o, interface_id, out);
231 }
90 char cls[40], iid[40]; 232 char cls[40], iid[40];
91 print_guid(cls, class_id); 233 print_guid(cls, class_id);
92 print_guid(iid, &interface_id); 234 print_guid(iid, &interface_id);
@@ -156,6 +298,115 @@ uint64_t __stdcall XSystemGetAppMemoryUsage() {
156 return 0; 298 return 0;
157} 299}
158 300
301// XVersion: 4-part version structure from GDK XGameRuntimeTypes.h (8 bytes)
302struct XVersion {
303 union {
304 struct {
305 uint16_t major;
306 uint16_t minor;
307 uint16_t build;
308 uint16_t revision;
309 };
310 uint64_t Value;
311 };
312};
313static_assert(sizeof(XVersion) == 8, "XVersion must be 8 bytes");
314
315// XSystemAnalyticsInfo: hardware and OS version telemetry (144 bytes)
316struct XSystemAnalyticsInfo {
317 XVersion osVersion;
318 XVersion hostingOsVersion;
319 char family[64];
320 char form[64];
321};
322static_assert(sizeof(XSystemAnalyticsInfo) == 144, "XSystemAnalyticsInfo must be 144 bytes");
323
324// XSystemAnalyticsInfo XSystemGetAnalyticsInfo()
325// Returned by value per Microsoft GDK specification.
326XSystemAnalyticsInfo __stdcall XSystemGetAnalyticsInfo() {
327 XSystemAnalyticsInfo info{};
328 info.osVersion = {10, 0, 22000, 0};
329 info.hostingOsVersion = {10, 0, 22000, 0};
330 std::strncpy(info.family, "Xbox", sizeof(info.family) - 1);
331
332 const uint32_t dt = XSystemGetDeviceType();
333 if (dt == static_cast<uint32_t>(XSystemDeviceType::XboxScarlettLockhart)) {
334 std::strncpy(info.form, "Xbox Series S", sizeof(info.form) - 1);
335 } else {
336 std::strncpy(info.form, "Xbox Series X", sizeof(info.form) - 1);
337 }
338
339 char form_override[64];
340 const DWORD n = GetEnvironmentVariableA("LEONIDA_ANALYTICS_FORM", form_override, sizeof(form_override));
341 if (n > 0 && n < sizeof(form_override)) {
342 std::strncpy(info.form, form_override, sizeof(info.form) - 1);
343 }
344 return info;
345}
346
347// ---- XPackage ----
348
349constexpr size_t XPACKAGE_IDENTIFIER_MAX_LENGTH = 33;
350constexpr char kDefaultPackageIdentifier[XPACKAGE_IDENTIFIER_MAX_LENGTH] = "LeonidaPackageIdentifier00000000";
351static_assert(sizeof(kDefaultPackageIdentifier) == XPACKAGE_IDENTIFIER_MAX_LENGTH,
352 "default package identifier must match XPACKAGE_IDENTIFIER_MAX_LENGTH");
353
354// HRESULT XPackageGetCurrentProcessPackageIdentifier(size_t bufferSize, char* buffer).
355// Retrieves the package identifier string for the current process.
356HRESULT __stdcall XPackageGetCurrentProcessPackageIdentifier(size_t bufferSize, char* buffer) {
357 if (!buffer || bufferSize == 0) return E_INVALIDARG;
358
359 char id[XPACKAGE_IDENTIFIER_MAX_LENGTH] = {};
360 const DWORD n = GetEnvironmentVariableA("LEONIDA_PACKAGE_ID", id, sizeof(id));
361 const char* selected = (n > 0 && n < sizeof(id)) ? id : kDefaultPackageIdentifier;
362 const size_t len = std::strlen(selected);
363
364 if (bufferSize < len + 1) return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
365 std::memcpy(buffer, selected, len + 1);
366 return S_OK;
367}
368
369// HRESULT XPackageGetMountPath(XPackageMountHandle mount, size_t pathSize, char* path).
370// Retrieves the installed filesystem path for the mounted package.
371// Reads LEONIDA_GAME_DIR when set, otherwise falls back to the current module's directory.
372HRESULT __stdcall XPackageGetMountPath(void* /*mount*/, size_t pathSize, char* path) {
373 if (!path || pathSize == 0) return E_INVALIDARG;
374
375 char buf[MAX_PATH] = {};
376 const DWORD n = GetEnvironmentVariableA("LEONIDA_GAME_DIR", buf, sizeof(buf));
377 if (n == 0 || n >= sizeof(buf)) {
378 const DWORD mod_len = GetModuleFileNameA(nullptr, buf, sizeof(buf));
379 if (mod_len > 0 && mod_len < sizeof(buf)) {
380 char* slash = std::strrchr(buf, '\\');
381 char* fslash = std::strrchr(buf, '/');
382 char* last = slash > fslash ? slash : fslash;
383 if (last) {
384 *last = '\0';
385 } else {
386 return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
387 }
388 } else {
389 return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
390 }
391 }
392
393 const size_t len = std::strlen(buf);
394 if (pathSize < len + 1) return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
395 std::memcpy(path, buf, len + 1);
396 return S_OK;
397}
398
399// bool XPackageIsPackagedProcess().
400// Returns true on Xbox Series console. LEONIDA_PACKAGED=0 overrides it.
401bool __stdcall XPackageIsPackagedProcess() {
402 char s[16];
403 const DWORD n = GetEnvironmentVariableA("LEONIDA_PACKAGED", s, sizeof(s));
404 if (n > 0 && n < sizeof(s)) {
405 if (std::atoi(s) == 0) return false;
406 }
407 return true;
408}
409
159#define XGR(name) {"xgameruntime.dll", #name, reinterpret_cast<void*>(&name)} 410#define XGR(name) {"xgameruntime.dll", #name, reinterpret_cast<void*>(&name)}
160 411
161} // namespace 412} // namespace
@@ -173,6 +424,10 @@ SHIM_TABLE(xgameruntime,
173 XGR(XSystemGetConsoleId), 424 XGR(XSystemGetConsoleId),
174 XGR(XSystemGetAppMemoryUsageLimit), 425 XGR(XSystemGetAppMemoryUsageLimit),
175 XGR(XSystemGetAppMemoryUsage), 426 XGR(XSystemGetAppMemoryUsage),
427 XGR(XSystemGetAnalyticsInfo),
428 XGR(XPackageGetCurrentProcessPackageIdentifier),
429 XGR(XPackageGetMountPath),
430 XGR(XPackageIsPackagedProcess),
176 // XTaskQueue (third_party/xtaskqueue) 431 // XTaskQueue (third_party/xtaskqueue)
177 XGR(XTaskQueueCreate), 432 XGR(XTaskQueueCreate),
178 XGR(XTaskQueueCreateComposite), 433 XGR(XTaskQueueCreateComposite),
diff --git a/runtime/src/base_reservation.h b/runtime/src/base_reservation.h
index 76fb530ce..bf4946895 100644
--- a/runtime/src/base_reservation.h
+++ b/runtime/src/base_reservation.h
@@ -98,7 +98,11 @@ inline int relaunch(const Range& r) {
98 wchar_t marker[64]; 98 wchar_t marker[64];
99 std::swprintf(marker, 64, L"%llx:%llx", static_cast<unsigned long long>(r.base), 99 std::swprintf(marker, 64, L"%llx:%llx", static_cast<unsigned long long>(r.base),
100 static_cast<unsigned long long>(r.size)); 100 static_cast<unsigned long long>(r.size));
101 SetEnvironmentVariableW(kVariable, marker); // inherited by the child; this process only waits from here on 101 // Inherited by the child: it tells it to commit inside the reservation and not to relaunch again.
102 if (!SetEnvironmentVariableW(kVariable, marker)) {
103 std::fprintf(stderr, "error: setting %ls failed (%lu)\n", kVariable, GetLastError());
104 return 1;
105 }
102 std::wstring command_line = GetCommandLineW(); 106 std::wstring command_line = GetCommandLineW();
103 STARTUPINFOW startup{sizeof startup}; 107 STARTUPINFOW startup{sizeof startup};
104 startup.dwFlags = STARTF_USESTDHANDLES; 108 startup.dwFlags = STARTF_USESTDHANDLES;
@@ -115,19 +119,27 @@ inline int relaunch(const Range& r) {
115 std::fprintf(stderr, "error: starting gta6rt again to reserve the image range failed (%lu)\n", GetLastError()); 119 std::fprintf(stderr, "error: starting gta6rt again to reserve the image range failed (%lu)\n", GetLastError());
116 return 1; 120 return 1;
117 } 121 }
118 if (!VirtualAllocEx(process.hProcess, reinterpret_cast<void*>(r.base), static_cast<SIZE_T>(r.size), MEM_RESERVE, 122 const auto abandon = [&process] { // the child never ran: end it and release its handles
119 PAGE_NOACCESS)) {
120 const DWORD error = GetLastError();
121 TerminateProcess(process.hProcess, 1); 123 TerminateProcess(process.hProcess, 1);
122 CloseHandle(process.hThread); 124 CloseHandle(process.hThread);
123 CloseHandle(process.hProcess); 125 CloseHandle(process.hProcess);
126 };
127 if (!VirtualAllocEx(process.hProcess, reinterpret_cast<void*>(r.base), static_cast<SIZE_T>(r.size), MEM_RESERVE,
128 PAGE_NOACCESS)) {
129 const DWORD error = GetLastError();
130 abandon();
124 std::fprintf(stderr, 131 std::fprintf(stderr,
125 "error: the image has no relocations and its range %#llx-%#llx is taken, also in a new " 132 "error: the image has no relocations and its range %#llx-%#llx is taken, also in a new "
126 "process (VirtualAllocEx %lu)\n", 133 "process (VirtualAllocEx %lu)\n",
127 static_cast<unsigned long long>(r.base), static_cast<unsigned long long>(r.base + r.size), error); 134 static_cast<unsigned long long>(r.base), static_cast<unsigned long long>(r.base + r.size), error);
128 return 1; 135 return 1;
129 } 136 }
130 ResumeThread(process.hThread); 137 if (ResumeThread(process.hThread) == static_cast<DWORD>(-1)) { // still suspended: the wait would never end
138 const DWORD error = GetLastError();
139 abandon();
140 std::fprintf(stderr, "error: resuming the relaunched gta6rt failed (%lu)\n", error);
141 return 1;
142 }
131 WaitForSingleObject(process.hProcess, INFINITE); 143 WaitForSingleObject(process.hProcess, INFINITE);
132 DWORD code = 1; 144 DWORD code = 1;
133 GetExitCodeProcess(process.hProcess, &code); 145 GetExitCodeProcess(process.hProcess, &code);
diff --git a/runtime/src/command_list.h b/runtime/src/command_list.h
index 9c74994e1..07520c2e3 100644
--- a/runtime/src/command_list.h
+++ b/runtime/src/command_list.h
@@ -565,6 +565,11 @@ struct ExecuteIndirect {
565 std::uint64_t argument_offset = 0; 565 std::uint64_t argument_offset = 0;
566 ResourceId count_buffer = 0; // 0: fixed max_count; non-zero: vkCmdDraw*IndirectCount 566 ResourceId count_buffer = 0; // 0: fixed max_count; non-zero: vkCmdDraw*IndirectCount
567 std::uint64_t count_offset = 0; 567 std::uint64_t count_offset = 0;
568 // kind == dispatch: the compute pipeline and root arguments in effect, as Dispatch records them, so the dispatches
569 // run that pipeline with those arguments whatever the command buffer had bound. A pipeline of 0 leaves the binding
570 // as it is.
571 std::uintptr_t pipeline = 0;
572 std::array<std::uint32_t, 32> user_data{};
568}; 573};
569 574
570// Triangle geometry descriptor for a BLAS build (ID3D12GraphicsCommandList4::BuildRaytracingAccelerationStructure). 575// Triangle geometry descriptor for a BLAS build (ID3D12GraphicsCommandList4::BuildRaytracingAccelerationStructure).
@@ -594,11 +599,29 @@ struct BuildAccelerationStructure {
594 std::vector<RtTriangleGeometry> triangles; 599 std::vector<RtTriangleGeometry> triangles;
595}; 600};
596 601
602// CopyRaytracingAccelerationStructure. `mode` is D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE; replay supports
603// CLONE (0) and COMPACT (1) for XDXR structures.
604struct CopyAccelerationStructure {
605 std::uint64_t dst_va = 0;
606 std::uint64_t src_va = 0;
607 std::uint32_t mode = 0;
608};
609
610// EmitRaytracingAccelerationStructurePostbuildInfo, and each postbuild desc of BuildRaytracingAccelerationStructure:
611// one value per source, consecutively from `dest_va`. `type` is D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE;
612// replay supports COMPACTED_SIZE (0) and CURRENT_SIZE (3), 8 bytes each.
613struct AccelerationStructurePostbuild {
614 std::uint64_t dest_va = 0;
615 std::uint32_t type = 0;
616 std::vector<std::uint64_t> sources;
617};
618
597using Command = std::variant<TransitionBarrier, UavBarrier, AliasingBarrier, GlobalBarrier, BufferBarrier, 619using Command = std::variant<TransitionBarrier, UavBarrier, AliasingBarrier, GlobalBarrier, BufferBarrier,
598 TextureBarrier, ClearRenderTarget, ClearDepthStencil, CopyBuffer, CopyTexture, 620 TextureBarrier, ClearRenderTarget, ClearDepthStencil, CopyBuffer, CopyTexture,
599 CopyResource, ResolveSubresource, Predication, ClearUnorderedAccess, DiscardResource, 621 CopyResource, ResolveSubresource, Predication, ClearUnorderedAccess, DiscardResource,
600 WriteImmediate, AtomicCopyBuffer, BeginQuery, EndQuery, ResolveQueries, DebugMarker, 622 WriteImmediate, AtomicCopyBuffer, BeginQuery, EndQuery, ResolveQueries, DebugMarker,
601 ExecuteIndirect, BuildAccelerationStructure, Dispatch, Draw>; 623 ExecuteIndirect, BuildAccelerationStructure, Dispatch, Draw, CopyAccelerationStructure,
624 AccelerationStructurePostbuild>;
602 625
603class CommandList { 626class CommandList {
604public: 627public:
@@ -809,6 +832,17 @@ public:
809 if (!build.dst_va || !build.scratch_va) return false; 832 if (!build.dst_va || !build.scratch_va) return false;
810 return append(std::move(build)); 833 return append(std::move(build));
811 } 834 }
835 // D3D12: acceleration structures are 256-byte aligned, postbuild destinations 8-byte aligned.
836 bool copy_acceleration_structure(CopyAccelerationStructure copy) {
837 if (!copy.dst_va || !copy.src_va || copy.dst_va % 256 || copy.src_va % 256) return false;
838 return append(copy);
839 }
840 bool acceleration_structure_postbuild(AccelerationStructurePostbuild info) {
841 if (!info.dest_va || info.dest_va % 8 || info.sources.empty()) return false;
842 for (const auto va : info.sources)
843 if (!va || va % 256) return false;
844 return append(std::move(info));
845 }
812 bool close() { 846 bool close() {
813 if (closed_) return false; 847 if (closed_) return false;
814 closed_ = true; 848 closed_ = true;
diff --git a/runtime/src/descriptor_table.h b/runtime/src/descriptor_table.h
index 59f96fd4f..2b5b111f7 100644
--- a/runtime/src/descriptor_table.h
+++ b/runtime/src/descriptor_table.h
@@ -129,7 +129,10 @@ public:
129 } 129 }
130 130
131 // Erases a key from the table. Returns true if the key was found and erased, false otherwise. 131 // Erases a key from the table. Returns true if the key was found and erased, false otherwise.
132 // Backward-shifts downstream entries in the probe cluster so probe chains remain intact and compact. 132 // Only the key's own slot changes (it becomes empty): no other entry moves. Every lookup, here and in the
133 // shaders (rdna2spirv.py desc_probe), compares all kDescriptorProbes slots and never stops at an empty one, so
134 // a hole breaks no probe chain and inserts reuse it. Keeping the other entries in place is what lets the GPU
135 // copy of the table take an erase while shaders still probe it (BindlessSet::flush_needs_idle).
133 bool erase(const std::uint32_t key[8]) { 136 bool erase(const std::uint32_t key[8]) {
134 std::lock_guard lock(mutex_); 137 std::lock_guard lock(mutex_);
135 return erase_locked(key); 138 return erase_locked(key);
@@ -321,24 +324,9 @@ private:
321 } 324 }
322 if (!found) return false; 325 if (!found) return false;
323 326
324 // Backward-shift entries in the probe cluster to maintain probe chains 327 // No backward shift: see erase().
325 std::uint32_t i = found_slot; 328 entries_[found_slot] = DescriptorEntry{};
326 std::uint32_t j = i;
327 mark(found_slot); 329 mark(found_slot);
328 while (true) {
329 j = (j + 1) & mask_;
330 if (entries_[j].pad != kSlotOccupiedMarker) break;
331 const std::uint32_t r = hash_descriptor_key(entries_[j].key);
332 const std::uint32_t dist_r_to_i = (i - r) & mask_;
333 const std::uint32_t dist_r_to_j = (j - r) & mask_;
334 if (dist_r_to_i < dist_r_to_j && dist_r_to_i < kDescriptorProbes) {
335 entries_[i] = entries_[j];
336 mark(i);
337 i = j;
338 }
339 }
340 entries_[i] = DescriptorEntry{};
341 mark(i);
342 --occupied_count_; 330 --occupied_count_;
343 return true; 331 return true;
344 } 332 }
diff --git a/runtime/src/vulkan13_features.h b/runtime/src/vulkan13_features.h
new file mode 100644
index 000000000..2057d953b
--- /dev/null
+++ b/runtime/src/vulkan13_features.h
@@ -0,0 +1,127 @@
1#pragma once
2
3// dynamicRendering and synchronization2, the two Vulkan 1.3 features the D3D12 layer needs, on a Vulkan 1.3 device
4// or on a Vulkan 1.2 device through VK_KHR_dynamic_rendering and VK_KHR_synchronization2. CrossOver's MoltenVK on
5// macOS is such a 1.2 device (1.2.10: Vulkan 1.2 with both extensions); the extension structs, functions and
6// behaviour are the core ones under another name, so the rest of the layer does not see the difference.
7//
8// leonida::Vulkan13Features v13;
9// v13.query(physical, props.apiVersion, get_features2, enumerate_extensions); // per candidate
10// if (!v13.usable()) continue;
11// enable12.pNext = v13.enable(chain); // chain: what came after VkPhysicalDeviceVulkan13Features
12// ... v13.next() is where later feature structs go (it used to be enable13.pNext)
13// v13.add_extensions(device_extensions);
14// fn = leonida::device_proc_or_khr(get_device_proc, device, "vkCmdPipelineBarrier2");
15
16#include <vulkan/vulkan.h>
17
18#include <cstdint>
19#include <cstring>
20#include <string>
21#include <vector>
22
23namespace leonida {
24
25class Vulkan13Features {
26public:
27 Vulkan13Features() = default;
28 Vulkan13Features(const Vulkan13Features&) = delete; // enable() links pointers into this object
29 Vulkan13Features& operator=(const Vulkan13Features&) = delete;
30
31 bool core = false; // a Vulkan 1.3 device: the features are core
32 bool dynamic_rendering = false; // supported, as a core feature or through VK_KHR_dynamic_rendering
33 bool synchronization2 = false; // supported, as a core feature or through VK_KHR_synchronization2
34 // Optional 1.3 core features, enabled where supported; on a 1.2 device they stay off (no required subgroup size).
35 bool subgroup_size_control = false;
36 bool compute_full_subgroups = false;
37
38 bool usable() const { return dynamic_rendering && synchronization2; }
39
40 // Fills the flags above for one physical device. A device older than 1.2 never qualifies.
41 void query(VkPhysicalDevice physical, std::uint32_t api_version, PFN_vkGetPhysicalDeviceFeatures2 features2,
42 PFN_vkEnumerateDeviceExtensionProperties enumerate_extensions) {
43 core = api_version >= VK_API_VERSION_1_3;
44 dynamic_rendering = synchronization2 = subgroup_size_control = compute_full_subgroups = false;
45 if (!features2) return;
46 if (core) {
47 VkPhysicalDeviceVulkan13Features f13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES};
48 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &f13};
49 features2(physical, &query);
50 dynamic_rendering = f13.dynamicRendering == VK_TRUE;
51 synchronization2 = f13.synchronization2 == VK_TRUE;
52 subgroup_size_control = f13.subgroupSizeControl == VK_TRUE;
53 compute_full_subgroups = f13.computeFullSubgroups == VK_TRUE;
54 return;
55 }
56 if (api_version < VK_API_VERSION_1_2 || !enumerate_extensions) return;
57 std::uint32_t count = 0;
58 enumerate_extensions(physical, nullptr, &count, nullptr);
59 std::vector<VkExtensionProperties> extensions(count);
60 enumerate_extensions(physical, nullptr, &count, extensions.data());
61 bool has_dynamic_rendering = false, has_synchronization2 = false;
62 for (const auto& e : extensions) {
63 has_dynamic_rendering |= std::strcmp(e.extensionName, VK_KHR_DYNAMIC_RENDERING_EXTENSION_NAME) == 0;
64 has_synchronization2 |= std::strcmp(e.extensionName, VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME) == 0;
65 }
66 if (!has_dynamic_rendering || !has_synchronization2) return;
67 VkPhysicalDeviceSynchronization2FeaturesKHR sync2{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR};
68 VkPhysicalDeviceDynamicRenderingFeaturesKHR rendering{
69 VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR, &sync2};
70 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &rendering};
71 features2(physical, &query);
72 dynamic_rendering = rendering.dynamicRendering == VK_TRUE;
73 synchronization2 = sync2.synchronization2 == VK_TRUE;
74 }
75
76 // Copies the flags of the device query() chose (a later query() for another candidate overwrites them).
77 void choose(const Vulkan13Features& from) {
78 core = from.core;
79 dynamic_rendering = from.dynamic_rendering;
80 synchronization2 = from.synchronization2;
81 subgroup_size_control = from.subgroup_size_control;
82 compute_full_subgroups = from.compute_full_subgroups;
83 }
84
85 // The structs that enable both features, ahead of `chain`; returns their head for VkPhysicalDeviceVulkan12Features'
86 // pNext. Call once, after query() or choose().
87 void* enable(void* chain) {
88 if (core) {
89 enable13_.pNext = chain;
90 enable13_.dynamicRendering = VK_TRUE;
91 enable13_.synchronization2 = VK_TRUE;
92 enable13_.subgroupSizeControl = subgroup_size_control ? VK_TRUE : VK_FALSE;
93 enable13_.computeFullSubgroups = compute_full_subgroups ? VK_TRUE : VK_FALSE;
94 return &enable13_;
95 }
96 sync2_.pNext = chain;
97 sync2_.synchronization2 = VK_TRUE;
98 rendering_.pNext = &sync2_;
99 rendering_.dynamicRendering = VK_TRUE;
100 return &rendering_;
101 }
102
103 // Where a feature struct goes to follow these: insert with `s.pNext = *next(); *next() = &s;`.
104 void** next() { return core ? &enable13_.pNext : &sync2_.pNext; }
105
106 // The device extensions a 1.2 device needs for both features; none on 1.3.
107 void add_extensions(std::vector<const char*>& extensions) const {
108 if (core) return;
109 extensions.push_back(VK_KHR_DYNAMIC_RENDERING_EXTENSION_NAME);
110 extensions.push_back(VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME);
111 }
112
113private:
114 VkPhysicalDeviceVulkan13Features enable13_{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES};
115 VkPhysicalDeviceDynamicRenderingFeaturesKHR rendering_{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR};
116 VkPhysicalDeviceSynchronization2FeaturesKHR sync2_{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR};
117};
118
119// A device function by its core name, or by its KHR name where the core one is null: a Vulkan 1.2 device returns
120// null for Vulkan 1.3 core names (vkCmdPipelineBarrier2, vkCmdBeginRendering, ...) and serves the enabled
121// extension's vkCmdPipelineBarrier2KHR and the like, which have the same signatures.
122inline PFN_vkVoidFunction device_proc_or_khr(PFN_vkGetDeviceProcAddr get, VkDevice device, const char* name) {
123 if (const PFN_vkVoidFunction function = get(device, name)) return function;
124 return get(device, (std::string(name) + "KHR").c_str());
125}
126
127} // namespace leonida
diff --git a/runtime/src/vulkan_backend.h b/runtime/src/vulkan_backend.h
index c04d09ea6..ea7063d92 100644
--- a/runtime/src/vulkan_backend.h
+++ b/runtime/src/vulkan_backend.h
@@ -3,7 +3,8 @@
3// The execution side of the D3D12 layer, without COM: the per-device Vulkan context (resources, layout tracker, 3// The execution side of the D3D12 layer, without COM: the per-device Vulkan context (resources, layout tracker,
4// image views), queues that execute command lists, and timeline-semaphore fences. The COM objects in 4// image views), queues that execute command lists, and timeline-semaphore fences. The COM objects in
5// shims/d3d12_com.cpp are thin wrappers over these. Needs Vulkan 1.2 timeline semaphores; rectangle clears and 5// shims/d3d12_com.cpp are thin wrappers over these. Needs Vulkan 1.2 timeline semaphores; rectangle clears and
6// enhanced barriers need the Vulkan 1.3 functions (dynamicRendering, synchronization2) to be enabled. 6// enhanced barriers need the Vulkan 1.3 functions (dynamicRendering, synchronization2) to be enabled, as core
7// features or through their KHR extensions on a 1.2 device (vulkan13_features.h).
7 8
8#ifndef VK_NO_PROTOTYPES 9#ifndef VK_NO_PROTOTYPES
9#define VK_NO_PROTOTYPES 10#define VK_NO_PROTOTYPES
@@ -12,6 +13,7 @@
12#include "occlusion_sum_spirv.h" 13#include "occlusion_sum_spirv.h"
13#include "retire_tickets.h" 14#include "retire_tickets.h"
14#include "statistics_sum_spirv.h" 15#include "statistics_sum_spirv.h"
16#include "vulkan13_features.h"
15#include "vulkan_depth24.h" 17#include "vulkan_depth24.h"
16#include "vulkan_scratch.h" 18#include "vulkan_scratch.h"
17#include "vulkan_replay.h" 19#include "vulkan_replay.h"
@@ -28,6 +30,7 @@
28#include <map> 30#include <map>
29#include <memory> 31#include <memory>
30#include <mutex> 32#include <mutex>
33#include <unordered_set>
31#include <shared_mutex> 34#include <shared_mutex>
32#include <span> 35#include <span>
33#include <thread> 36#include <thread>
@@ -85,7 +88,7 @@ struct VulkanDeviceFunctions {
85 // extension is not enabled, and the query functions are optional (a list that uses queries without them is 88 // extension is not enabled, and the query functions are optional (a list that uses queries without them is
86 // unsupported). The compute and descriptor functions are needed for normalized or summed occlusion results. 89 // unsupported). The compute and descriptor functions are needed for normalized or summed occlusion results.
87 bool load(PFN_vkGetDeviceProcAddr get, VkDevice device) { 90 bool load(PFN_vkGetDeviceProcAddr get, VkDevice device) {
88#define LEONIDA_VK_LOAD(name) name = reinterpret_cast<PFN_##name>(get(device, #name)); 91#define LEONIDA_VK_LOAD(name) name = reinterpret_cast<PFN_##name>(leonida::device_proc_or_khr(get, device, #name));
89 LEONIDA_VK_DEVICE_FUNCTIONS(LEONIDA_VK_LOAD) 92 LEONIDA_VK_DEVICE_FUNCTIONS(LEONIDA_VK_LOAD)
90#undef LEONIDA_VK_LOAD 93#undef LEONIDA_VK_LOAD
91 return vkCreateCommandPool && vkDestroyCommandPool && vkAllocateCommandBuffers && vkResetCommandBuffer && 94 return vkCreateCommandPool && vkDestroyCommandPool && vkAllocateCommandBuffers && vkResetCommandBuffer &&
@@ -745,6 +748,14 @@ public:
745 xdxr_->record_blas(cb, layout, geometries, base + b.dst_va, base + b.scratch_va, from); 748 xdxr_->record_blas(cb, layout, geometries, base + b.dst_va, base + b.scratch_va, from);
746 } 749 }
747 }; 750 };
751 replay_.xdxr_copy = [this](VkCommandBuffer cb, std::uint64_t src, std::uint64_t dst, std::uint64_t bytes) {
752 const std::uint64_t base = replay_.heap_base;
753 xdxr_->record_copy(cb, base + src, base + dst, bytes);
754 };
755 replay_.xdxr_postbuild = [this](VkCommandBuffer cb, std::uint64_t src, std::uint64_t dest) {
756 const std::uint64_t base = replay_.heap_base;
757 xdxr_->record_postbuild(cb, base + src, base + dest);
758 };
748 } else { 759 } else {
749 xdxr_.reset(); 760 xdxr_.reset();
750 } 761 }
@@ -818,6 +829,15 @@ public:
818 } 829 }
819 } 830 }
820 831
832 // An image that got a storage (unordered-access) view. A shader can write it before any command names it, so the
833 // layer would not know it was used and the first barrier or copy that does would zero-fill it (vulkan_replay.h,
834 // initialize). The next submission therefore moves each such image to GENERAL, the layout its descriptor names,
835 // zero-filled, ahead of its lists. An image already tracked beyond UNDEFINED is left as it is.
836 void note_storage_image(ResourceId id) {
837 std::lock_guard lock(storage_mutex_);
838 storage_pending_.insert(id);
839 }
840
821 void remove_resource(ResourceId id) { 841 void remove_resource(ResourceId id) {
822 VkImage img = VK_NULL_HANDLE; 842 VkImage img = VK_NULL_HANDLE;
823 { 843 {
@@ -1125,6 +1145,14 @@ private:
1125 std::unordered_map<std::uintptr_t, GraphicsPipeline> graphics_pipelines_; 1145 std::unordered_map<std::uintptr_t, GraphicsPipeline> graphics_pipelines_;
1126 std::unordered_map<std::uint64_t, VkAccelerationStructureKHR> acceleration_structures_; 1146 std::unordered_map<std::uint64_t, VkAccelerationStructureKHR> acceleration_structures_;
1127 LayoutTracker tracker_; 1147 LayoutTracker tracker_;
1148 std::mutex storage_mutex_; // a leaf lock: guards storage_pending_ only
1149 std::unordered_set<ResourceId> storage_pending_;
1150 // The last submission that initialized storage images (its queue's progress semaphore and ticket) and a counter
1151 // that says which one: every other queue's next submission waits for it, so no queue uses such an image before
1152 // the zero-fill that put it in GENERAL has run.
1153 VkSemaphore storage_init_semaphore_ = VK_NULL_HANDLE;
1154 std::uint64_t storage_init_value_ = 0;
1155 std::uint64_t storage_init_version_ = 0;
1128 std::map<std::tuple<VkImage, VkImageAspectFlags, std::uint32_t, std::uint32_t, std::uint32_t, VkFormat>, VkImageView> views_; 1156 std::map<std::tuple<VkImage, VkImageAspectFlags, std::uint32_t, std::uint32_t, std::uint32_t, VkFormat>, VkImageView> views_;
1129 std::function<bool(VkCommandBuffer)> bindless_prepare_; 1157 std::function<bool(VkCommandBuffer)> bindless_prepare_;
1130 std::unique_ptr<Depth24Converter> depth24_; 1158 std::unique_ptr<Depth24Converter> depth24_;
@@ -1451,6 +1479,33 @@ public:
1451 return ReplayResult::unsupported; 1479 return ReplayResult::unsupported;
1452 } 1480 }
1453 auto next_tracker = context_.tracker_; 1481 auto next_tracker = context_.tracker_;
1482 // Images with a UAV view are moved to GENERAL (zeroed) by the first submission that can use a shader on them:
1483 // not a copy queue (its family may not clear images), and one whose lists dispatch or draw.
1484 bool runs_shaders = false;
1485 for (const CommandList* list : lists)
1486 for (const auto& command : list->commands())
1487 runs_shaders |= std::holds_alternative<Dispatch>(command) || std::holds_alternative<Draw>(command) ||
1488 std::holds_alternative<ExecuteIndirect>(command);
1489 std::vector<ResourceId> storage_images;
1490 {
1491 std::lock_guard lock(context_.storage_mutex_);
1492 if (context_.storage_init_semaphore_ && context_.storage_init_semaphore_ != progress_ &&
1493 context_.storage_init_version_ != storage_init_seen_) {
1494 waits_.push_back(context_.storage_init_semaphore_);
1495 wait_values_.push_back(context_.storage_init_value_);
1496 storage_init_seen_ = context_.storage_init_version_;
1497 }
1498 if (kind_ != QueueKind::copy && runs_shaders)
1499 storage_images.assign(context_.storage_pending_.begin(), context_.storage_pending_.end());
1500 if (!storage_images.empty()) context_.storage_pending_.clear();
1501 }
1502 for (const ResourceId id : storage_images) {
1503 const ResourceBinding* image = context_.resolve(id);
1504 if (!image || !image->image) continue;
1505 const VkImageSubresourceRange range{image->aspects, 0, image->mip_levels, 0, image->array_layers};
1506 auto pieces = detail::current(&next_tracker, id, range, VK_IMAGE_LAYOUT_UNDEFINED);
1507 detail::initialize(replay, command_buffer, *image, id, pieces, VK_IMAGE_LAYOUT_GENERAL, &next_tracker);
1508 }
1454 bool wrote_readback = false; 1509 bool wrote_readback = false;
1455 VkPipelineStageFlags2 readback_stages = 0; 1510 VkPipelineStageFlags2 readback_stages = 0;
1456 std::uint32_t open_labels = 0; // events may span the lists of one ExecuteCommandLists 1511 std::uint32_t open_labels = 0; // events may span the lists of one ExecuteCommandLists
@@ -1493,6 +1548,17 @@ public:
1493 const bool ended = context_.vk.vkEndCommandBuffer(command_buffer) == VK_SUCCESS; 1548 const bool ended = context_.vk.vkEndCommandBuffer(command_buffer) == VK_SUCCESS;
1494 resource_lock.unlock(); // release resource_mutex_ before vkQueueSubmit while keeping tracker_lock held 1549 resource_lock.unlock(); // release resource_mutex_ before vkQueueSubmit while keeping tracker_lock held
1495 const bool submitted = ended && submit(command_buffer, VK_NULL_HANDLE, 0); 1550 const bool submitted = ended && submit(command_buffer, VK_NULL_HANDLE, 0);
1551 if (!submitted && !storage_images.empty()) { // not initialized after all: try again with the next submission
1552 std::lock_guard lock(context_.storage_mutex_);
1553 context_.storage_pending_.insert(storage_images.begin(), storage_images.end());
1554 }
1555 if (submitted && !storage_images.empty()) {
1556 std::lock_guard lock(context_.storage_mutex_);
1557 context_.storage_init_semaphore_ = progress_;
1558 context_.storage_init_value_ = submitted_;
1559 ++context_.storage_init_version_;
1560 storage_init_seen_ = context_.storage_init_version_;
1561 }
1496 if (submitted) { 1562 if (submitted) {
1497 context_.tracker_ = std::move(next_tracker); 1563 context_.tracker_ = std::move(next_tracker);
1498 slot->predicate = std::move(batch); 1564 slot->predicate = std::move(batch);
@@ -1644,6 +1710,7 @@ private:
1644 std::uint64_t submitted_ = 0; 1710 std::uint64_t submitted_ = 0;
1645 std::vector<CommandSlot> buffers_; 1711 std::vector<CommandSlot> buffers_;
1646 std::unique_ptr<OcclusionResolve> occlusion_resolve_; 1712 std::unique_ptr<OcclusionResolve> occlusion_resolve_;
1713 std::uint64_t storage_init_seen_ = 0; // the storage_init_version_ this queue has waited for
1647 std::vector<VkSemaphore> waits_; 1714 std::vector<VkSemaphore> waits_;
1648 std::vector<std::uint64_t> wait_values_; 1715 std::vector<std::uint64_t> wait_values_;
1649 std::uint32_t open_labels_ = 0; // queue labels begun and not ended 1716 std::uint32_t open_labels_ = 0; // queue labels begun and not ended
diff --git a/runtime/src/vulkan_bindless.h b/runtime/src/vulkan_bindless.h
index 9111f764c..5f484bf16 100644
--- a/runtime/src/vulkan_bindless.h
+++ b/runtime/src/vulkan_bindless.h
@@ -435,19 +435,21 @@ public:
435 result == DescriptorTable::InsertResult::added_with_relocation; 435 result == DescriptorTable::InsertResult::added_with_relocation;
436 return true; 436 return true;
437 } 437 }
438 // Erasing compacts the key's probe cluster, so other keys' entries may change slots. 438 // Erasing empties only the key's own slot; no other entry moves (DescriptorTable::erase), so it needs no idle.
439 // The caller erases a key once no submitted work uses it (its texture is gone), like D3D12 requires.
439 bool erase_key(const DescriptorKey& key) { 440 bool erase_key(const DescriptorKey& key) {
440 if (!table_.erase(key)) return false; 441 if (!table_.erase(key)) return false;
441 table_dirty_ = existing_entries_changed_ = true; 442 table_dirty_ = true;
442 return true; 443 return true;
443 } 444 }
444 const DescriptorTable& table() const { return table_; } 445 const DescriptorTable& table() const { return table_; }
445 446
446 // True when the next flush() will change entries a running shader may be probing, or replace the table's 447 // True when the next flush() will change entries a running shader may be probing (a live key's index replaced
447 // buffer: the caller then flushes only once no command buffer that uses the set is still executing. Without 448 // or a live key moved by a relocating insert), or replace the table's buffer: the caller then flushes only once
448 // it the flush only adds entries, and the copy of an entry is not atomic: a shader probing a different key 449 // no command buffer that uses the set is still executing. Without it the flush only adds entries or empties the
449 // could in principle see a torn entry that matches it, which is accepted as vanishingly unlikely because the 450 // slots of erased keys, and the copy of an entry is not atomic: a shader probing a different key could in
450 // added key is new (there is no live key equal to it). 451 // principle see a torn entry that matches it, which is accepted as vanishingly unlikely because the added or
452 // erased key is not live (no running work uses it).
451 bool flush_needs_idle() const { 453 bool flush_needs_idle() const {
452 return table_dirty_ && (existing_entries_changed_ || force_full_upload_ || 454 return table_dirty_ && (existing_entries_changed_ || force_full_upload_ ||
453 table_.size_bytes() > table_buffers_.table.size); 455 table_.size_bytes() > table_buffers_.table.size);
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h
index 6fe9e07af..fe68f298f 100644
--- a/runtime/src/vulkan_replay.h
+++ b/runtime/src/vulkan_replay.h
@@ -789,6 +789,10 @@ struct ReplayFunctions {
789 // cannot read while the list is prepared, `xdxr_record` records the build. 789 // cannot read while the list is prepared, `xdxr_record` records the build.
790 std::function<bool(const BuildAccelerationStructure&)> xdxr_check; 790 std::function<bool(const BuildAccelerationStructure&)> xdxr_check;
791 std::function<void(VkCommandBuffer, const BuildAccelerationStructure&)> xdxr_record; 791 std::function<void(VkCommandBuffer, const BuildAccelerationStructure&)> xdxr_record;
792 // CopyRaytracingAccelerationStructure (CLONE, COMPACT) of XDXR structures: `bytes` is the room the destination
793 // resource has; and one postbuild value (COMPACTED_SIZE, CURRENT_SIZE) of the structure at `src` to `dest`.
794 std::function<void(VkCommandBuffer, std::uint64_t src_va, std::uint64_t dst_va, std::uint64_t bytes)> xdxr_copy;
795 std::function<void(VkCommandBuffer, std::uint64_t src_va, std::uint64_t dest_va)> xdxr_postbuild;
792 std::function<VkAccelerationStructureKHR(std::uint64_t)> resolve_acceleration_structure; 796 std::function<VkAccelerationStructureKHR(std::uint64_t)> resolve_acceleration_structure;
793 // Preparation only allocates a slot; capture records the GPU snapshot at the SetPredication command. 797 // Preparation only allocates a slot; capture records the GPU snapshot at the SetPredication command.
794 std::function<bool(VkBuffer, VkDeviceSize, PredicateCapture&)> prepare_predicate; 798 std::function<bool(VkBuffer, VkDeviceSize, PredicateCapture&)> prepare_predicate;
@@ -904,6 +908,7 @@ struct Prepared {
904 VkExtent2D area{}; 908 VkExtent2D area{};
905 std::uint32_t layers = 1; // the fewest layers any bound attachment view has 909 std::uint32_t layers = 1; // the fewest layers any bound attachment view has
906 VkAccelerationStructureKHR accel_dst = VK_NULL_HANDLE; 910 VkAccelerationStructureKHR accel_dst = VK_NULL_HANDLE;
911 std::uint64_t xdxr_bytes = 0; // CopyAccelerationStructure: the most bytes the copy may write
907 VkAccelerationStructureKHR accel_src = VK_NULL_HANDLE; 912 VkAccelerationStructureKHR accel_src = VK_NULL_HANDLE;
908}; 913};
909 914
@@ -973,7 +978,7 @@ inline VkFormat color_view_format(const ResourceBinding& resource, const TargetV
973 } 978 }
974 if (!resource.rgba8_typeless && !resource.castable_view_formats) 979 if (!resource.rgba8_typeless && !resource.castable_view_formats)
975 return format == resource.format ? format : VK_FORMAT_UNDEFINED; 980 return format == resource.format ? format : VK_FORMAT_UNDEFINED;
976 if (resource.format != VK_FORMAT_R8G8B8A8_UNORM || resource.volume || resource.depth != 1 || resource.samples != 1) 981 if (resource.format != VK_FORMAT_R8G8B8A8_UNORM || resource.volume || resource.depth != 1)
977 return VK_FORMAT_UNDEFINED; 982 return VK_FORMAT_UNDEFINED;
978 return format; 983 return format;
979} 984}
@@ -2429,6 +2434,13 @@ ReplayResult prepare(const CommandList& list, Resolve&& resolve, const ReplayFun
2429 (ind->kind == IndirectKind::dispatch && !vk.dispatch_indirect)) 2434 (ind->kind == IndirectKind::dispatch && !vk.dispatch_indirect))
2430 return ReplayResult::unsupported; 2435 return ReplayResult::unsupported;
2431 } 2436 }
2437 if (ind->kind == IndirectKind::dispatch && ind->pipeline) { // the pipeline and root arguments it was recorded
2438 if (!vk.bind_pipeline || !vk.push_constants || !vk.compute_pipeline) return ReplayResult::unsupported;
2439 const ComputePipeline* pipeline = vk.compute_pipeline(ind->pipeline);
2440 if (!pipeline || !pipeline->pipeline) return ReplayResult::unresolved_resource;
2441 if (pipeline->bindless_set && !vk.bind_descriptor_sets) return ReplayResult::unsupported;
2442 p.pipeline = *pipeline;
2443 }
2432 } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { 2444 } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) {
2433 if (vk.xdxr_check) { 2445 if (vk.xdxr_check) {
2434 if (!vk.xdxr_check(*build)) return ReplayResult::unsupported; 2446 if (!vk.xdxr_check(*build)) return ReplayResult::unsupported;
@@ -2442,6 +2454,29 @@ ReplayResult prepare(const CommandList& list, Resolve&& resolve, const ReplayFun
2442 if (!p.accel_src) return ReplayResult::unresolved_resource; 2454 if (!p.accel_src) return ReplayResult::unresolved_resource;
2443 } 2455 }
2444 } 2456 }
2457 } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) {
2458 // XDXR only (a KHR copy needs VkAccelerationStructureKHR handles and vkCmdCopyAccelerationStructureKHR);
2459 // the destination's room bounds the copy, as the size is only known to the GPU.
2460 if (!vk.xdxr_copy || !vk.buffer_at || copy->mode > 1) return ReplayResult::unsupported;
2461 std::uint64_t room = ~std::uint64_t(0);
2462 VkBuffer buffer = VK_NULL_HANDLE;
2463 VkDeviceSize offset = 0;
2464 if (!vk.buffer_at(copy->dst_va, room, buffer, offset)) return ReplayResult::unresolved_resource;
2465 std::uint64_t source = ~std::uint64_t(0);
2466 if (!vk.buffer_at(copy->src_va, source, buffer, offset)) return ReplayResult::unresolved_resource;
2467 p.xdxr_bytes = std::min(room, source);
2468 } else if (const auto* info = std::get_if<AccelerationStructurePostbuild>(&command)) {
2469 // The KHR path never wrote postbuild values; it keeps skipping them rather than failing the list.
2470 if (!vk.xdxr_postbuild) {
2471 p.skip = true;
2472 } else {
2473 if (!vk.buffer_at || (info->type != 0 && info->type != 3)) return ReplayResult::unsupported;
2474 std::uint64_t room = 8 * info->sources.size();
2475 VkBuffer buffer = VK_NULL_HANDLE;
2476 VkDeviceSize offset = 0;
2477 if (!vk.buffer_at(info->dest_va, room, buffer, offset)) return ReplayResult::unresolved_resource;
2478 if (room < 8 * info->sources.size()) return ReplayResult::invalid_copy;
2479 }
2445 } else if (const auto* dispatch = std::get_if<Dispatch>(&command)) { 2480 } else if (const auto* dispatch = std::get_if<Dispatch>(&command)) {
2446 if (!vk.bind_pipeline || !vk.push_constants || !vk.dispatch || !vk.compute_pipeline) 2481 if (!vk.bind_pipeline || !vk.push_constants || !vk.dispatch || !vk.compute_pipeline)
2447 return ReplayResult::unsupported; 2482 return ReplayResult::unsupported;
@@ -3154,6 +3189,18 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c
3154 } else if (ind->kind == IndirectKind::draw_indexed) { 3189 } else if (ind->kind == IndirectKind::draw_indexed) {
3155 vk.draw_indexed_indirect(command_buffer, p.binding.buffer, arguments, ind->max_count, ind->stride); 3190 vk.draw_indexed_indirect(command_buffer, p.binding.buffer, arguments, ind->max_count, ind->stride);
3156 } else if (ind->kind == IndirectKind::dispatch) { 3191 } else if (ind->kind == IndirectKind::dispatch) {
3192 if (ind->pipeline) {
3193 ShaderUserData data{};
3194 std::copy(ind->user_data.begin(), ind->user_data.end(), data.s);
3195 data.heap_base = vk.heap_base;
3196 data.code_base = p.pipeline.code_base;
3197 vk.bind_pipeline(command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, p.pipeline.pipeline);
3198 if (p.pipeline.bindless_set)
3199 vk.bind_descriptor_sets(command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, p.pipeline.layout, 0,
3200 1, &p.pipeline.bindless_set, 0, nullptr);
3201 vk.push_constants(command_buffer, p.pipeline.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof(data),
3202 &data);
3203 }
3157 for (std::uint32_t k = 0; k < ind->max_count; ++k) { 3204 for (std::uint32_t k = 0; k < ind->max_count; ++k) {
3158 vk.dispatch_indirect(command_buffer, p.binding.buffer, 3205 vk.dispatch_indirect(command_buffer, p.binding.buffer,
3159 arguments + VkDeviceSize(k) * ind->stride); 3206 arguments + VkDeviceSize(k) * ind->stride);
@@ -3163,6 +3210,11 @@ inline void emit(const PreparedList& prepared, VkCommandBuffer command_buffer, c
3163 } else if (const auto* xdxr_build = std::get_if<BuildAccelerationStructure>(&command); 3210 } else if (const auto* xdxr_build = std::get_if<BuildAccelerationStructure>(&command);
3164 xdxr_build && vk.xdxr_record) { 3211 xdxr_build && vk.xdxr_record) {
3165 vk.xdxr_record(command_buffer, *xdxr_build); 3212 vk.xdxr_record(command_buffer, *xdxr_build);
3213 } else if (const auto* copy = std::get_if<CopyAccelerationStructure>(&command)) {
3214 vk.xdxr_copy(command_buffer, copy->src_va, copy->dst_va, p.xdxr_bytes);
3215 } else if (const auto* info = std::get_if<AccelerationStructurePostbuild>(&command); info && !p.skip) {
3216 for (std::size_t i = 0; i < info->sources.size(); ++i)
3217 vk.xdxr_postbuild(command_buffer, info->sources[i], info->dest_va + 8 * i);
3166 } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) { 3218 } else if (const auto* build = std::get_if<BuildAccelerationStructure>(&command)) {
3167 // The build's addresses are console VAs into the GPU address arena (heap_base is its device address). 3219 // The build's addresses are console VAs into the GPU address arena (heap_base is its device address).
3168 // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page. 3220 // A null VA (no index buffer, no transform) stays null: heap_base + 0 would name the arena's zero page.
diff --git a/runtime/src/xdxr_build.comp b/runtime/src/xdxr_build.comp
index d5bbe8253..908006897 100644
--- a/runtime/src/xdxr_build.comp
+++ b/runtime/src/xdxr_build.comp
@@ -23,6 +23,12 @@
23// slots, MODE_LEVEL with arg2 = 1 recomputes each node's boxes from the children it already points to (the tree's 23// slots, MODE_LEVEL with arg2 = 1 recomputes each node's boxes from the children it already points to (the tree's
24// grouping is kept, so there is no Morton pass and no sort), and MODE_HEADER rewrites the bounds. 24// grouping is kept, so there is no Morton pass and no sort), and MODE_HEADER rewrites the bounds.
25// MODE_COPY one thread per word: count words from src0 to dst 25// MODE_COPY one thread per word: count words from src0 to dst
26// MODE_COPY_AS CopyRaytracingAccelerationStructure CLONE / COMPACT: the source structure's size comes from its
27// header (totalSizeIn64BNodes), so the copy can follow a build in the same list; at most count
28// words. The records are position-independent (node pointers count from the structure's start, and
29// a TLAS names its BLASes by address), so the bytes are the copy.
30// MODE_POSTBUILD one thread: the 8-byte COMPACTED_SIZE or CURRENT_SIZE of the structure at src0, at dst. A build
31// is already exactly its layout's size, so both are totalSizeIn64BNodes * 64.
26// The tree groups four consecutive children per node in Morton order, level by level, so its shape depends only on 32// The tree groups four consecutive children per node in Morton order, level by level, so its shape depends only on
27// the element count and the layout (xdxr_build.h XdxrLayout) is known when the command is recorded. 33// the element count and the layout (xdxr_build.h XdxrLayout) is known when the command is recorded.
28// 34//
@@ -40,7 +46,7 @@ layout(buffer_reference, std430, buffer_reference_align = 4) buffer Words { uint
40 46
41const uint MODE_INIT = 0u, MODE_TRIANGLES = 1u, MODE_INSTANCES = 2u, MODE_MORTON = 3u, MODE_LEVEL = 5u, 47const uint MODE_INIT = 0u, MODE_TRIANGLES = 1u, MODE_INSTANCES = 2u, MODE_MORTON = 3u, MODE_LEVEL = 5u,
42 MODE_HEADER = 6u, MODE_RADIX_COUNT = 7u, MODE_RADIX_SCAN = 8u, MODE_RADIX_SCATTER = 9u, 48 MODE_HEADER = 6u, MODE_RADIX_COUNT = 7u, MODE_RADIX_SCAN = 8u, MODE_RADIX_SCATTER = 9u,
43 MODE_SMALL_SORT = 10u, MODE_COPY = 11u; 49 MODE_SMALL_SORT = 10u, MODE_COPY = 11u, MODE_COPY_AS = 12u, MODE_POSTBUILD = 13u;
44const uint SMALL_SORT_MAX = 1024u; // xdxr_build.h XdxrLayout::small_sort_max 50const uint SMALL_SORT_MAX = 1024u; // xdxr_build.h XdxrLayout::small_sort_max
45const uint RADIX_BITS = 4u, RADIX_BINS = 16u, RADIX_PASSES = 8u; 51const uint RADIX_BITS = 4u, RADIX_BINS = 16u, RADIX_PASSES = 8u;
46const uint RADIX_TILE = 256u; // elements per workgroup in count and scatter: 4 chunks of 64 52const uint RADIX_TILE = 256u; // elements per workgroup in count and scatter: 4 chunks of 64
@@ -455,6 +461,14 @@ void main() {
455 return; 461 return;
456 } 462 }
457 if (i >= pc.count) return; 463 if (i >= pc.count) return;
464 if (pc.mode == MODE_POSTBUILD) {
465 if (i == 0u) { store(pc.dst, 0u, load(pc.src0, 4u) * 64u); store(pc.dst, 4u, 0u); }
466 return;
467 }
468 if (pc.mode == MODE_COPY_AS) {
469 if (4u * i < load(pc.src0, 4u) * 64u) store(pc.dst, 4u * i, load(pc.src0, 4u * i));
470 return;
471 }
458 if (pc.mode == MODE_COPY) { 472 if (pc.mode == MODE_COPY) {
459 store(pc.dst, 4u * i, load(pc.src0, 4u * i)); 473 store(pc.dst, 4u * i, load(pc.src0, 4u * i));
460 } else if (pc.mode == MODE_INIT) { 474 } else if (pc.mode == MODE_INIT) {
diff --git a/runtime/src/xdxr_build.h b/runtime/src/xdxr_build.h
index 64fe97a83..6930078a4 100644
--- a/runtime/src/xdxr_build.h
+++ b/runtime/src/xdxr_build.h
@@ -15,6 +15,7 @@
15// device addresses are wider (llvmpipe's are host pointers), the layer must present a narrower window and a bias. 15// device addresses are wider (llvmpipe's are host pointers), the layer must present a narrower window and a bias.
16#pragma once 16#pragma once
17 17
18#include <algorithm>
18#include <cstddef> 19#include <cstddef>
19#include <cstdint> 20#include <cstdint>
20#include <vector> 21#include <vector>
@@ -161,10 +162,44 @@ public:
161 return true; 162 return true;
162 } 163 }
163 164
165 // CopyRaytracingAccelerationStructure CLONE or COMPACT: the structure at `src` to `dst`, as many bytes as its
166 // header says, at most `max_bytes` (the room the destination has). The structures are position-independent.
167 bool record_copy(VkCommandBuffer cb, std::uint64_t src, std::uint64_t dst, std::uint64_t max_bytes) {
168 if (!loaded_ || !src || !dst || max_bytes < XdxrLayout::header_size) return false;
169 if (src == dst) return true;
170 vk_.vkCmdBindPipeline(cb, VK_PIPELINE_BIND_POINT_COMPUTE, pipeline_);
171 Push p{};
172 p.mode = mode_copy_as;
173 p.src0 = split(src);
174 p.dst = split(dst);
175 p.count = std::uint32_t(std::min<std::uint64_t>(max_bytes, 0xffffffffull) / 4);
176 dispatch(cb, p, p.count, false);
177 return true;
178 }
179
180 // One postbuild value (COMPACTED_SIZE or CURRENT_SIZE, the same for these builds): 8 bytes at `dst` for the
181 // structure at `src`. A barrier first: a build or copy recorded just before writes the header it reads.
182 bool record_postbuild(VkCommandBuffer cb, std::uint64_t src, std::uint64_t dst) {
183 if (!loaded_ || !src || !dst) return false;
184 VkMemoryBarrier b{VK_STRUCTURE_TYPE_MEMORY_BARRIER, nullptr, VK_ACCESS_SHADER_WRITE_BIT,
185 VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT};
186 vk_.vkCmdPipelineBarrier(cb, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0, 1,
187 &b, 0, nullptr, 0, nullptr);
188 vk_.vkCmdBindPipeline(cb, VK_PIPELINE_BIND_POINT_COMPUTE, pipeline_);
189 Push p{};
190 p.mode = mode_postbuild;
191 p.src0 = split(src);
192 p.dst = split(dst);
193 p.count = 1;
194 dispatch(cb, p, 1, false);
195 return true;
196 }
197
164private: 198private:
165 enum : std::uint32_t { 199 enum : std::uint32_t {
166 mode_init = 0, mode_triangles = 1, mode_instances = 2, mode_morton = 3, mode_level = 5, mode_header = 6, 200 mode_init = 0, mode_triangles = 1, mode_instances = 2, mode_morton = 3, mode_level = 5, mode_header = 6,
167 mode_radix_count = 7, mode_radix_scan = 8, mode_radix_scatter = 9, mode_small_sort = 10, mode_copy = 11 201 mode_radix_count = 7, mode_radix_scan = 8, mode_radix_scatter = 9, mode_small_sort = 10, mode_copy = 11,
202 mode_copy_as = 12, mode_postbuild = 13
168 }; 203 };
169 struct Addr { std::uint32_t lo = 0, hi = 0; }; 204 struct Addr { std::uint32_t lo = 0, hi = 0; };
170 struct Push { // xdxr_build.comp `Push`, std430 push-constant layout 205 struct Push { // xdxr_build.comp `Push`, std430 push-constant layout
diff --git a/runtime/src/xdxr_build.inc b/runtime/src/xdxr_build.inc
index 71ce37fbb..bbc1bb888 100644
--- a/runtime/src/xdxr_build.inc
+++ b/runtime/src/xdxr_build.inc
@@ -1,4 +1,4 @@
1{0x07230203,0x00010500,0x000d000b,0x000031a8, 1{0x07230203,0x00010500,0x000d000b,0x000032b4,
20x00000000,0x00020011,0x00000001,0x00020011, 20x00000000,0x00020011,0x00000001,0x00020011,
30x000014e3,0x0006000b,0x00000001,0x4c534c47, 30x000014e3,0x0006000b,0x00000001,0x4c534c47,
40x6474732e,0x3035342e,0x00000000,0x0003000e, 40x6474732e,0x3035342e,0x00000000,0x0003000e,
@@ -39,7 +39,7 @@
390x00000023,0x00000064,0x00040047,0x00000b0e, 390x00000023,0x00000064,0x00040047,0x00000b0e,
400x0000000b,0x0000001c,0x00040047,0x00000b17, 400x0000000b,0x0000001c,0x00040047,0x00000b17,
410x0000000b,0x0000001a,0x00040047,0x00000b18, 410x0000000b,0x0000001a,0x00040047,0x00000b18,
420x0000000b,0x0000001b,0x00040047,0x00000bb4, 420x0000000b,0x0000001b,0x00040047,0x00000bf1,
430x0000000b,0x00000019,0x00020013,0x00000002, 430x0000000b,0x00000019,0x00020013,0x00000002,
440x00030021,0x00000003,0x00000002,0x00040015, 440x00030021,0x00000003,0x00000002,0x00040015,
450x00000006,0x00000020,0x00000000,0x00040017, 450x00000006,0x00000020,0x00000000,0x00040017,
@@ -175,25 +175,26 @@
1750x00000001,0x0004003b,0x00000b0d,0x00000b18, 1750x00000001,0x0004003b,0x00000b0d,0x00000b18,
1760x00000001,0x0004002b,0x00000006,0x00000b3a, 1760x00000001,0x0004002b,0x00000006,0x00000b3a,
1770x0000000a,0x0004002b,0x00000006,0x00000b57, 1770x0000000a,0x0004002b,0x00000006,0x00000b57,
1780x0000000b,0x0006002c,0x0000065d,0x00000bb4, 1780x0000000d,0x0004002b,0x00000006,0x00000b94,
1790x0000000b,0x0006002c,0x0000065d,0x00000bf1,
1790x00000107,0x000000b0,0x000000b0,0x0006002c, 1800x00000107,0x000000b0,0x000000b0,0x0006002c,
1800x0000004b,0x00003196,0x000004fc,0x000004fc, 1810x0000004b,0x000032a2,0x000004fc,0x000004fc,
1810x000004fc,0x0004002b,0x00000027,0x00003198, 1820x000004fc,0x0004002b,0x00000027,0x000032a4,
1820x7f800000,0x0006002c,0x0000004b,0x00003199, 1830x7f800000,0x0006002c,0x0000004b,0x000032a5,
1830x00003198,0x00003198,0x00003198,0x0004002b, 1840x000032a4,0x000032a4,0x000032a4,0x0004002b,
1840x00000027,0x0000319a,0xff800000,0x0006002c, 1850x00000027,0x000032a6,0xff800000,0x0006002c,
1850x0000004b,0x0000319b,0x0000319a,0x0000319a, 1860x0000004b,0x000032a7,0x000032a6,0x000032a6,
1860x0000319a,0x0004002b,0x00000006,0x0000319c, 1870x000032a6,0x0004002b,0x00000006,0x000032a8,
1870x000000ff,0x00050036,0x00000002,0x00000004, 1880x000000ff,0x00050036,0x00000002,0x00000004,
1880x00000000,0x00000003,0x000200f8,0x00000005, 1890x00000000,0x00000003,0x000200f8,0x00000005,
1890x0004003b,0x000003da,0x00001b65,0x00000007, 1900x0004003b,0x000003da,0x00001c65,0x00000007,
1900x0004003b,0x0000054c,0x00001ba6,0x00000007, 1910x0004003b,0x0000054c,0x00001ca6,0x00000007,
1910x0004003b,0x0000004c,0x00001ba9,0x00000007, 1920x0004003b,0x0000004c,0x00001ca9,0x00000007,
1920x0004003b,0x0000004c,0x00001705,0x00000007, 1930x0004003b,0x0000004c,0x00001805,0x00000007,
1930x0004003b,0x000002f7,0x0000151a,0x00000007, 1940x0004003b,0x000002f7,0x0000161a,0x00000007,
1940x0004003b,0x000008cb,0x00000d72,0x00000007, 1950x0004003b,0x000008cb,0x00000daf,0x00000007,
1950x000300f7,0x00000bb6,0x00000000,0x000300fb, 1960x000300f7,0x00000bf3,0x00000000,0x000300fb,
1960x000000a6,0x00000bb7,0x000200f8,0x00000bb7, 1970x000000a6,0x00000bf4,0x000200f8,0x00000bf4,
1970x00050041,0x00000b0f,0x00000b10,0x00000b0e, 1980x00050041,0x00000b0f,0x00000b10,0x00000b0e,
1980x000000a6,0x0004003d,0x00000006,0x00000b11, 1990x000000a6,0x0004003d,0x00000006,0x00000b11,
1990x00000b10,0x00050041,0x000000fe,0x00000b12, 2000x00000b10,0x00050041,0x000000fe,0x00000b12,
@@ -207,210 +208,210 @@
2070x00000b1a,0x00050041,0x00000b0f,0x00000b1d, 2080x00000b1a,0x00050041,0x00000b0f,0x00000b1d,
2080x00000b18,0x000000a6,0x0004003d,0x00000006, 2090x00000b18,0x000000a6,0x0004003d,0x00000006,
2090x00000b1e,0x00000b1d,0x000500b0,0x0000002f, 2100x00000b1e,0x00000b1d,0x000500b0,0x0000002f,
2100x00000bd3,0x00000b1e,0x0000011f,0x000300f7, 2110x00000c10,0x00000b1e,0x0000011f,0x000300f7,
2110x00000bd7,0x00000000,0x000400fa,0x00000bd3, 2120x00000c14,0x00000000,0x000400fa,0x00000c10,
2120x00000bd4,0x00000bd7,0x000200f8,0x00000bd4, 2130x00000c11,0x00000c14,0x000200f8,0x00000c11,
2130x00050041,0x000006c2,0x00000bd6,0x000007a3, 2140x00050041,0x000006c2,0x00000c13,0x000007a3,
2140x00000b1e,0x0003003e,0x00000bd6,0x000000a6, 2150x00000b1e,0x0003003e,0x00000c13,0x000000a6,
2150x000200f9,0x00000bd7,0x000200f8,0x00000bd7, 2160x000200f9,0x00000c14,0x000200f8,0x00000c14,
2160x000400e0,0x00000170,0x00000170,0x000006da, 2170x000400e0,0x00000170,0x00000170,0x000006da,
2170x00050084,0x00000006,0x00000bd9,0x00000b1b, 2180x00050084,0x00000006,0x00000c16,0x00000b1b,
2180x00000101,0x00050080,0x00000006,0x00000bdb, 2190x00000101,0x00050080,0x00000006,0x00000c18,
2190x00000bd9,0x00000101,0x00050041,0x000000fe, 2200x00000c16,0x00000101,0x00050041,0x000000fe,
2200x00000bdc,0x000000fc,0x000000fd,0x0004003d, 2210x00000c19,0x000000fc,0x000000fd,0x0004003d,
2210x00000006,0x00000bdd,0x00000bdc,0x0007000c, 2220x00000006,0x00000c1a,0x00000c19,0x0007000c,
2220x00000006,0x00000bde,0x00000001,0x00000026, 2230x00000006,0x00000c1b,0x00000001,0x00000026,
2230x00000bdb,0x00000bdd,0x00050080,0x00000006, 2240x00000c18,0x00000c1a,0x00050080,0x00000006,
2240x00000be1,0x00000bd9,0x00000b1e,0x000200f9, 2250x00000c1e,0x00000c16,0x00000b1e,0x000200f9,
2250x00000be2,0x000200f8,0x00000be2,0x000700f5, 2260x00000c1f,0x000200f8,0x00000c1f,0x000700f5,
2260x00000006,0x00003177,0x00000be1,0x00000bd7, 2270x00000006,0x00003283,0x00000c1e,0x00000c14,
2270x00000bf4,0x00000bf2,0x000500b0,0x0000002f, 2280x00000c31,0x00000c2f,0x000500b0,0x0000002f,
2280x00000be6,0x00003177,0x00000bde,0x000400f6, 2290x00000c23,0x00003283,0x00000c1b,0x000400f6,
2290x00000bf5,0x00000bf2,0x00000000,0x000400fa, 2300x00000c32,0x00000c2f,0x00000000,0x000400fa,
2300x00000be6,0x00000be7,0x00000bf5,0x000200f8, 2310x00000c23,0x00000c24,0x00000c32,0x000200f8,
2310x00000be7,0x00050041,0x000000fe,0x00000c0b, 2320x00000c24,0x00050041,0x000000fe,0x00000c48,
2320x000000fc,0x00000308,0x0004003d,0x00000006, 2330x000000fc,0x00000308,0x0004003d,0x00000006,
2330x00000c0c,0x00000c0b,0x000500c7,0x00000006, 2340x00000c49,0x00000c48,0x000500c7,0x00000006,
2340x00000c0d,0x00000c0c,0x000000b0,0x000500aa, 2350x00000c4a,0x00000c49,0x000000b0,0x000500aa,
2350x0000002f,0x00000c0e,0x00000c0d,0x000000a6, 2360x0000002f,0x00000c4b,0x00000c4a,0x000000a6,
2360x000300f7,0x00000c13,0x00000000,0x000400fa, 2370x000300f7,0x00000c50,0x00000000,0x000400fa,
2370x00000c0e,0x00000c0f,0x00000c11,0x000200f8, 2380x00000c4b,0x00000c4c,0x00000c4e,0x000200f8,
2380x00000c0f,0x000200f9,0x00000c13,0x000200f8, 2390x00000c4c,0x000200f9,0x00000c50,0x000200f8,
2390x00000c11,0x00050084,0x00000006,0x00000c1b, 2400x00000c4e,0x00050084,0x00000006,0x00000c58,
2400x00000111,0x00000bdd,0x00050080,0x00000006, 2410x00000111,0x00000c1a,0x00050080,0x00000006,
2410x00000c1c,0x00000107,0x00000c1b,0x000200f9, 2420x00000c59,0x00000107,0x00000c58,0x000200f9,
2420x00000c13,0x000200f8,0x00000c13,0x000700f5, 2430x00000c50,0x000200f8,0x00000c50,0x000700f5,
2430x00000006,0x00003178,0x00000107,0x00000c0f, 2440x00000006,0x00003284,0x00000107,0x00000c4c,
2440x00000c1c,0x00000c11,0x00050084,0x00000006, 2450x00000c59,0x00000c4e,0x00050084,0x00000006,
2450x00000bea,0x0000010a,0x00003177,0x00050080, 2460x00000c27,0x0000010a,0x00003283,0x00050080,
2460x00000006,0x00000beb,0x00003178,0x00000bea, 2470x00000006,0x00000c28,0x00003284,0x00000c27,
2470x00050041,0x00000156,0x00000bec,0x000000fc, 2480x00050041,0x00000156,0x00000c29,0x000000fc,
2480x00000154,0x0004003d,0x00000007,0x00000bed, 2490x00000154,0x0004003d,0x00000007,0x00000c2a,
2490x00000bec,0x00050051,0x00000006,0x00000c33, 2500x00000c29,0x00050051,0x00000006,0x00000c70,
2500x00000bed,0x00000000,0x00050095,0x000000ab, 2510x00000c2a,0x00000000,0x00050095,0x000000ab,
2510x00000c35,0x00000c33,0x00000beb,0x00050051, 2520x00000c72,0x00000c70,0x00000c28,0x00050051,
2520x00000006,0x00000c36,0x00000c35,0x00000001, 2530x00000006,0x00000c73,0x00000c72,0x00000001,
2530x00050051,0x00000006,0x00000c37,0x00000c35, 2540x00050051,0x00000006,0x00000c74,0x00000c72,
2540x00000000,0x00050051,0x00000006,0x00000c3a, 2550x00000000,0x00050051,0x00000006,0x00000c77,
2550x00000bed,0x00000001,0x00050080,0x00000006, 2560x00000c2a,0x00000001,0x00050080,0x00000006,
2560x00000c3c,0x00000c3a,0x00000c36,0x00050050, 2570x00000c79,0x00000c77,0x00000c73,0x00050050,
2570x00000007,0x00000c3d,0x00000c37,0x00000c3c, 2580x00000007,0x00000c7a,0x00000c74,0x00000c79,
2580x0004007c,0x00000014,0x00000c2d,0x00000c3d, 2590x0004007c,0x00000014,0x00000c6a,0x00000c7a,
2590x00060041,0x000000db,0x00000c24,0x00000c2d, 2600x00060041,0x000000db,0x00000c61,0x00000c6a,
2600x000000da,0x000000da,0x0006003d,0x00000006, 2610x000000da,0x000000da,0x0006003d,0x00000006,
2610x00000c25,0x00000c24,0x00000002,0x00000004, 2620x00000c62,0x00000c61,0x00000002,0x00000004,
2620x00050084,0x00000006,0x00000c43,0x0000010a, 2630x00050084,0x00000006,0x00000c80,0x0000010a,
2630x00000c0c,0x000500c2,0x00000006,0x00000c44, 2640x00000c49,0x000500c2,0x00000006,0x00000c81,
2640x00000c25,0x00000c43,0x000500c7,0x00000006, 2650x00000c62,0x00000c80,0x000500c7,0x00000006,
2650x00000c45,0x00000c44,0x00000799,0x00050041, 2660x00000c82,0x00000c81,0x00000799,0x00050041,
2660x000006c2,0x00000bf0,0x000007a3,0x00000c45, 2670x000006c2,0x00000c2d,0x000007a3,0x00000c82,
2670x000700ea,0x00000006,0x00000bf1,0x00000bf0, 2680x000700ea,0x00000006,0x00000c2e,0x00000c2d,
2680x000000b0,0x000000a6,0x000000b0,0x000200f9, 2690x000000b0,0x000000a6,0x000000b0,0x000200f9,
2690x00000bf2,0x000200f8,0x00000bf2,0x00050080, 2700x00000c2f,0x000200f8,0x00000c2f,0x00050080,
2700x00000006,0x00000bf4,0x00003177,0x00000107, 2710x00000006,0x00000c31,0x00003283,0x00000107,
2710x000200f9,0x00000be2,0x000200f8,0x00000bf5, 2720x000200f9,0x00000c1f,0x000200f8,0x00000c32,
2720x000400e0,0x00000170,0x00000170,0x000006da, 2730x000400e0,0x00000170,0x00000170,0x000006da,
2730x000300f7,0x00000c07,0x00000000,0x000400fa, 2740x000300f7,0x00000c44,0x00000000,0x000400fa,
2740x00000bd3,0x00000bf8,0x00000c07,0x000200f8, 2750x00000c10,0x00000c35,0x00000c44,0x000200f8,
2750x00000bf8,0x00050084,0x00000006,0x00000c4a, 2760x00000c35,0x00050084,0x00000006,0x00000c87,
2760x0000011f,0x00000bdd,0x00050080,0x00000006, 2770x0000011f,0x00000c1a,0x00050080,0x00000006,
2770x00000c4b,0x00000107,0x00000c4a,0x00050080, 2780x00000c88,0x00000107,0x00000c87,0x00050080,
2780x00000006,0x00000c51,0x00000bdd,0x0000319c, 2790x00000006,0x00000c8e,0x00000c1a,0x000032a8,
2790x00050086,0x00000006,0x00000c52,0x00000c51, 2800x00050086,0x00000006,0x00000c8f,0x00000c8e,
2800x00000101,0x00050084,0x00000006,0x00000bfc, 2810x00000101,0x00050084,0x00000006,0x00000c39,
2810x00000b1e,0x00000c52,0x00050080,0x00000006, 2820x00000b1e,0x00000c8f,0x00050080,0x00000006,
2820x00000bfe,0x00000bfc,0x00000b1b,0x00050084, 2830x00000c3b,0x00000c39,0x00000b1b,0x00050084,
2830x00000006,0x00000bff,0x0000010a,0x00000bfe, 2840x00000006,0x00000c3c,0x0000010a,0x00000c3b,
2840x00050080,0x00000006,0x00000c00,0x00000c4b, 2850x00050080,0x00000006,0x00000c3d,0x00000c88,
2850x00000bff,0x00050041,0x00000156,0x00000c02, 2860x00000c3c,0x00050041,0x00000156,0x00000c3f,
2860x000000fc,0x00000154,0x0004003d,0x00000007, 2870x000000fc,0x00000154,0x0004003d,0x00000007,
2870x00000c03,0x00000c02,0x00050041,0x000006c2, 2880x00000c40,0x00000c3f,0x00050041,0x000006c2,
2880x00000c04,0x000007a3,0x00000b1e,0x0004003d, 2890x00000c41,0x000007a3,0x00000b1e,0x0004003d,
2890x00000006,0x00000c05,0x00000c04,0x00050051, 2900x00000006,0x00000c42,0x00000c41,0x00050051,
2900x00000006,0x00000c68,0x00000c03,0x00000000, 2910x00000006,0x00000ca5,0x00000c40,0x00000000,
2910x00050095,0x000000ab,0x00000c6a,0x00000c68, 2920x00050095,0x000000ab,0x00000ca7,0x00000ca5,
2920x00000c00,0x00050051,0x00000006,0x00000c6b, 2930x00000c3d,0x00050051,0x00000006,0x00000ca8,
2930x00000c6a,0x00000001,0x00050051,0x00000006, 2940x00000ca7,0x00000001,0x00050051,0x00000006,
2940x00000c6c,0x00000c6a,0x00000000,0x00050051, 2950x00000ca9,0x00000ca7,0x00000000,0x00050051,
2950x00000006,0x00000c6f,0x00000c03,0x00000001, 2960x00000006,0x00000cac,0x00000c40,0x00000001,
2960x00050080,0x00000006,0x00000c71,0x00000c6f, 2970x00050080,0x00000006,0x00000cae,0x00000cac,
2970x00000c6b,0x00050050,0x00000007,0x00000c72, 2980x00000ca8,0x00050050,0x00000007,0x00000caf,
2980x00000c6c,0x00000c71,0x0004007c,0x00000014, 2990x00000ca9,0x00000cae,0x0004007c,0x00000014,
2990x00000c62,0x00000c72,0x00060041,0x000000db, 3000x00000c9f,0x00000caf,0x00060041,0x000000db,
3000x00000c5a,0x00000c62,0x000000da,0x000000da, 3010x00000c97,0x00000c9f,0x000000da,0x000000da,
3010x0005003e,0x00000c5a,0x00000c05,0x00000002, 3020x0005003e,0x00000c97,0x00000c42,0x00000002,
3020x00000004,0x000200f9,0x00000c07,0x000200f8, 3030x00000004,0x000200f9,0x00000c44,0x000200f8,
3030x00000c07,0x000200f9,0x00000bb6,0x000200f8, 3040x00000c44,0x000200f9,0x00000bf3,0x000200f8,
3040x00000b16,0x000500aa,0x0000002f,0x00000b23, 3050x00000b16,0x000500aa,0x0000002f,0x00000b23,
3050x00000b13,0x00000111,0x000300f7,0x00000b25, 3060x00000b13,0x00000111,0x000300f7,0x00000b25,
3060x00000000,0x000400fa,0x00000b23,0x00000b24, 3070x00000000,0x000400fa,0x00000b23,0x00000b24,
3070x00000b25,0x000200f8,0x00000b24,0x00050041, 3080x00000b25,0x000200f8,0x00000b24,0x00050041,
3080x00000b0f,0x00000b27,0x00000b18,0x000000a6, 3090x00000b0f,0x00000b27,0x00000b18,0x000000a6,
3090x0004003d,0x00000006,0x00000b28,0x00000b27, 3100x0004003d,0x00000006,0x00000b28,0x00000b27,
3100x00050041,0x000000fe,0x00000ce5,0x000000fc, 3110x00050041,0x000000fe,0x00000d22,0x000000fc,
3110x000000fd,0x0004003d,0x00000006,0x00000ce6, 3120x000000fd,0x0004003d,0x00000006,0x00000d23,
3120x00000ce5,0x00050080,0x00000006,0x00000ce8, 3130x00000d22,0x00050080,0x00000006,0x00000d25,
3130x00000ce6,0x0000319c,0x00050086,0x00000006, 3140x00000d23,0x000032a8,0x00050086,0x00000006,
3140x00000ce9,0x00000ce8,0x00000101,0x00050084, 3150x00000d26,0x00000d25,0x00000101,0x00050084,
3150x00000006,0x00000c88,0x0000011f,0x00000ce9, 3160x00000006,0x00000cc5,0x0000011f,0x00000d26,
3160x00050080,0x00000006,0x00000c8a,0x00000c88, 3170x00050080,0x00000006,0x00000cc7,0x00000cc5,
3170x000007e4,0x00050086,0x00000006,0x00000c8b, 3180x000007e4,0x00050086,0x00000006,0x00000cc8,
3180x00000c8a,0x00000107,0x00050084,0x00000006, 3190x00000cc7,0x00000107,0x00050084,0x00000006,
3190x00000c8e,0x00000b28,0x00000c8b,0x0007000c, 3200x00000ccb,0x00000b28,0x00000cc8,0x0007000c,
3200x00000006,0x00000c90,0x00000001,0x00000026, 3210x00000006,0x00000ccd,0x00000001,0x00000026,
3210x00000c8e,0x00000c88,0x00050080,0x00000006, 3220x00000ccb,0x00000cc5,0x00050080,0x00000006,
3220x00000c93,0x00000c90,0x00000c8b,0x0007000c, 3230x00000cd0,0x00000ccd,0x00000cc8,0x0007000c,
3230x00000006,0x00000c95,0x00000001,0x00000026, 3240x00000006,0x00000cd2,0x00000001,0x00000026,
3240x00000c93,0x00000c88,0x000200f9,0x00000c97, 3250x00000cd0,0x00000cc5,0x000200f9,0x00000cd4,
3250x000200f8,0x00000c97,0x000700f5,0x00000006, 3260x000200f8,0x00000cd4,0x000700f5,0x00000006,
3260x00003172,0x000000a6,0x00000b24,0x00000ca5, 3270x0000327e,0x000000a6,0x00000b24,0x00000ce2,
3270x00000c9c,0x000700f5,0x00000006,0x00003171, 3280x00000cd9,0x000700f5,0x00000006,0x0000327d,
3280x00000c90,0x00000b24,0x00000ca8,0x00000c9c, 3290x00000ccd,0x00000b24,0x00000ce5,0x00000cd9,
3290x000500b0,0x0000002f,0x00000c9b,0x00003171, 3300x000500b0,0x0000002f,0x00000cd8,0x0000327d,
3300x00000c95,0x000400f6,0x00000ca9,0x00000c9c, 3310x00000cd2,0x000400f6,0x00000ce6,0x00000cd9,
3310x00000000,0x000400fa,0x00000c9b,0x00000c9c, 3320x00000000,0x000400fa,0x00000cd8,0x00000cd9,
3320x00000ca9,0x000200f8,0x00000c9c,0x00050084, 3330x00000ce6,0x000200f8,0x00000cd9,0x00050084,
3330x00000006,0x00000cee,0x0000011f,0x00000ce6, 3340x00000006,0x00000d2b,0x0000011f,0x00000d23,
3340x00050080,0x00000006,0x00000cef,0x00000107, 3350x00050080,0x00000006,0x00000d2c,0x00000107,
3350x00000cee,0x00050084,0x00000006,0x00000c9f, 3360x00000d2b,0x00050084,0x00000006,0x00000cdc,
3360x0000010a,0x00003171,0x00050080,0x00000006, 3370x0000010a,0x0000327d,0x00050080,0x00000006,
3370x00000ca0,0x00000cef,0x00000c9f,0x00050041, 3380x00000cdd,0x00000d2c,0x00000cdc,0x00050041,
3380x00000156,0x00000ca1,0x000000fc,0x00000154, 3390x00000156,0x00000cde,0x000000fc,0x00000154,
3390x0004003d,0x00000007,0x00000ca2,0x00000ca1, 3400x0004003d,0x00000007,0x00000cdf,0x00000cde,
3400x00050051,0x00000006,0x00000d06,0x00000ca2, 3410x00050051,0x00000006,0x00000d43,0x00000cdf,
3410x00000000,0x00050095,0x000000ab,0x00000d08, 3420x00000000,0x00050095,0x000000ab,0x00000d45,
3420x00000d06,0x00000ca0,0x00050051,0x00000006, 3430x00000d43,0x00000cdd,0x00050051,0x00000006,
3430x00000d09,0x00000d08,0x00000001,0x00050051, 3440x00000d46,0x00000d45,0x00000001,0x00050051,
3440x00000006,0x00000d0a,0x00000d08,0x00000000, 3450x00000006,0x00000d47,0x00000d45,0x00000000,
3450x00050051,0x00000006,0x00000d0d,0x00000ca2, 3460x00050051,0x00000006,0x00000d4a,0x00000cdf,
3460x00000001,0x00050080,0x00000006,0x00000d0f, 3470x00000001,0x00050080,0x00000006,0x00000d4c,
3470x00000d0d,0x00000d09,0x00050050,0x00000007, 3480x00000d4a,0x00000d46,0x00050050,0x00000007,
3480x00000d10,0x00000d0a,0x00000d0f,0x0004007c, 3490x00000d4d,0x00000d47,0x00000d4c,0x0004007c,
3490x00000014,0x00000d00,0x00000d10,0x00060041, 3500x00000014,0x00000d3d,0x00000d4d,0x00060041,
3500x000000db,0x00000cf7,0x00000d00,0x000000da, 3510x000000db,0x00000d34,0x00000d3d,0x000000da,
3510x000000da,0x0006003d,0x00000006,0x00000cf8, 3520x000000da,0x0006003d,0x00000006,0x00000d35,
3520x00000cf7,0x00000002,0x00000004,0x00050080, 3530x00000d34,0x00000002,0x00000004,0x00050080,
3530x00000006,0x00000ca5,0x00003172,0x00000cf8, 3540x00000006,0x00000ce2,0x0000327e,0x00000d35,
3540x00050080,0x00000006,0x00000ca8,0x00003171, 3550x00050080,0x00000006,0x00000ce5,0x0000327d,
3550x00000154,0x000200f9,0x00000c97,0x000200f8, 3560x00000154,0x000200f9,0x00000cd4,0x000200f8,
3560x00000ca9,0x00050041,0x000006c2,0x00000cac, 3570x00000ce6,0x00050041,0x000006c2,0x00000ce9,
3570x0000080d,0x00000b28,0x0003003e,0x00000cac, 3580x0000080d,0x00000b28,0x0003003e,0x00000ce9,
3580x00003172,0x000400e0,0x00000170,0x00000170, 3590x0000327e,0x000400e0,0x00000170,0x00000170,
3590x000006da,0x000500aa,0x0000002f,0x00000cae, 3600x000006da,0x000500aa,0x0000002f,0x00000ceb,
3600x00000b28,0x000000a6,0x000300f7,0x00000cc2, 3610x00000b28,0x000000a6,0x000300f7,0x00000cff,
3610x00000000,0x000400fa,0x00000cae,0x00000caf, 3620x00000000,0x000400fa,0x00000ceb,0x00000cec,
3620x00000cc2,0x000200f8,0x00000caf,0x000200f9, 3630x00000cff,0x000200f8,0x00000cec,0x000200f9,
3630x00000cb0,0x000200f8,0x00000cb0,0x000700f5, 3640x00000ced,0x000200f8,0x00000ced,0x000700f5,
3640x00000006,0x00003176,0x000000a6,0x00000caf, 3650x00000006,0x00003282,0x000000a6,0x00000cec,
3650x00000cbd,0x00000cb4,0x000700f5,0x00000006, 3660x00000cfa,0x00000cf1,0x000700f5,0x00000006,
3660x00003173,0x000000a6,0x00000caf,0x00000cc0, 3670x0000327f,0x000000a6,0x00000cec,0x00000cfd,
3670x00000cb4,0x000500b0,0x0000002f,0x00000cb3, 3680x00000cf1,0x000500b0,0x0000002f,0x00000cf0,
3680x00003173,0x00000107,0x000400f6,0x00000cc1, 3690x0000327f,0x00000107,0x000400f6,0x00000cfe,
3690x00000cb4,0x00000000,0x000400fa,0x00000cb3, 3700x00000cf1,0x00000000,0x000400fa,0x00000cf0,
3700x00000cb4,0x00000cc1,0x000200f8,0x00000cb4, 3710x00000cf1,0x00000cfe,0x000200f8,0x00000cf1,
3710x00050041,0x000006c2,0x00000cb6,0x0000080d, 3720x00050041,0x000006c2,0x00000cf3,0x0000080d,
3720x00003173,0x0004003d,0x00000006,0x00000cb7, 3730x0000327f,0x0004003d,0x00000006,0x00000cf4,
3730x00000cb6,0x0003003e,0x00000cb6,0x00003176, 3740x00000cf3,0x0003003e,0x00000cf3,0x00003282,
3740x00050080,0x00000006,0x00000cbd,0x00003176, 3750x00050080,0x00000006,0x00000cfa,0x00003282,
3750x00000cb7,0x00050080,0x00000006,0x00000cc0, 3760x00000cf4,0x00050080,0x00000006,0x00000cfd,
3760x00003173,0x00000154,0x000200f9,0x00000cb0, 3770x0000327f,0x00000154,0x000200f9,0x00000ced,
3770x000200f8,0x00000cc1,0x000200f9,0x00000cc2, 3780x000200f8,0x00000cfe,0x000200f9,0x00000cff,
3780x000200f8,0x00000cc2,0x000400e0,0x00000170, 3790x000200f8,0x00000cff,0x000400e0,0x00000170,
3790x00000170,0x000006da,0x0004003d,0x00000006, 3800x00000170,0x000006da,0x0004003d,0x00000006,
3800x00000cc5,0x00000cac,0x000200f9,0x00000cc7, 3810x00000d02,0x00000ce9,0x000200f9,0x00000d04,
3810x000200f8,0x00000cc7,0x000700f5,0x00000006, 3820x000200f8,0x00000d04,0x000700f5,0x00000006,
3820x00003175,0x00000cc5,0x00000cc2,0x00000cde, 3830x00003281,0x00000d02,0x00000cff,0x00000d1b,
3830x00000ccc,0x000700f5,0x00000006,0x00003174, 3840x00000d09,0x000700f5,0x00000006,0x00003280,
3840x00000c90,0x00000cc2,0x00000ce1,0x00000ccc, 3850x00000ccd,0x00000cff,0x00000d1e,0x00000d09,
3850x000500b0,0x0000002f,0x00000ccb,0x00003174, 3860x000500b0,0x0000002f,0x00000d08,0x00003280,
3860x00000c95,0x000400f6,0x00000ce2,0x00000ccc, 3870x00000cd2,0x000400f6,0x00000d1f,0x00000d09,
3870x00000000,0x000400fa,0x00000ccb,0x00000ccc, 3880x00000000,0x000400fa,0x00000d08,0x00000d09,
3880x00000ce2,0x000200f8,0x00000ccc,0x00050084, 3890x00000d1f,0x000200f8,0x00000d09,0x00050084,
3890x00000006,0x00000d15,0x0000011f,0x00000ce6, 3900x00000006,0x00000d52,0x0000011f,0x00000d23,
3900x00050080,0x00000006,0x00000d16,0x00000107, 3910x00050080,0x00000006,0x00000d53,0x00000107,
3910x00000d15,0x00050084,0x00000006,0x00000ccf, 3920x00000d52,0x00050084,0x00000006,0x00000d0c,
3920x0000010a,0x00003174,0x00050080,0x00000006, 3930x0000010a,0x00003280,0x00050080,0x00000006,
3930x00000cd0,0x00000d16,0x00000ccf,0x00050041, 3940x00000d0d,0x00000d53,0x00000d0c,0x00050041,
3940x00000156,0x00000cd1,0x000000fc,0x00000154, 3950x00000156,0x00000d0e,0x000000fc,0x00000154,
3950x0004003d,0x00000007,0x00000cd2,0x00000cd1, 3960x0004003d,0x00000007,0x00000d0f,0x00000d0e,
3960x00050051,0x00000006,0x00000d2d,0x00000cd2, 3970x00050051,0x00000006,0x00000d6a,0x00000d0f,
3970x00000000,0x00050095,0x000000ab,0x00000d2f, 3980x00000000,0x00050095,0x000000ab,0x00000d6c,
3980x00000d2d,0x00000cd0,0x00050051,0x00000006, 3990x00000d6a,0x00000d0d,0x00050051,0x00000006,
3990x00000d30,0x00000d2f,0x00000001,0x00050051, 4000x00000d6d,0x00000d6c,0x00000001,0x00050051,
4000x00000006,0x00000d31,0x00000d2f,0x00000000, 4010x00000006,0x00000d6e,0x00000d6c,0x00000000,
4010x00050051,0x00000006,0x00000d34,0x00000cd2, 4020x00050051,0x00000006,0x00000d71,0x00000d0f,
4020x00000001,0x00050080,0x00000006,0x00000d36, 4030x00000001,0x00050080,0x00000006,0x00000d73,
4030x00000d34,0x00000d30,0x00050050,0x00000007, 4040x00000d71,0x00000d6d,0x00050050,0x00000007,
4040x00000d37,0x00000d31,0x00000d36,0x0004007c, 4050x00000d74,0x00000d6e,0x00000d73,0x0004007c,
4050x00000014,0x00000d27,0x00000d37,0x00060041, 4060x00000014,0x00000d64,0x00000d74,0x00060041,
4060x000000db,0x00000d1e,0x00000d27,0x000000da, 4070x000000db,0x00000d5b,0x00000d64,0x000000da,
4070x000000da,0x0006003d,0x00000006,0x00000d1f, 4080x000000da,0x0006003d,0x00000006,0x00000d5c,
4080x00000d1e,0x00000002,0x00000004,0x0005003e, 4090x00000d5b,0x00000002,0x00000004,0x0005003e,
4090x00000d1e,0x00003175,0x00000002,0x00000004, 4100x00000d5b,0x00003281,0x00000002,0x00000004,
4100x00050080,0x00000006,0x00000cde,0x00003175, 4110x00050080,0x00000006,0x00000d1b,0x00003281,
4110x00000d1f,0x00050080,0x00000006,0x00000ce1, 4120x00000d5c,0x00050080,0x00000006,0x00000d1e,
4120x00003174,0x00000154,0x000200f9,0x00000cc7, 4130x00003280,0x00000154,0x000200f9,0x00000d04,
4130x000200f8,0x00000ce2,0x000200f9,0x00000bb6, 4140x000200f8,0x00000d1f,0x000200f9,0x00000bf3,
4140x000200f8,0x00000b25,0x000500aa,0x0000002f, 4150x000200f8,0x00000b25,0x000500aa,0x0000002f,
4150x00000b2d,0x00000b13,0x0000038a,0x000300f7, 4160x00000b2d,0x00000b13,0x0000038a,0x000300f7,
4160x00000b2f,0x00000000,0x000400fa,0x00000b2d, 4170x00000b2f,0x00000000,0x000400fa,0x00000b2d,
@@ -420,475 +421,475 @@
4200x00000b31,0x00050041,0x00000b0f,0x00000b34, 4210x00000b31,0x00050041,0x00000b0f,0x00000b34,
4210x00000b18,0x000000a6,0x0004003d,0x00000006, 4220x00000b18,0x000000a6,0x0004003d,0x00000006,
4220x00000b35,0x00000b34,0x000500b0,0x0000002f, 4230x00000b35,0x00000b34,0x000500b0,0x0000002f,
4230x00000d7e,0x00000b35,0x0000011f,0x000300f7, 4240x00000dbb,0x00000b35,0x0000011f,0x000300f7,
4240x00000d8d,0x00000000,0x000400fa,0x00000d7e, 4250x00000dca,0x00000000,0x000400fa,0x00000dbb,
4250x00000d7f,0x00000d8d,0x000200f8,0x00000d7f, 4260x00000dbc,0x00000dca,0x000200f8,0x00000dbc,
4260x00050041,0x000000fe,0x00000e2f,0x000000fc, 4270x00050041,0x000000fe,0x00000e6c,0x000000fc,
4270x000000fd,0x0004003d,0x00000006,0x00000e30, 4280x000000fd,0x0004003d,0x00000006,0x00000e6d,
4280x00000e2f,0x00050084,0x00000006,0x00000e31, 4290x00000e6c,0x00050084,0x00000006,0x00000e6e,
4290x0000011f,0x00000e30,0x00050080,0x00000006, 4300x0000011f,0x00000e6d,0x00050080,0x00000006,
4300x00000e32,0x00000107,0x00000e31,0x00050080, 4310x00000e6f,0x00000107,0x00000e6e,0x00050080,
4310x00000006,0x00000e38,0x00000e30,0x0000319c, 4320x00000006,0x00000e75,0x00000e6d,0x000032a8,
4320x00050086,0x00000006,0x00000e39,0x00000e38, 4330x00050086,0x00000006,0x00000e76,0x00000e75,
4330x00000101,0x00050084,0x00000006,0x00000d84, 4340x00000101,0x00050084,0x00000006,0x00000dc1,
4340x00000b35,0x00000e39,0x00050080,0x00000006, 4350x00000b35,0x00000e76,0x00050080,0x00000006,
4350x00000d86,0x00000d84,0x00000b32,0x00050084, 4360x00000dc3,0x00000dc1,0x00000b32,0x00050084,
4360x00000006,0x00000d87,0x0000010a,0x00000d86, 4370x00000006,0x00000dc4,0x0000010a,0x00000dc3,
4370x00050080,0x00000006,0x00000d88,0x00000e32, 4380x00050080,0x00000006,0x00000dc5,0x00000e6f,
4380x00000d87,0x00050041,0x00000156,0x00000d89, 4390x00000dc4,0x00050041,0x00000156,0x00000dc6,
4390x000000fc,0x00000154,0x0004003d,0x00000007, 4400x000000fc,0x00000154,0x0004003d,0x00000007,
4400x00000d8a,0x00000d89,0x00050051,0x00000006, 4410x00000dc7,0x00000dc6,0x00050051,0x00000006,
4410x00000e50,0x00000d8a,0x00000000,0x00050095, 4420x00000e8d,0x00000dc7,0x00000000,0x00050095,
4420x000000ab,0x00000e52,0x00000e50,0x00000d88, 4430x000000ab,0x00000e8f,0x00000e8d,0x00000dc5,
4430x00050051,0x00000006,0x00000e53,0x00000e52, 4440x00050051,0x00000006,0x00000e90,0x00000e8f,
4440x00000001,0x00050051,0x00000006,0x00000e54, 4450x00000001,0x00050051,0x00000006,0x00000e91,
4450x00000e52,0x00000000,0x00050051,0x00000006, 4460x00000e8f,0x00000000,0x00050051,0x00000006,
4460x00000e57,0x00000d8a,0x00000001,0x00050080, 4470x00000e94,0x00000dc7,0x00000001,0x00050080,
4470x00000006,0x00000e59,0x00000e57,0x00000e53, 4480x00000006,0x00000e96,0x00000e94,0x00000e90,
4480x00050050,0x00000007,0x00000e5a,0x00000e54, 4490x00050050,0x00000007,0x00000e97,0x00000e91,
4490x00000e59,0x0004007c,0x00000014,0x00000e4a, 4500x00000e96,0x0004007c,0x00000014,0x00000e87,
4500x00000e5a,0x00060041,0x000000db,0x00000e41, 4510x00000e97,0x00060041,0x000000db,0x00000e7e,
4510x00000e4a,0x000000da,0x000000da,0x0006003d, 4520x00000e87,0x000000da,0x000000da,0x0006003d,
4520x00000006,0x00000e42,0x00000e41,0x00000002, 4530x00000006,0x00000e7f,0x00000e7e,0x00000002,
4530x00000004,0x00050041,0x000006c2,0x00000d8c, 4540x00000004,0x00050041,0x000006c2,0x00000dc9,
4540x00000856,0x00000b35,0x0003003e,0x00000d8c, 4550x00000856,0x00000b35,0x0003003e,0x00000dc9,
4550x00000e42,0x000200f9,0x00000d8d,0x000200f8, 4560x00000e7f,0x000200f9,0x00000dca,0x000200f8,
4560x00000d8d,0x00050084,0x00000006,0x00000d8f, 4570x00000dca,0x00050084,0x00000006,0x00000dcc,
4570x00000b32,0x00000101,0x00050080,0x00000006, 4580x00000b32,0x00000101,0x00050080,0x00000006,
4580x00000d91,0x00000d8f,0x00000101,0x00050041, 4590x00000dce,0x00000dcc,0x00000101,0x00050041,
4590x000000fe,0x00000d92,0x000000fc,0x000000fd, 4600x000000fe,0x00000dcf,0x000000fc,0x000000fd,
4600x0004003d,0x00000006,0x00000d93,0x00000d92, 4610x0004003d,0x00000006,0x00000dd0,0x00000dcf,
4610x0007000c,0x00000006,0x00000d94,0x00000001, 4620x0007000c,0x00000006,0x00000dd1,0x00000001,
4620x00000026,0x00000d91,0x00000d93,0x000200f9, 4630x00000026,0x00000dce,0x00000dd0,0x000200f9,
4630x00000d96,0x000200f8,0x00000d96,0x000700f5, 4640x00000dd3,0x000200f8,0x00000dd3,0x000700f5,
4640x00000006,0x00003158,0x00000d8f,0x00000d8d, 4650x00000006,0x00003264,0x00000dcc,0x00000dca,
4650x00000e2b,0x00000e29,0x000500b0,0x0000002f, 4660x00000e68,0x00000e66,0x000500b0,0x0000002f,
4660x00000d9a,0x00003158,0x00000d94,0x000400f6, 4670x00000dd7,0x00003264,0x00000dd1,0x000400f6,
4670x00000e2c,0x00000e29,0x00000000,0x000400fa, 4680x00000e69,0x00000e66,0x00000000,0x000400fa,
4680x00000d9a,0x00000d9b,0x00000e2c,0x000200f8, 4690x00000dd7,0x00000dd8,0x00000e69,0x000200f8,
4690x00000d9b,0x00050080,0x00000006,0x00000d9e, 4700x00000dd8,0x00050080,0x00000006,0x00000ddb,
4700x00003158,0x00000b35,0x000500b0,0x0000002f, 4710x00003264,0x00000b35,0x000500b0,0x0000002f,
4710x00000da1,0x00000d9e,0x00000d94,0x000300f7, 4720x00000dde,0x00000ddb,0x00000dd1,0x000300f7,
4720x00000dac,0x00000000,0x000400fa,0x00000da1, 4730x00000de9,0x00000000,0x000400fa,0x00000dde,
4730x00000da3,0x00000dab,0x000200f8,0x00000da3, 4740x00000de0,0x00000de8,0x000200f8,0x00000de0,
4740x00050041,0x000000fe,0x00000e5e,0x000000fc, 4750x00050041,0x000000fe,0x00000e9b,0x000000fc,
4750x00000308,0x0004003d,0x00000006,0x00000e5f, 4760x00000308,0x0004003d,0x00000006,0x00000e9c,
4760x00000e5e,0x000500c7,0x00000006,0x00000e60, 4770x00000e9b,0x000500c7,0x00000006,0x00000e9d,
4770x00000e5f,0x000000b0,0x000500aa,0x0000002f, 4780x00000e9c,0x000000b0,0x000500aa,0x0000002f,
4780x00000e61,0x00000e60,0x000000a6,0x000300f7, 4790x00000e9e,0x00000e9d,0x000000a6,0x000300f7,
4790x00000e66,0x00000000,0x000400fa,0x00000e61, 4800x00000ea3,0x00000000,0x000400fa,0x00000e9e,
4800x00000e62,0x00000e64,0x000200f8,0x00000e62, 4810x00000e9f,0x00000ea1,0x000200f8,0x00000e9f,
4810x000200f9,0x00000e66,0x000200f8,0x00000e64, 4820x000200f9,0x00000ea3,0x000200f8,0x00000ea1,
4820x00050084,0x00000006,0x00000e6e,0x00000111, 4830x00050084,0x00000006,0x00000eab,0x00000111,
4830x00000d93,0x00050080,0x00000006,0x00000e6f, 4840x00000dd0,0x00050080,0x00000006,0x00000eac,
4840x00000107,0x00000e6e,0x000200f9,0x00000e66, 4850x00000107,0x00000eab,0x000200f9,0x00000ea3,
4850x000200f8,0x00000e66,0x000700f5,0x00000006, 4860x000200f8,0x00000ea3,0x000700f5,0x00000006,
4860x00003159,0x00000107,0x00000e62,0x00000e6f, 4870x00003265,0x00000107,0x00000e9f,0x00000eac,
4870x00000e64,0x00050084,0x00000006,0x00000da6, 4880x00000ea1,0x00050084,0x00000006,0x00000de3,
4880x0000010a,0x00000d9e,0x00050080,0x00000006, 4890x0000010a,0x00000ddb,0x00050080,0x00000006,
4890x00000da7,0x00003159,0x00000da6,0x00050041, 4900x00000de4,0x00003265,0x00000de3,0x00050041,
4900x00000156,0x00000da8,0x000000fc,0x00000154, 4910x00000156,0x00000de5,0x000000fc,0x00000154,
4910x0004003d,0x00000007,0x00000da9,0x00000da8, 4920x0004003d,0x00000007,0x00000de6,0x00000de5,
4920x00050051,0x00000006,0x00000e86,0x00000da9, 4930x00050051,0x00000006,0x00000ec3,0x00000de6,
4930x00000000,0x00050095,0x000000ab,0x00000e88, 4940x00000000,0x00050095,0x000000ab,0x00000ec5,
4940x00000e86,0x00000da7,0x00050051,0x00000006, 4950x00000ec3,0x00000de4,0x00050051,0x00000006,
4950x00000e89,0x00000e88,0x00000001,0x00050051, 4960x00000ec6,0x00000ec5,0x00000001,0x00050051,
4960x00000006,0x00000e8a,0x00000e88,0x00000000, 4970x00000006,0x00000ec7,0x00000ec5,0x00000000,
4970x00050051,0x00000006,0x00000e8d,0x00000da9, 4980x00050051,0x00000006,0x00000eca,0x00000de6,
4980x00000001,0x00050080,0x00000006,0x00000e8f, 4990x00000001,0x00050080,0x00000006,0x00000ecc,
4990x00000e8d,0x00000e89,0x00050050,0x00000007, 5000x00000eca,0x00000ec6,0x00050050,0x00000007,
5000x00000e90,0x00000e8a,0x00000e8f,0x0004007c, 5010x00000ecd,0x00000ec7,0x00000ecc,0x0004007c,
5010x00000014,0x00000e80,0x00000e90,0x00060041, 5020x00000014,0x00000ebd,0x00000ecd,0x00060041,
5020x000000db,0x00000e77,0x00000e80,0x000000da, 5030x000000db,0x00000eb4,0x00000ebd,0x000000da,
5030x000000da,0x0006003d,0x00000006,0x00000e78, 5040x000000da,0x0006003d,0x00000006,0x00000eb5,
5040x00000e77,0x00000002,0x00000004,0x000200f9, 5050x00000eb4,0x00000002,0x00000004,0x000200f9,
5050x00000dac,0x000200f8,0x00000dab,0x000200f9, 5060x00000de9,0x000200f8,0x00000de8,0x000200f9,
5060x00000dac,0x000200f8,0x00000dac,0x000700f5, 5070x00000de9,0x000200f8,0x00000de9,0x000700f5,
5070x00000006,0x0000315a,0x00000e78,0x00000e66, 5080x00000006,0x00003266,0x00000eb5,0x00000ea3,
5080x000000a6,0x00000dab,0x000300f7,0x00000db8, 5090x000000a6,0x00000de8,0x000300f7,0x00000df5,
5090x00000000,0x000400fa,0x00000da1,0x00000daf, 5100x00000000,0x000400fa,0x00000dde,0x00000dec,
5100x00000db7,0x000200f8,0x00000daf,0x00050041, 5110x00000df4,0x000200f8,0x00000dec,0x00050041,
5110x000000fe,0x00000e94,0x000000fc,0x00000308, 5120x000000fe,0x00000ed1,0x000000fc,0x00000308,
5120x0004003d,0x00000006,0x00000e95,0x00000e94, 5130x0004003d,0x00000006,0x00000ed2,0x00000ed1,
5130x000500c7,0x00000006,0x00000e96,0x00000e95, 5140x000500c7,0x00000006,0x00000ed3,0x00000ed2,
5140x000000b0,0x000500aa,0x0000002f,0x00000e97, 5150x000000b0,0x000500aa,0x0000002f,0x00000ed4,
5150x00000e96,0x000000a6,0x000300f7,0x00000e9c, 5160x00000ed3,0x000000a6,0x000300f7,0x00000ed9,
5160x00000000,0x000400fa,0x00000e97,0x00000e98, 5170x00000000,0x000400fa,0x00000ed4,0x00000ed5,
5170x00000e9a,0x000200f8,0x00000e98,0x00050084, 5180x00000ed7,0x000200f8,0x00000ed5,0x00050084,
5180x00000006,0x00000ea2,0x0000010a,0x00000d93, 5190x00000006,0x00000edf,0x0000010a,0x00000dd0,
5190x00050080,0x00000006,0x00000ea3,0x00000107, 5200x00050080,0x00000006,0x00000ee0,0x00000107,
5200x00000ea2,0x000200f9,0x00000e9c,0x000200f8, 5210x00000edf,0x000200f9,0x00000ed9,0x000200f8,
5210x00000e9a,0x00050084,0x00000006,0x00000ea8, 5220x00000ed7,0x00050084,0x00000006,0x00000ee5,
5220x00000118,0x00000d93,0x00050080,0x00000006, 5230x00000118,0x00000dd0,0x00050080,0x00000006,
5230x00000ea9,0x00000107,0x00000ea8,0x000200f9, 5240x00000ee6,0x00000107,0x00000ee5,0x000200f9,
5240x00000e9c,0x000200f8,0x00000e9c,0x000700f5, 5250x00000ed9,0x000200f8,0x00000ed9,0x000700f5,
5250x00000006,0x0000315b,0x00000ea3,0x00000e98, 5260x00000006,0x00003267,0x00000ee0,0x00000ed5,
5260x00000ea9,0x00000e9a,0x00050084,0x00000006, 5270x00000ee6,0x00000ed7,0x00050084,0x00000006,
5270x00000db2,0x0000010a,0x00000d9e,0x00050080, 5280x00000def,0x0000010a,0x00000ddb,0x00050080,
5280x00000006,0x00000db3,0x0000315b,0x00000db2, 5290x00000006,0x00000df0,0x00003267,0x00000def,
5290x00050041,0x00000156,0x00000db4,0x000000fc, 5300x00050041,0x00000156,0x00000df1,0x000000fc,
5300x00000154,0x0004003d,0x00000007,0x00000db5, 5310x00000154,0x0004003d,0x00000007,0x00000df2,
5310x00000db4,0x00050051,0x00000006,0x00000ec0, 5320x00000df1,0x00050051,0x00000006,0x00000efd,
5320x00000db5,0x00000000,0x00050095,0x000000ab, 5330x00000df2,0x00000000,0x00050095,0x000000ab,
5330x00000ec2,0x00000ec0,0x00000db3,0x00050051, 5340x00000eff,0x00000efd,0x00000df0,0x00050051,
5340x00000006,0x00000ec3,0x00000ec2,0x00000001, 5350x00000006,0x00000f00,0x00000eff,0x00000001,
5350x00050051,0x00000006,0x00000ec4,0x00000ec2, 5360x00050051,0x00000006,0x00000f01,0x00000eff,
5360x00000000,0x00050051,0x00000006,0x00000ec7, 5370x00000000,0x00050051,0x00000006,0x00000f04,
5370x00000db5,0x00000001,0x00050080,0x00000006, 5380x00000df2,0x00000001,0x00050080,0x00000006,
5380x00000ec9,0x00000ec7,0x00000ec3,0x00050050, 5390x00000f06,0x00000f04,0x00000f00,0x00050050,
5390x00000007,0x00000eca,0x00000ec4,0x00000ec9, 5400x00000007,0x00000f07,0x00000f01,0x00000f06,
5400x0004007c,0x00000014,0x00000eba,0x00000eca, 5410x0004007c,0x00000014,0x00000ef7,0x00000f07,
5410x00060041,0x000000db,0x00000eb1,0x00000eba, 5420x00060041,0x000000db,0x00000eee,0x00000ef7,
5420x000000da,0x000000da,0x0006003d,0x00000006, 5430x000000da,0x000000da,0x0006003d,0x00000006,
5430x00000eb2,0x00000eb1,0x00000002,0x00000004, 5440x00000eef,0x00000eee,0x00000002,0x00000004,
5440x000200f9,0x00000db8,0x000200f8,0x00000db7, 5450x000200f9,0x00000df5,0x000200f8,0x00000df4,
5450x000200f9,0x00000db8,0x000200f8,0x00000db8, 5460x000200f9,0x00000df5,0x000200f8,0x00000df5,
5460x000700f5,0x00000006,0x0000315c,0x00000eb2, 5470x000700f5,0x00000006,0x00003268,0x00000eef,
5470x00000e9c,0x000000a6,0x00000db7,0x00050041, 5480x00000ed9,0x000000a6,0x00000df4,0x00050041,
5480x000000fe,0x00000ece,0x000000fc,0x00000308, 5490x000000fe,0x00000f0b,0x000000fc,0x00000308,
5490x0004003d,0x00000006,0x00000ecf,0x00000ece, 5500x0004003d,0x00000006,0x00000f0c,0x00000f0b,
5500x00050084,0x00000006,0x00000ed0,0x0000010a, 5510x00050084,0x00000006,0x00000f0d,0x0000010a,
5510x00000ecf,0x000500c2,0x00000006,0x00000ed1, 5520x00000f0c,0x000500c2,0x00000006,0x00000f0e,
5520x0000315a,0x00000ed0,0x000500c7,0x00000006, 5530x00003266,0x00000f0d,0x000500c7,0x00000006,
5530x00000ed2,0x00000ed1,0x00000799,0x000200f9, 5540x00000f0f,0x00000f0e,0x00000799,0x000200f9,
5540x00000dbc,0x000200f8,0x00000dbc,0x000700f5, 5550x00000df9,0x000200f8,0x00000df9,0x000700f5,
5550x00000006,0x0000315d,0x000000a6,0x00000db8, 5560x00000006,0x00003269,0x000000a6,0x00000df5,
5560x00000dcc,0x00000dc0,0x000500b0,0x0000002f, 5570x00000e09,0x00000dfd,0x000500b0,0x0000002f,
5570x00000dbf,0x0000315d,0x0000011f,0x000400f6, 5580x00000dfc,0x00003269,0x0000011f,0x000400f6,
5580x00000dcd,0x00000dc0,0x00000000,0x000400fa, 5590x00000e0a,0x00000dfd,0x00000000,0x000400fa,
5590x00000dbf,0x00000dc0,0x00000dcd,0x000200f8, 5600x00000dfc,0x00000dfd,0x00000e0a,0x000200f8,
5600x00000dc0,0x000500aa,0x0000002f,0x00000dc6, 5610x00000dfd,0x000500aa,0x0000002f,0x00000e03,
5610x0000315d,0x00000ed2,0x000500a7,0x0000002f, 5620x00003269,0x00000f0f,0x000500a7,0x0000002f,
5620x00000dc7,0x00000da1,0x00000dc6,0x000600a9, 5630x00000e04,0x00000dde,0x00000e03,0x000600a9,
5630x00000006,0x00000dc8,0x00000dc7,0x000000b0, 5640x00000006,0x00000e05,0x00000e04,0x000000b0,
5640x000000a6,0x00060041,0x000006c2,0x00000dc9, 5650x000000a6,0x00060041,0x000006c2,0x00000e06,
5650x000008af,0x0000315d,0x00000b35,0x0003003e, 5660x000008af,0x00003269,0x00000b35,0x0003003e,
5660x00000dc9,0x00000dc8,0x00050080,0x00000006, 5670x00000e06,0x00000e05,0x00050080,0x00000006,
5670x00000dcc,0x0000315d,0x00000154,0x000200f9, 5680x00000e09,0x00003269,0x00000154,0x000200f9,
5680x00000dbc,0x000200f8,0x00000dcd,0x000400e0, 5690x00000df9,0x000200f8,0x00000e0a,0x000400e0,
5690x00000170,0x00000170,0x000006da,0x000200f9, 5700x00000170,0x00000170,0x000006da,0x000200f9,
5700x00000dce,0x000200f8,0x00000dce,0x000700f5, 5710x00000e0b,0x000200f8,0x00000e0b,0x000700f5,
5710x00000006,0x0000315e,0x000000b0,0x00000dcd, 5720x00000006,0x0000326a,0x000000b0,0x00000e0a,
5720x00000dff,0x00000dfd,0x000500b0,0x0000002f, 5730x00000e3c,0x00000e3a,0x000500b0,0x0000002f,
5730x00000dd1,0x0000315e,0x00000107,0x000400f6, 5740x00000e0e,0x0000326a,0x00000107,0x000400f6,
5740x00000e00,0x00000dfd,0x00000000,0x000400fa, 5750x00000e3d,0x00000e3a,0x00000000,0x000400fa,
5750x00000dd1,0x00000dd2,0x00000e00,0x000200f8, 5760x00000e0e,0x00000e0f,0x00000e3d,0x000200f8,
5760x00000dd2,0x000200f9,0x00000dd3,0x000200f8, 5770x00000e0f,0x000200f9,0x00000e10,0x000200f8,
5770x00000dd3,0x000700f5,0x00000006,0x0000316b, 5780x00000e10,0x000700f5,0x00000006,0x00003277,
5780x000000a6,0x00000dd2,0x00000de9,0x00000de7, 5790x000000a6,0x00000e0f,0x00000e26,0x00000e24,
5790x000500b0,0x0000002f,0x00000dd6,0x0000316b, 5800x000500b0,0x0000002f,0x00000e13,0x00003277,
5800x0000011f,0x000400f6,0x00000dea,0x00000de7, 5810x0000011f,0x000400f6,0x00000e27,0x00000e24,
5810x00000000,0x000400fa,0x00000dd6,0x00000dd7, 5820x00000000,0x000400fa,0x00000e13,0x00000e14,
5820x00000dea,0x000200f8,0x00000dd7,0x000500ae, 5830x00000e27,0x000200f8,0x00000e14,0x000500ae,
5830x0000002f,0x00000ddb,0x00000b35,0x0000315e, 5840x0000002f,0x00000e18,0x00000b35,0x0000326a,
5840x000300f7,0x00000de4,0x00000000,0x000400fa, 5850x000300f7,0x00000e21,0x00000000,0x000400fa,
5850x00000ddb,0x00000ddc,0x00000de3,0x000200f8, 5860x00000e18,0x00000e19,0x00000e20,0x000200f8,
5860x00000ddc,0x00050082,0x00000006,0x00000de0, 5870x00000e19,0x00050082,0x00000006,0x00000e1d,
5870x00000b35,0x0000315e,0x00060041,0x000006c2, 5880x00000b35,0x0000326a,0x00060041,0x000006c2,
5880x00000de1,0x000008af,0x0000316b,0x00000de0, 5890x00000e1e,0x000008af,0x00003277,0x00000e1d,
5890x0004003d,0x00000006,0x00000de2,0x00000de1, 5900x0004003d,0x00000006,0x00000e1f,0x00000e1e,
5900x000200f9,0x00000de4,0x000200f8,0x00000de3, 5910x000200f9,0x00000e21,0x000200f8,0x00000e20,
5910x000200f9,0x00000de4,0x000200f8,0x00000de4, 5920x000200f9,0x00000e21,0x000200f8,0x00000e21,
5920x000700f5,0x00000006,0x0000316f,0x00000de2, 5930x000700f5,0x00000006,0x0000327b,0x00000e1f,
5930x00000ddc,0x000000a6,0x00000de3,0x00050041, 5940x00000e19,0x000000a6,0x00000e20,0x00050041,
5940x00000009,0x00000de6,0x00000d72,0x0000316b, 5950x00000009,0x00000e23,0x00000daf,0x00003277,
5950x0003003e,0x00000de6,0x0000316f,0x000200f9, 5960x0003003e,0x00000e23,0x0000327b,0x000200f9,
5960x00000de7,0x000200f8,0x00000de7,0x00050080, 5970x00000e24,0x000200f8,0x00000e24,0x00050080,
5970x00000006,0x00000de9,0x0000316b,0x00000154, 5980x00000006,0x00000e26,0x00003277,0x00000154,
5980x000200f9,0x00000dd3,0x000200f8,0x00000dea, 5990x000200f9,0x00000e10,0x000200f8,0x00000e27,
5990x000400e0,0x00000170,0x00000170,0x000006da, 6000x000400e0,0x00000170,0x00000170,0x000006da,
6000x000200f9,0x00000deb,0x000200f8,0x00000deb, 6010x000200f9,0x00000e28,0x000200f8,0x00000e28,
6010x000700f5,0x00000006,0x0000316c,0x000000a6, 6020x000700f5,0x00000006,0x00003278,0x000000a6,
6020x00000dea,0x00000dfb,0x00000def,0x000500b0, 6030x00000e27,0x00000e38,0x00000e2c,0x000500b0,
6030x0000002f,0x00000dee,0x0000316c,0x0000011f, 6040x0000002f,0x00000e2b,0x00003278,0x0000011f,
6040x000400f6,0x00000dfc,0x00000def,0x00000000, 6050x000400f6,0x00000e39,0x00000e2c,0x00000000,
6050x000400fa,0x00000dee,0x00000def,0x00000dfc, 6060x000400fa,0x00000e2b,0x00000e2c,0x00000e39,
6060x000200f8,0x00000def,0x00050041,0x00000009, 6070x000200f8,0x00000e2c,0x00050041,0x00000009,
6070x00000df3,0x00000d72,0x0000316c,0x0004003d, 6080x00000e30,0x00000daf,0x00003278,0x0004003d,
6080x00000006,0x00000df4,0x00000df3,0x00060041, 6090x00000006,0x00000e31,0x00000e30,0x00060041,
6090x000006c2,0x00000df5,0x000008af,0x0000316c, 6100x000006c2,0x00000e32,0x000008af,0x00003278,
6100x00000b35,0x0004003d,0x00000006,0x00000df6, 6110x00000b35,0x0004003d,0x00000006,0x00000e33,
6110x00000df5,0x00050080,0x00000006,0x00000df7, 6120x00000e32,0x00050080,0x00000006,0x00000e34,
6120x00000df6,0x00000df4,0x0003003e,0x00000df5, 6130x00000e33,0x00000e31,0x0003003e,0x00000e32,
6130x00000df7,0x00050080,0x00000006,0x00000dfb, 6140x00000e34,0x00050080,0x00000006,0x00000e38,
6140x0000316c,0x00000154,0x000200f9,0x00000deb, 6150x00003278,0x00000154,0x000200f9,0x00000e28,
6150x000200f8,0x00000dfc,0x000400e0,0x00000170, 6160x000200f8,0x00000e39,0x000400e0,0x00000170,
6160x00000170,0x000006da,0x000200f9,0x00000dfd, 6170x00000170,0x000006da,0x000200f9,0x00000e3a,
6170x000200f8,0x00000dfd,0x000500c4,0x00000006, 6180x000200f8,0x00000e3a,0x000500c4,0x00000006,
6180x00000dff,0x0000315e,0x00000154,0x000200f9, 6190x00000e3c,0x0000326a,0x00000154,0x000200f9,
6190x00000dce,0x000200f8,0x00000e00,0x000300f7, 6200x00000e0b,0x000200f8,0x00000e3d,0x000300f7,
6200x00000e1c,0x00000000,0x000400fa,0x00000da1, 6210x00000e59,0x00000000,0x000400fa,0x00000dde,
6210x00000e02,0x00000e1c,0x000200f8,0x00000e02, 6220x00000e3f,0x00000e59,0x000200f8,0x00000e3f,
6220x00050041,0x000006c2,0x00000e04,0x00000856, 6230x00050041,0x000006c2,0x00000e41,0x00000856,
6230x00000ed2,0x0004003d,0x00000006,0x00000e05, 6240x00000f0f,0x0004003d,0x00000006,0x00000e42,
6240x00000e04,0x00060041,0x000006c2,0x00000e08, 6250x00000e41,0x00060041,0x000006c2,0x00000e45,
6250x000008af,0x00000ed2,0x00000b35,0x0004003d, 6260x000008af,0x00000f0f,0x00000b35,0x0004003d,
6260x00000006,0x00000e09,0x00000e08,0x00050080, 6270x00000006,0x00000e46,0x00000e45,0x00050080,
6270x00000006,0x00000e0a,0x00000e05,0x00000e09, 6280x00000006,0x00000e47,0x00000e42,0x00000e46,
6280x00050082,0x00000006,0x00000e0b,0x00000e0a, 6290x00050082,0x00000006,0x00000e48,0x00000e47,
6290x000000b0,0x000500c7,0x00000006,0x00000ed8, 6300x000000b0,0x000500c7,0x00000006,0x00000f15,
6300x00000ecf,0x000000b0,0x000500aa,0x0000002f, 6310x00000f0c,0x000000b0,0x000500aa,0x0000002f,
6310x00000ed9,0x00000ed8,0x000000a6,0x000300f7, 6320x00000f16,0x00000f15,0x000000a6,0x000300f7,
6320x00000ede,0x00000000,0x000400fa,0x00000ed9, 6330x00000f1b,0x00000000,0x000400fa,0x00000f16,
6330x00000eda,0x00000edc,0x000200f8,0x00000eda, 6340x00000f17,0x00000f19,0x000200f8,0x00000f17,
6340x00050084,0x00000006,0x00000ee4,0x00000111, 6350x00050084,0x00000006,0x00000f21,0x00000111,
6350x00000d93,0x00050080,0x00000006,0x00000ee5, 6360x00000dd0,0x00050080,0x00000006,0x00000f22,
6360x00000107,0x00000ee4,0x000200f9,0x00000ede, 6370x00000107,0x00000f21,0x000200f9,0x00000f1b,
6370x000200f8,0x00000edc,0x000200f9,0x00000ede, 6380x000200f8,0x00000f19,0x000200f9,0x00000f1b,
6380x000200f8,0x00000ede,0x000700f5,0x00000006, 6390x000200f8,0x00000f1b,0x000700f5,0x00000006,
6390x0000315f,0x00000ee5,0x00000eda,0x00000107, 6400x0000326b,0x00000f22,0x00000f17,0x00000107,
6400x00000edc,0x00050084,0x00000006,0x00000e0e, 6410x00000f19,0x00050084,0x00000006,0x00000e4b,
6410x0000010a,0x00000e0b,0x00050080,0x00000006, 6420x0000010a,0x00000e48,0x00050080,0x00000006,
6420x00000e0f,0x0000315f,0x00000e0e,0x00050041, 6430x00000e4c,0x0000326b,0x00000e4b,0x00050041,
6430x00000156,0x00000e10,0x000000fc,0x00000154, 6440x00000156,0x00000e4d,0x000000fc,0x00000154,
6440x0004003d,0x00000007,0x00000e11,0x00000e10, 6450x0004003d,0x00000007,0x00000e4e,0x00000e4d,
6450x00050051,0x00000006,0x00000efd,0x00000e11, 6460x00050051,0x00000006,0x00000f3a,0x00000e4e,
6460x00000000,0x00050095,0x000000ab,0x00000eff, 6470x00000000,0x00050095,0x000000ab,0x00000f3c,
6470x00000efd,0x00000e0f,0x00050051,0x00000006, 6480x00000f3a,0x00000e4c,0x00050051,0x00000006,
6480x00000f00,0x00000eff,0x00000001,0x00050051, 6490x00000f3d,0x00000f3c,0x00000001,0x00050051,
6490x00000006,0x00000f01,0x00000eff,0x00000000, 6500x00000006,0x00000f3e,0x00000f3c,0x00000000,
6500x00050051,0x00000006,0x00000f04,0x00000e11, 6510x00050051,0x00000006,0x00000f41,0x00000e4e,
6510x00000001,0x00050080,0x00000006,0x00000f06, 6520x00000001,0x00050080,0x00000006,0x00000f43,
6520x00000f04,0x00000f00,0x00050050,0x00000007, 6530x00000f41,0x00000f3d,0x00050050,0x00000007,
6530x00000f07,0x00000f01,0x00000f06,0x0004007c, 6540x00000f44,0x00000f3e,0x00000f43,0x0004007c,
6540x00000014,0x00000ef7,0x00000f07,0x00060041, 6550x00000014,0x00000f34,0x00000f44,0x00060041,
6550x000000db,0x00000eef,0x00000ef7,0x000000da, 6560x000000db,0x00000f2c,0x00000f34,0x000000da,
6560x000000da,0x0005003e,0x00000eef,0x0000315a, 6570x000000da,0x0005003e,0x00000f2c,0x00003266,
6570x00000002,0x00000004,0x000300f7,0x00000f13, 6580x00000002,0x00000004,0x000300f7,0x00000f50,
6580x00000000,0x000400fa,0x00000ed9,0x00000f0f, 6590x00000000,0x000400fa,0x00000f16,0x00000f4c,
6590x00000f11,0x000200f8,0x00000f0f,0x00050084, 6600x00000f4e,0x000200f8,0x00000f4c,0x00050084,
6600x00000006,0x00000f19,0x00000118,0x00000d93, 6610x00000006,0x00000f56,0x00000118,0x00000dd0,
6610x00050080,0x00000006,0x00000f1a,0x00000107, 6620x00050080,0x00000006,0x00000f57,0x00000107,
6620x00000f19,0x000200f9,0x00000f13,0x000200f8, 6630x00000f56,0x000200f9,0x00000f50,0x000200f8,
6630x00000f11,0x00050084,0x00000006,0x00000f1f, 6640x00000f4e,0x00050084,0x00000006,0x00000f5c,
6640x0000010a,0x00000d93,0x00050080,0x00000006, 6650x0000010a,0x00000dd0,0x00050080,0x00000006,
6650x00000f20,0x00000107,0x00000f1f,0x000200f9, 6660x00000f5d,0x00000107,0x00000f5c,0x000200f9,
6660x00000f13,0x000200f8,0x00000f13,0x000700f5, 6670x00000f50,0x000200f8,0x00000f50,0x000700f5,
6670x00000006,0x00003160,0x00000f1a,0x00000f0f, 6680x00000006,0x0000326c,0x00000f57,0x00000f4c,
6680x00000f20,0x00000f11,0x00050080,0x00000006, 6690x00000f5d,0x00000f4e,0x00050080,0x00000006,
6690x00000e17,0x00003160,0x00000e0e,0x00050095, 6700x00000e54,0x0000326c,0x00000e4b,0x00050095,
6700x000000ab,0x00000f38,0x00000efd,0x00000e17, 6710x000000ab,0x00000f75,0x00000f3a,0x00000e54,
6710x00050051,0x00000006,0x00000f39,0x00000f38, 6720x00050051,0x00000006,0x00000f76,0x00000f75,
6720x00000001,0x00050051,0x00000006,0x00000f3a, 6730x00000001,0x00050051,0x00000006,0x00000f77,
6730x00000f38,0x00000000,0x00050080,0x00000006, 6740x00000f75,0x00000000,0x00050080,0x00000006,
6740x00000f3f,0x00000f04,0x00000f39,0x00050050, 6750x00000f7c,0x00000f41,0x00000f76,0x00050050,
6750x00000007,0x00000f40,0x00000f3a,0x00000f3f, 6760x00000007,0x00000f7d,0x00000f77,0x00000f7c,
6760x0004007c,0x00000014,0x00000f30,0x00000f40, 6770x0004007c,0x00000014,0x00000f6d,0x00000f7d,
6770x00060041,0x000000db,0x00000f28,0x00000f30, 6780x00060041,0x000000db,0x00000f65,0x00000f6d,
6780x000000da,0x000000da,0x0005003e,0x00000f28, 6790x000000da,0x000000da,0x0005003e,0x00000f65,
6790x0000315c,0x00000002,0x00000004,0x000200f9, 6800x00003268,0x00000002,0x00000004,0x000200f9,
6800x00000e1c,0x000200f8,0x00000e1c,0x000400e0, 6810x00000e59,0x000200f8,0x00000e59,0x000400e0,
6810x00000170,0x00000170,0x000006da,0x000300f7, 6820x00000170,0x00000170,0x000006da,0x000300f7,
6820x00000e28,0x00000000,0x000400fa,0x00000d7e, 6830x00000e65,0x00000000,0x000400fa,0x00000dbb,
6830x00000e1f,0x00000e28,0x000200f8,0x00000e1f, 6840x00000e5c,0x00000e65,0x000200f8,0x00000e5c,
6840x00060041,0x000006c2,0x00000e22,0x000008af, 6850x00060041,0x000006c2,0x00000e5f,0x000008af,
6850x00000b35,0x0000091d,0x0004003d,0x00000006, 6860x00000b35,0x0000091d,0x0004003d,0x00000006,
6860x00000e23,0x00000e22,0x00050041,0x000006c2, 6870x00000e60,0x00000e5f,0x00050041,0x000006c2,
6870x00000e24,0x00000856,0x00000b35,0x0004003d, 6880x00000e61,0x00000856,0x00000b35,0x0004003d,
6880x00000006,0x00000e25,0x00000e24,0x00050080, 6890x00000006,0x00000e62,0x00000e61,0x00050080,
6890x00000006,0x00000e26,0x00000e25,0x00000e23, 6900x00000006,0x00000e63,0x00000e62,0x00000e60,
6900x0003003e,0x00000e24,0x00000e26,0x000200f9, 6910x0003003e,0x00000e61,0x00000e63,0x000200f9,
6910x00000e28,0x000200f8,0x00000e28,0x000400e0, 6920x00000e65,0x000200f8,0x00000e65,0x000400e0,
6920x00000170,0x00000170,0x000006da,0x000200f9, 6930x00000170,0x00000170,0x000006da,0x000200f9,
6930x00000e29,0x000200f8,0x00000e29,0x00050080, 6940x00000e66,0x000200f8,0x00000e66,0x00050080,
6940x00000006,0x00000e2b,0x00003158,0x00000107, 6950x00000006,0x00000e68,0x00003264,0x00000107,
6950x000200f9,0x00000d96,0x000200f8,0x00000e2c, 6960x000200f9,0x00000dd3,0x000200f8,0x00000e69,
6960x000200f9,0x00000bb6,0x000200f8,0x00000b2f, 6970x000200f9,0x00000bf3,0x000200f8,0x00000b2f,
6970x000500aa,0x0000002f,0x00000b3b,0x00000b13, 6980x000500aa,0x0000002f,0x00000b3b,0x00000b13,
6980x00000b3a,0x000300f7,0x00000b3d,0x00000000, 6990x00000b3a,0x000300f7,0x00000b3d,0x00000000,
6990x000400fa,0x00000b3b,0x00000b3c,0x00000b3d, 7000x000400fa,0x00000b3b,0x00000b3c,0x00000b3d,
7000x000200f8,0x00000b3c,0x00050041,0x00000b0f, 7010x000200f8,0x00000b3c,0x00050041,0x00000b0f,
7010x00000b3f,0x00000b18,0x000000a6,0x0004003d, 7020x00000b3f,0x00000b18,0x000000a6,0x0004003d,
7020x00000006,0x00000b40,0x00000b3f,0x00050041, 7030x00000006,0x00000b40,0x00000b3f,0x00050041,
7030x000000fe,0x00000f5b,0x000000fc,0x000000fd, 7040x000000fe,0x00000f98,0x000000fc,0x000000fd,
7040x0004003d,0x00000006,0x00000f5c,0x00000f5b, 7050x0004003d,0x00000006,0x00000f99,0x00000f98,
7050x000200f9,0x00000f5d,0x000200f8,0x00000f5d, 7060x000200f9,0x00000f9a,0x000200f8,0x00000f9a,
7060x000700f5,0x00000006,0x00003143,0x000000b0, 7070x000700f5,0x00000006,0x0000324f,0x000000b0,
7070x00000b3c,0x00000f64,0x00000f62,0x000500b0, 7080x00000b3c,0x00000fa1,0x00000f9f,0x000500b0,
7080x0000002f,0x00000f61,0x00003143,0x00000f5c, 7090x0000002f,0x00000f9e,0x0000324f,0x00000f99,
7090x000400f6,0x00000f66,0x00000f62,0x00000000, 7100x000400f6,0x00000fa3,0x00000f9f,0x00000000,
7100x000400fa,0x00000f61,0x00000f62,0x00000f66, 7110x000400fa,0x00000f9e,0x00000f9f,0x00000fa3,
7110x000200f8,0x00000f62,0x000500c4,0x00000006, 7120x000200f8,0x00000f9f,0x000500c4,0x00000006,
7120x00000f64,0x00003143,0x00000154,0x000200f9, 7130x00000fa1,0x0000324f,0x00000154,0x000200f9,
7130x00000f5d,0x000200f8,0x00000f66,0x000200f9, 7140x00000f9a,0x000200f8,0x00000fa3,0x000200f9,
7140x00000f68,0x000200f8,0x00000f68,0x000700f5, 7150x00000fa5,0x000200f8,0x00000fa5,0x000700f5,
7150x00000006,0x00003144,0x00000b40,0x00000f66, 7160x00000006,0x00003250,0x00000b40,0x00000fa3,
7160x00000f90,0x00000f8e,0x000500b0,0x0000002f, 7170x00000fcd,0x00000fcb,0x000500b0,0x0000002f,
7170x00000f6c,0x00003144,0x00003143,0x000400f6, 7180x00000fa9,0x00003250,0x0000324f,0x000400f6,
7180x00000f91,0x00000f8e,0x00000000,0x000400fa, 7190x00000fce,0x00000fcb,0x00000000,0x000400fa,
7190x00000f6c,0x00000f6d,0x00000f91,0x000200f8, 7200x00000fa9,0x00000faa,0x00000fce,0x000200f8,
7200x00000f6d,0x000500b0,0x0000002f,0x00000f71, 7210x00000faa,0x000500b0,0x0000002f,0x00000fae,
7210x00003144,0x00000f5c,0x000300f7,0x00000f7b, 7220x00003250,0x00000f99,0x000300f7,0x00000fb8,
7220x00000000,0x000400fa,0x00000f71,0x00000f72, 7230x00000000,0x000400fa,0x00000fae,0x00000faf,
7230x00000f7a,0x000200f8,0x00000f72,0x00050084, 7240x00000fb7,0x000200f8,0x00000faf,0x00050084,
7240x00000006,0x00000f75,0x0000010a,0x00003144, 7250x00000006,0x00000fb2,0x0000010a,0x00003250,
7250x00050080,0x00000006,0x00000f76,0x00000107, 7260x00050080,0x00000006,0x00000fb3,0x00000107,
7260x00000f75,0x00050041,0x00000156,0x00000f77, 7270x00000fb2,0x00050041,0x00000156,0x00000fb4,
7270x000000fc,0x00000154,0x0004003d,0x00000007, 7280x000000fc,0x00000154,0x0004003d,0x00000007,
7280x00000f78,0x00000f77,0x00050051,0x00000006, 7290x00000fb5,0x00000fb4,0x00050051,0x00000006,
7290x0000101f,0x00000f78,0x00000000,0x00050095, 7300x0000105c,0x00000fb5,0x00000000,0x00050095,
7300x000000ab,0x00001021,0x0000101f,0x00000f76, 7310x000000ab,0x0000105e,0x0000105c,0x00000fb3,
7310x00050051,0x00000006,0x00001022,0x00001021, 7320x00050051,0x00000006,0x0000105f,0x0000105e,
7320x00000001,0x00050051,0x00000006,0x00001023, 7330x00000001,0x00050051,0x00000006,0x00001060,
7330x00001021,0x00000000,0x00050051,0x00000006, 7340x0000105e,0x00000000,0x00050051,0x00000006,
7340x00001026,0x00000f78,0x00000001,0x00050080, 7350x00001063,0x00000fb5,0x00000001,0x00050080,
7350x00000006,0x00001028,0x00001026,0x00001022, 7360x00000006,0x00001065,0x00001063,0x0000105f,
7360x00050050,0x00000007,0x00001029,0x00001023, 7370x00050050,0x00000007,0x00001066,0x00001060,
7370x00001028,0x0004007c,0x00000014,0x00001019, 7380x00001065,0x0004007c,0x00000014,0x00001056,
7380x00001029,0x00060041,0x000000db,0x00001010, 7390x00001066,0x00060041,0x000000db,0x0000104d,
7390x00001019,0x000000da,0x000000da,0x0006003d, 7400x00001056,0x000000da,0x000000da,0x0006003d,
7400x00000006,0x00001011,0x00001010,0x00000002, 7410x00000006,0x0000104e,0x0000104d,0x00000002,
7410x00000004,0x000200f9,0x00000f7b,0x000200f8, 7420x00000004,0x000200f9,0x00000fb8,0x000200f8,
7420x00000f7a,0x000200f9,0x00000f7b,0x000200f8, 7430x00000fb7,0x000200f9,0x00000fb8,0x000200f8,
7430x00000f7b,0x000700f5,0x00000006,0x00003154, 7440x00000fb8,0x000700f5,0x00000006,0x00003260,
7440x00001011,0x00000f72,0x00000380,0x00000f7a, 7450x0000104e,0x00000faf,0x00000380,0x00000fb7,
7450x00050041,0x000006c2,0x00000f7d,0x000006af, 7460x00050041,0x000006c2,0x00000fba,0x000006af,
7460x00003144,0x0003003e,0x00000f7d,0x00003154, 7470x00003250,0x0003003e,0x00000fba,0x00003260,
7470x000300f7,0x00000f8b,0x00000000,0x000400fa, 7480x000300f7,0x00000fc8,0x00000000,0x000400fa,
7480x00000f71,0x00000f82,0x00000f8a,0x000200f8, 7490x00000fae,0x00000fbf,0x00000fc7,0x000200f8,
7490x00000f82,0x00050084,0x00000006,0x0000102e, 7500x00000fbf,0x00050084,0x00000006,0x0000106b,
7500x0000010a,0x00000f5c,0x00050080,0x00000006, 7510x0000010a,0x00000f99,0x00050080,0x00000006,
7510x0000102f,0x00000107,0x0000102e,0x00050084, 7520x0000106c,0x00000107,0x0000106b,0x00050084,
7520x00000006,0x00000f85,0x0000010a,0x00003144, 7530x00000006,0x00000fc2,0x0000010a,0x00003250,
7530x00050080,0x00000006,0x00000f86,0x0000102f, 7540x00050080,0x00000006,0x00000fc3,0x0000106c,
7540x00000f85,0x00050041,0x00000156,0x00000f87, 7550x00000fc2,0x00050041,0x00000156,0x00000fc4,
7550x000000fc,0x00000154,0x0004003d,0x00000007, 7560x000000fc,0x00000154,0x0004003d,0x00000007,
7560x00000f88,0x00000f87,0x00050051,0x00000006, 7570x00000fc5,0x00000fc4,0x00050051,0x00000006,
7570x00001046,0x00000f88,0x00000000,0x00050095, 7580x00001083,0x00000fc5,0x00000000,0x00050095,
7580x000000ab,0x00001048,0x00001046,0x00000f86, 7590x000000ab,0x00001085,0x00001083,0x00000fc3,
7590x00050051,0x00000006,0x00001049,0x00001048, 7600x00050051,0x00000006,0x00001086,0x00001085,
7600x00000001,0x00050051,0x00000006,0x0000104a, 7610x00000001,0x00050051,0x00000006,0x00001087,
7610x00001048,0x00000000,0x00050051,0x00000006, 7620x00001085,0x00000000,0x00050051,0x00000006,
7620x0000104d,0x00000f88,0x00000001,0x00050080, 7630x0000108a,0x00000fc5,0x00000001,0x00050080,
7630x00000006,0x0000104f,0x0000104d,0x00001049, 7640x00000006,0x0000108c,0x0000108a,0x00001086,
7640x00050050,0x00000007,0x00001050,0x0000104a, 7650x00050050,0x00000007,0x0000108d,0x00001087,
7650x0000104f,0x0004007c,0x00000014,0x00001040, 7660x0000108c,0x0004007c,0x00000014,0x0000107d,
7660x00001050,0x00060041,0x000000db,0x00001037, 7670x0000108d,0x00060041,0x000000db,0x00001074,
7670x00001040,0x000000da,0x000000da,0x0006003d, 7680x0000107d,0x000000da,0x000000da,0x0006003d,
7680x00000006,0x00001038,0x00001037,0x00000002, 7690x00000006,0x00001075,0x00001074,0x00000002,
7690x00000004,0x000200f9,0x00000f8b,0x000200f8, 7700x00000004,0x000200f9,0x00000fc8,0x000200f8,
7700x00000f8a,0x000200f9,0x00000f8b,0x000200f8, 7710x00000fc7,0x000200f9,0x00000fc8,0x000200f8,
7710x00000f8b,0x000700f5,0x00000006,0x00003156, 7720x00000fc8,0x000700f5,0x00000006,0x00003262,
7720x00001038,0x00000f82,0x00000380,0x00000f8a, 7730x00001075,0x00000fbf,0x00000380,0x00000fc7,
7730x00050041,0x000006c2,0x00000f8d,0x000006c4, 7740x00050041,0x000006c2,0x00000fca,0x000006c4,
7740x00003144,0x0003003e,0x00000f8d,0x00003156, 7750x00003250,0x0003003e,0x00000fca,0x00003262,
7750x000200f9,0x00000f8e,0x000200f8,0x00000f8e, 7760x000200f9,0x00000fcb,0x000200f8,0x00000fcb,
7760x00050080,0x00000006,0x00000f90,0x00003144, 7770x00050080,0x00000006,0x00000fcd,0x00003250,
7770x00000107,0x000200f9,0x00000f68,0x000200f8, 7780x00000107,0x000200f9,0x00000fa5,0x000200f8,
7780x00000f91,0x000400e0,0x00000170,0x00000170, 7790x00000fce,0x000400e0,0x00000170,0x00000170,
7790x000006da,0x000200f9,0x00000f92,0x000200f8, 7800x000006da,0x000200f9,0x00000fcf,0x000200f8,
7800x00000f92,0x000700f5,0x00000006,0x00003146, 7810x00000fcf,0x000700f5,0x00000006,0x00003252,
7810x00000170,0x00000f91,0x00000fe6,0x00000fe4, 7820x00000170,0x00000fce,0x00001023,0x00001021,
7820x000500b2,0x0000002f,0x00000f96,0x00003146, 7830x000500b2,0x0000002f,0x00000fd3,0x00003252,
7830x00003143,0x000400f6,0x00000fe7,0x00000fe4, 7840x0000324f,0x000400f6,0x00001024,0x00001021,
7840x00000000,0x000400fa,0x00000f96,0x00000f97, 7850x00000000,0x000400fa,0x00000fd3,0x00000fd4,
7850x00000fe7,0x000200f8,0x00000f97,0x000500c2, 7860x00001024,0x000200f8,0x00000fd4,0x000500c2,
7860x00000006,0x00000f99,0x00003146,0x00000154, 7870x00000006,0x00000fd6,0x00003252,0x00000154,
7870x000200f9,0x00000f9a,0x000200f8,0x00000f9a, 7880x000200f9,0x00000fd7,0x000200f8,0x00000fd7,
7880x000700f5,0x00000006,0x00003149,0x00000f99, 7890x000700f5,0x00000006,0x00003255,0x00000fd6,
7890x00000f97,0x00000fe2,0x00000fe0,0x000500ac, 7900x00000fd4,0x0000101f,0x0000101d,0x000500ac,
7900x0000002f,0x00000f9d,0x00003149,0x000000a6, 7910x0000002f,0x00000fda,0x00003255,0x000000a6,
7910x000400f6,0x00000fe3,0x00000fe0,0x00000000, 7920x000400f6,0x00001020,0x0000101d,0x00000000,
7920x000400fa,0x00000f9d,0x00000f9e,0x00000fe3, 7930x000400fa,0x00000fda,0x00000fdb,0x00001020,
7930x000200f8,0x00000f9e,0x000200f9,0x00000fa0, 7940x000200f8,0x00000fdb,0x000200f9,0x00000fdd,
7940x000200f8,0x00000fa0,0x000700f5,0x00000006, 7950x000200f8,0x00000fdd,0x000700f5,0x00000006,
7950x0000314b,0x00000b40,0x00000f9e,0x00000fde, 7960x00003257,0x00000b40,0x00000fdb,0x0000101b,
7960x00000fdc,0x000500b0,0x0000002f,0x00000fa4, 7970x00001019,0x000500b0,0x0000002f,0x00000fe1,
7970x0000314b,0x00003143,0x000400f6,0x00000fdf, 7980x00003257,0x0000324f,0x000400f6,0x0000101c,
7980x00000fdc,0x00000000,0x000400fa,0x00000fa4, 7990x00001019,0x00000000,0x000400fa,0x00000fe1,
7990x00000fa5,0x00000fdf,0x000200f8,0x00000fa5, 8000x00000fe2,0x0000101c,0x000200f8,0x00000fe2,
8000x000500c6,0x00000006,0x00000fa8,0x0000314b, 8010x000500c6,0x00000006,0x00000fe5,0x00003257,
8010x00003149,0x000500ac,0x0000002f,0x00000fab, 8020x00003255,0x000500ac,0x0000002f,0x00000fe8,
8020x00000fa8,0x0000314b,0x000300f7,0x00000fdb, 8030x00000fe5,0x00003257,0x000300f7,0x00001018,
8030x00000000,0x000400fa,0x00000fab,0x00000fac, 8040x00000000,0x000400fa,0x00000fe8,0x00000fe9,
8040x00000fdb,0x000200f8,0x00000fac,0x00050041, 8050x00001018,0x000200f8,0x00000fe9,0x00050041,
8050x000006c2,0x00000fae,0x000006af,0x0000314b, 8060x000006c2,0x00000feb,0x000006af,0x00003257,
8060x0004003d,0x00000006,0x00000faf,0x00000fae, 8070x0004003d,0x00000006,0x00000fec,0x00000feb,
8070x00050041,0x000006c2,0x00000fb1,0x000006af, 8080x00050041,0x000006c2,0x00000fee,0x000006af,
8080x00000fa8,0x0004003d,0x00000006,0x00000fb2, 8090x00000fe5,0x0004003d,0x00000006,0x00000fef,
8090x00000fb1,0x00050041,0x000006c2,0x00000fb4, 8100x00000fee,0x00050041,0x000006c2,0x00000ff1,
8100x000006c4,0x0000314b,0x0004003d,0x00000006, 8110x000006c4,0x00003257,0x0004003d,0x00000006,
8110x00000fb5,0x00000fb4,0x00050041,0x000006c2, 8120x00000ff2,0x00000ff1,0x00050041,0x000006c2,
8120x00000fb7,0x000006c4,0x00000fa8,0x0004003d, 8130x00000ff4,0x000006c4,0x00000fe5,0x0004003d,
8130x00000006,0x00000fb8,0x00000fb7,0x000500ac, 8140x00000006,0x00000ff5,0x00000ff4,0x000500ac,
8140x0000002f,0x00000fbb,0x00000faf,0x00000fb2, 8150x0000002f,0x00000ff8,0x00000fec,0x00000fef,
8150x000400a8,0x0000002f,0x00000fbc,0x00000fbb, 8160x000400a8,0x0000002f,0x00000ff9,0x00000ff8,
8160x000300f7,0x00000fc5,0x00000000,0x000400fa, 8170x000300f7,0x00001002,0x00000000,0x000400fa,
8170x00000fbc,0x00000fbd,0x00000fc5,0x000200f8, 8180x00000ff9,0x00000ffa,0x00001002,0x000200f8,
8180x00000fbd,0x000500aa,0x0000002f,0x00000fc0, 8190x00000ffa,0x000500aa,0x0000002f,0x00000ffd,
8190x00000faf,0x00000fb2,0x000500ac,0x0000002f, 8200x00000fec,0x00000fef,0x000500ac,0x0000002f,
8200x00000fc3,0x00000fb5,0x00000fb8,0x000500a7, 8210x00001000,0x00000ff2,0x00000ff5,0x000500a7,
8210x0000002f,0x00000fc4,0x00000fc0,0x00000fc3, 8220x0000002f,0x00001001,0x00000ffd,0x00001000,
8220x000200f9,0x00000fc5,0x000200f8,0x00000fc5, 8230x000200f9,0x00001002,0x000200f8,0x00001002,
8230x000700f5,0x0000002f,0x00000fc6,0x00000fbb, 8240x000700f5,0x0000002f,0x00001003,0x00000ff8,
8240x00000fac,0x00000fc4,0x00000fbd,0x000500c7, 8250x00000fe9,0x00001001,0x00000ffa,0x000500c7,
8250x00000006,0x00000fca,0x0000314b,0x00003146, 8260x00000006,0x00001007,0x00003257,0x00003252,
8260x000500aa,0x0000002f,0x00000fcb,0x00000fca, 8270x000500aa,0x0000002f,0x00001008,0x00001007,
8270x000000a6,0x000500a4,0x0000002f,0x00000fcc, 8280x000000a6,0x000500a4,0x0000002f,0x00001009,
8280x00000fc6,0x00000fcb,0x000300f7,0x00000fda, 8290x00001003,0x00001008,0x000300f7,0x00001017,
8290x00000000,0x000400fa,0x00000fcc,0x00000fcd, 8300x00000000,0x000400fa,0x00001009,0x0000100a,
8300x00000fda,0x000200f8,0x00000fcd,0x0003003e, 8310x00001017,0x000200f8,0x0000100a,0x0003003e,
8310x00000fae,0x00000fb2,0x0003003e,0x00000fb1, 8320x00000feb,0x00000fef,0x0003003e,0x00000fee,
8320x00000faf,0x0003003e,0x00000fb4,0x00000fb8, 8330x00000fec,0x0003003e,0x00000ff1,0x00000ff5,
8330x0003003e,0x00000fb7,0x00000fb5,0x000200f9, 8340x0003003e,0x00000ff4,0x00000ff2,0x000200f9,
8340x00000fda,0x000200f8,0x00000fda,0x000200f9, 8350x00001017,0x000200f8,0x00001017,0x000200f9,
8350x00000fdb,0x000200f8,0x00000fdb,0x000200f9, 8360x00001018,0x000200f8,0x00001018,0x000200f9,
8360x00000fdc,0x000200f8,0x00000fdc,0x00050080, 8370x00001019,0x000200f8,0x00001019,0x00050080,
8370x00000006,0x00000fde,0x0000314b,0x00000107, 8380x00000006,0x0000101b,0x00003257,0x00000107,
8380x000200f9,0x00000fa0,0x000200f8,0x00000fdf, 8390x000200f9,0x00000fdd,0x000200f8,0x0000101c,
8390x000400e0,0x00000170,0x00000170,0x000006da, 8400x000400e0,0x00000170,0x00000170,0x000006da,
8400x000200f9,0x00000fe0,0x000200f8,0x00000fe0, 8410x000200f9,0x0000101d,0x000200f8,0x0000101d,
8410x000500c2,0x00000006,0x00000fe2,0x00003149, 8420x000500c2,0x00000006,0x0000101f,0x00003255,
8420x00000154,0x000200f9,0x00000f9a,0x000200f8, 8430x00000154,0x000200f9,0x00000fd7,0x000200f8,
8430x00000fe3,0x000200f9,0x00000fe4,0x000200f8, 8440x00001020,0x000200f9,0x00001021,0x000200f8,
8440x00000fe4,0x000500c4,0x00000006,0x00000fe6, 8450x00001021,0x000500c4,0x00000006,0x00001023,
8450x00003146,0x00000154,0x000200f9,0x00000f92, 8460x00003252,0x00000154,0x000200f9,0x00000fcf,
8460x000200f8,0x00000fe7,0x000200f9,0x00000fe9, 8470x000200f8,0x00001024,0x000200f9,0x00001026,
8470x000200f8,0x00000fe9,0x000700f5,0x00000006, 8480x000200f8,0x00001026,0x000700f5,0x00000006,
8480x00003148,0x00000b40,0x00000fe7,0x00001005, 8490x00003254,0x00000b40,0x00001024,0x00001042,
8490x00000fee,0x000500b0,0x0000002f,0x00000fed, 8500x0000102b,0x000500b0,0x0000002f,0x0000102a,
8500x00003148,0x00000f5c,0x000400f6,0x00001006, 8510x00003254,0x00000f99,0x000400f6,0x00001043,
8510x00000fee,0x00000000,0x000400fa,0x00000fed, 8520x0000102b,0x00000000,0x000400fa,0x0000102a,
8520x00000fee,0x00001006,0x000200f8,0x00000fee, 8530x0000102b,0x00001043,0x000200f8,0x0000102b,
8530x00050084,0x00000006,0x00000ff1,0x0000010a, 8540x00050084,0x00000006,0x0000102e,0x0000010a,
8540x00003148,0x00050080,0x00000006,0x00000ff2, 8550x00003254,0x00050080,0x00000006,0x0000102f,
8550x00000107,0x00000ff1,0x00050041,0x00000156, 8560x00000107,0x0000102e,0x00050041,0x00000156,
8560x00000ff4,0x000000fc,0x00000154,0x0004003d, 8570x00001031,0x000000fc,0x00000154,0x0004003d,
8570x00000007,0x00000ff5,0x00000ff4,0x00050041, 8580x00000007,0x00001032,0x00001031,0x00050041,
8580x000006c2,0x00000ff6,0x000006af,0x00003148, 8590x000006c2,0x00001033,0x000006af,0x00003254,
8590x0004003d,0x00000006,0x00000ff7,0x00000ff6, 8600x0004003d,0x00000006,0x00001034,0x00001033,
8600x00050051,0x00000006,0x00001068,0x00000ff5, 8610x00050051,0x00000006,0x000010a5,0x00001032,
8610x00000000,0x00050095,0x000000ab,0x0000106a, 8620x00000000,0x00050095,0x000000ab,0x000010a7,
8620x00001068,0x00000ff2,0x00050051,0x00000006, 8630x000010a5,0x0000102f,0x00050051,0x00000006,
8630x0000106b,0x0000106a,0x00000001,0x00050051, 8640x000010a8,0x000010a7,0x00000001,0x00050051,
8640x00000006,0x0000106c,0x0000106a,0x00000000, 8650x00000006,0x000010a9,0x000010a7,0x00000000,
8650x00050051,0x00000006,0x0000106f,0x00000ff5, 8660x00050051,0x00000006,0x000010ac,0x00001032,
8660x00000001,0x00050080,0x00000006,0x00001071, 8670x00000001,0x00050080,0x00000006,0x000010ae,
8670x0000106f,0x0000106b,0x00050050,0x00000007, 8680x000010ac,0x000010a8,0x00050050,0x00000007,
8680x00001072,0x0000106c,0x00001071,0x0004007c, 8690x000010af,0x000010a9,0x000010ae,0x0004007c,
8690x00000014,0x00001062,0x00001072,0x00060041, 8700x00000014,0x0000109f,0x000010af,0x00060041,
8700x000000db,0x0000105a,0x00001062,0x000000da, 8710x000000db,0x00001097,0x0000109f,0x000000da,
8710x000000da,0x0005003e,0x0000105a,0x00000ff7, 8720x000000da,0x0005003e,0x00001097,0x00001034,
8720x00000002,0x00000004,0x00050084,0x00000006, 8730x00000002,0x00000004,0x00050084,0x00000006,
8730x00001077,0x0000010a,0x00000f5c,0x00050080, 8740x000010b4,0x0000010a,0x00000f99,0x00050080,
8740x00000006,0x00001078,0x00000107,0x00001077, 8750x00000006,0x000010b5,0x00000107,0x000010b4,
8750x00050080,0x00000006,0x00000ffc,0x00001078, 8760x00050080,0x00000006,0x00001039,0x000010b5,
8760x00000ff1,0x00050041,0x000006c2,0x00001000, 8770x0000102e,0x00050041,0x000006c2,0x0000103d,
8770x000006c4,0x00003148,0x0004003d,0x00000006, 8780x000006c4,0x00003254,0x0004003d,0x00000006,
8780x00001001,0x00001000,0x00050095,0x000000ab, 8790x0000103e,0x0000103d,0x00050095,0x000000ab,
8790x00001090,0x00001068,0x00000ffc,0x00050051, 8800x000010cd,0x000010a5,0x00001039,0x00050051,
8800x00000006,0x00001091,0x00001090,0x00000001, 8810x00000006,0x000010ce,0x000010cd,0x00000001,
8810x00050051,0x00000006,0x00001092,0x00001090, 8820x00050051,0x00000006,0x000010cf,0x000010cd,
8820x00000000,0x00050080,0x00000006,0x00001097, 8830x00000000,0x00050080,0x00000006,0x000010d4,
8830x0000106f,0x00001091,0x00050050,0x00000007, 8840x000010ac,0x000010ce,0x00050050,0x00000007,
8840x00001098,0x00001092,0x00001097,0x0004007c, 8850x000010d5,0x000010cf,0x000010d4,0x0004007c,
8850x00000014,0x00001088,0x00001098,0x00060041, 8860x00000014,0x000010c5,0x000010d5,0x00060041,
8860x000000db,0x00001080,0x00001088,0x000000da, 8870x000000db,0x000010bd,0x000010c5,0x000000da,
8870x000000da,0x0005003e,0x00001080,0x00001001, 8880x000000da,0x0005003e,0x000010bd,0x0000103e,
8880x00000002,0x00000004,0x00050080,0x00000006, 8890x00000002,0x00000004,0x00050080,0x00000006,
8890x00001005,0x00003148,0x00000107,0x000200f9, 8900x00001042,0x00003254,0x00000107,0x000200f9,
8900x00000fe9,0x000200f8,0x00001006,0x000200f9, 8910x00001026,0x000200f8,0x00001043,0x000200f9,
8910x00000bb6,0x000200f8,0x00000b3d,0x000500aa, 8920x00000bf3,0x000200f8,0x00000b3d,0x000500aa,
8920x0000002f,0x00000b45,0x00000b13,0x00000239, 8930x0000002f,0x00000b45,0x00000b13,0x00000239,
8930x000300f7,0x00000b47,0x00000000,0x000400fa, 8940x000300f7,0x00000b47,0x00000000,0x000400fa,
8940x00000b45,0x00000b46,0x00000b47,0x000200f8, 8950x00000b45,0x00000b46,0x00000b47,0x000200f8,
@@ -896,3095 +897,3196 @@
8960x00000b11,0x000000a6,0x000300f7,0x00000b4b, 8970x00000b11,0x000000a6,0x000300f7,0x00000b4b,
8970x00000000,0x000400fa,0x00000b49,0x00000b4a, 8980x00000000,0x000400fa,0x00000b49,0x00000b4a,
8980x00000b4b,0x000200f8,0x00000b4a,0x00050041, 8990x00000b4b,0x000200f8,0x00000b4a,0x00050041,
8990x000000fe,0x000010d1,0x000000fc,0x00000308, 9000x000000fe,0x0000110e,0x000000fc,0x00000308,
9000x0004003d,0x00000006,0x000010d2,0x000010d1, 9010x0004003d,0x00000006,0x0000110f,0x0000110e,
9010x00050041,0x000000fe,0x000010d3,0x000000fc, 9020x00050041,0x000000fe,0x00001110,0x000000fc,
9020x0000096c,0x0004003d,0x00000006,0x000010d4, 9030x0000096c,0x0004003d,0x00000006,0x00001111,
9030x000010d3,0x00050080,0x00000006,0x000010d6, 9040x00001110,0x00050080,0x00000006,0x00001113,
9040x000010d4,0x000010d2,0x00050041,0x000000fe, 9050x00001111,0x0000110f,0x00050041,0x000000fe,
9050x00001167,0x000000fc,0x000000fd,0x0004003d, 9060x000011a4,0x000000fc,0x000000fd,0x0004003d,
9060x00000006,0x00001168,0x00001167,0x00050084, 9070x00000006,0x000011a5,0x000011a4,0x00050084,
9070x00000006,0x00001169,0x0000011f,0x00001168, 9080x00000006,0x000011a6,0x0000011f,0x000011a5,
9080x00050080,0x00000006,0x0000116a,0x00000107, 9090x00050080,0x00000006,0x000011a7,0x00000107,
9090x00001169,0x00050080,0x00000006,0x00001170, 9100x000011a6,0x00050080,0x00000006,0x000011ad,
9100x00001168,0x0000319c,0x00050086,0x00000006, 9110x000011a5,0x000032a8,0x00050086,0x00000006,
9110x00001171,0x00001170,0x00000101,0x00050084, 9120x000011ae,0x000011ad,0x00000101,0x00050084,
9120x00000006,0x00001163,0x00000107,0x00001171, 9130x00000006,0x000011a0,0x00000107,0x000011ae,
9130x00050080,0x00000006,0x00001164,0x0000116a, 9140x00050080,0x00000006,0x000011a1,0x000011a7,
9140x00001163,0x00050084,0x00000006,0x00001138, 9150x000011a0,0x00050084,0x00000006,0x00001175,
9150x00000150,0x000010d6,0x00050080,0x00000006, 9160x00000150,0x00001113,0x00050080,0x00000006,
9160x00001139,0x00001164,0x00001138,0x00050041, 9170x00001176,0x000011a1,0x00001175,0x00050041,
9170x00000156,0x0000113a,0x000000fc,0x00000154, 9180x00000156,0x00001177,0x000000fc,0x00000154,
9180x0004003d,0x00000007,0x0000113b,0x0000113a, 9190x0004003d,0x00000007,0x00001178,0x00001177,
9190x00050051,0x00000006,0x00001188,0x0000113b, 9200x00050051,0x00000006,0x000011c5,0x00001178,
9200x00000000,0x00050095,0x000000ab,0x0000118a, 9210x00000000,0x00050095,0x000000ab,0x000011c7,
9210x00001188,0x00001139,0x00050051,0x00000006, 9220x000011c5,0x00001176,0x00050051,0x00000006,
9220x0000118b,0x0000118a,0x00000001,0x00050051, 9230x000011c8,0x000011c7,0x00000001,0x00050051,
9230x00000006,0x0000118c,0x0000118a,0x00000000, 9240x00000006,0x000011c9,0x000011c7,0x00000000,
9240x00050051,0x00000006,0x0000118f,0x0000113b, 9250x00050051,0x00000006,0x000011cc,0x00001178,
9250x00000001,0x00050080,0x00000006,0x00001191, 9260x00000001,0x00050080,0x00000006,0x000011ce,
9260x0000118f,0x0000118b,0x00050050,0x00000007, 9270x000011cc,0x000011c8,0x00050050,0x00000007,
9270x00001192,0x0000118c,0x00001191,0x0004007c, 9280x000011cf,0x000011c9,0x000011ce,0x0004007c,
9280x00000014,0x00001182,0x00001192,0x00060041, 9290x00000014,0x000011bf,0x000011cf,0x00060041,
9290x000000db,0x00001179,0x00001182,0x000000da, 9300x000000db,0x000011b6,0x000011bf,0x000000da,
9300x000000da,0x0006003d,0x00000006,0x0000117a, 9310x000000da,0x0006003d,0x00000006,0x000011b7,
9310x00001179,0x00000002,0x00000004,0x00050080, 9320x000011b6,0x00000002,0x00000004,0x00050080,
9320x00000006,0x00001140,0x00001139,0x0000010a, 9330x00000006,0x0000117d,0x00001176,0x0000010a,
9330x00050095,0x000000ab,0x000011ab,0x00001188, 9340x00050095,0x000000ab,0x000011e8,0x000011c5,
9340x00001140,0x00050051,0x00000006,0x000011ac, 9350x0000117d,0x00050051,0x00000006,0x000011e9,
9350x000011ab,0x00000001,0x00050051,0x00000006, 9360x000011e8,0x00000001,0x00050051,0x00000006,
9360x000011ad,0x000011ab,0x00000000,0x00050080, 9370x000011ea,0x000011e8,0x00000000,0x00050080,
9370x00000006,0x000011b2,0x0000118f,0x000011ac, 9380x00000006,0x000011ef,0x000011cc,0x000011e9,
9380x00050050,0x00000007,0x000011b3,0x000011ad, 9390x00050050,0x00000007,0x000011f0,0x000011ea,
9390x000011b2,0x0004007c,0x00000014,0x000011a3, 9400x000011ef,0x0004007c,0x00000014,0x000011e0,
9400x000011b3,0x00060041,0x000000db,0x0000119a, 9410x000011f0,0x00060041,0x000000db,0x000011d7,
9410x000011a3,0x000000da,0x000000da,0x0006003d, 9420x000011e0,0x000000da,0x000000da,0x0006003d,
9420x00000006,0x0000119b,0x0000119a,0x00000002, 9430x00000006,0x000011d8,0x000011d7,0x00000002,
9430x00000004,0x00050080,0x00000006,0x00001146, 9440x00000004,0x00050080,0x00000006,0x00001183,
9440x00001139,0x00000111,0x00050095,0x000000ab, 9450x00001176,0x00000111,0x00050095,0x000000ab,
9450x000011cc,0x00001188,0x00001146,0x00050051, 9460x00001209,0x000011c5,0x00001183,0x00050051,
9460x00000006,0x000011cd,0x000011cc,0x00000001, 9470x00000006,0x0000120a,0x00001209,0x00000001,
9470x00050051,0x00000006,0x000011ce,0x000011cc, 9480x00050051,0x00000006,0x0000120b,0x00001209,
9480x00000000,0x00050080,0x00000006,0x000011d3, 9490x00000000,0x00050080,0x00000006,0x00001210,
9490x0000118f,0x000011cd,0x00050050,0x00000007, 9500x000011cc,0x0000120a,0x00050050,0x00000007,
9500x000011d4,0x000011ce,0x000011d3,0x0004007c, 9510x00001211,0x0000120b,0x00001210,0x0004007c,
9510x00000014,0x000011c4,0x000011d4,0x00060041, 9520x00000014,0x00001201,0x00001211,0x00060041,
9520x000000db,0x000011bb,0x000011c4,0x000000da, 9530x000000db,0x000011f8,0x00001201,0x000000da,
9530x000000da,0x0006003d,0x00000006,0x000011bc, 9540x000000da,0x0006003d,0x00000006,0x000011f9,
9540x000011bb,0x00000002,0x00000004,0x00050080, 9550x000011f8,0x00000002,0x00000004,0x00050080,
9550x00000006,0x0000114d,0x00001139,0x00000118, 9560x00000006,0x0000118a,0x00001176,0x00000118,
9560x00050095,0x000000ab,0x000011ed,0x00001188, 9570x00050095,0x000000ab,0x0000122a,0x000011c5,
9570x0000114d,0x00050051,0x00000006,0x000011ee, 9580x0000118a,0x00050051,0x00000006,0x0000122b,
9580x000011ed,0x00000001,0x00050051,0x00000006, 9590x0000122a,0x00000001,0x00050051,0x00000006,
9590x000011ef,0x000011ed,0x00000000,0x00050080, 9600x0000122c,0x0000122a,0x00000000,0x00050080,
9600x00000006,0x000011f4,0x0000118f,0x000011ee, 9610x00000006,0x00001231,0x000011cc,0x0000122b,
9610x00050050,0x00000007,0x000011f5,0x000011ef, 9620x00050050,0x00000007,0x00001232,0x0000122c,
9620x000011f4,0x0004007c,0x00000014,0x000011e5, 9630x00001231,0x0004007c,0x00000014,0x00001222,
9630x000011f5,0x00060041,0x000000db,0x000011dc, 9640x00001232,0x00060041,0x000000db,0x00001219,
9640x000011e5,0x000000da,0x000000da,0x0006003d, 9650x00001222,0x000000da,0x000000da,0x0006003d,
9650x00000006,0x000011dd,0x000011dc,0x00000002, 9660x00000006,0x0000121a,0x00001219,0x00000002,
9660x00000004,0x00050080,0x00000006,0x00001153, 9670x00000004,0x00050080,0x00000006,0x00001190,
9670x00001139,0x0000011f,0x00050095,0x000000ab, 9680x00001176,0x0000011f,0x00050095,0x000000ab,
9680x0000120e,0x00001188,0x00001153,0x00050051, 9690x0000124b,0x000011c5,0x00001190,0x00050051,
9690x00000006,0x0000120f,0x0000120e,0x00000001, 9700x00000006,0x0000124c,0x0000124b,0x00000001,
9700x00050051,0x00000006,0x00001210,0x0000120e, 9710x00050051,0x00000006,0x0000124d,0x0000124b,
9710x00000000,0x00050080,0x00000006,0x00001215, 9720x00000000,0x00050080,0x00000006,0x00001252,
9720x0000118f,0x0000120f,0x00050050,0x00000007, 9730x000011cc,0x0000124c,0x00050050,0x00000007,
9730x00001216,0x00001210,0x00001215,0x0004007c, 9740x00001253,0x0000124d,0x00001252,0x0004007c,
9740x00000014,0x00001206,0x00001216,0x00060041, 9750x00000014,0x00001243,0x00001253,0x00060041,
9750x000000db,0x000011fd,0x00001206,0x000000da, 9760x000000db,0x0000123a,0x00001243,0x000000da,
9760x000000da,0x0006003d,0x00000006,0x000011fe, 9770x000000da,0x0006003d,0x00000006,0x0000123b,
9770x000011fd,0x00000002,0x00000004,0x00050080, 9780x0000123a,0x00000002,0x00000004,0x00050080,
9780x00000006,0x00001159,0x00001139,0x00000189, 9790x00000006,0x00001196,0x00001176,0x00000189,
9790x00050095,0x000000ab,0x0000122f,0x00001188, 9800x00050095,0x000000ab,0x0000126c,0x000011c5,
9800x00001159,0x00050051,0x00000006,0x00001230, 9810x00001196,0x00050051,0x00000006,0x0000126d,
9810x0000122f,0x00000001,0x00050051,0x00000006, 9820x0000126c,0x00000001,0x00050051,0x00000006,
9820x00001231,0x0000122f,0x00000000,0x00050080, 9830x0000126e,0x0000126c,0x00000000,0x00050080,
9830x00000006,0x00001236,0x0000118f,0x00001230, 9840x00000006,0x00001273,0x000011cc,0x0000126d,
9840x00050050,0x00000007,0x00001237,0x00001231, 9850x00050050,0x00000007,0x00001274,0x0000126e,
9850x00001236,0x0004007c,0x00000014,0x00001227, 9860x00001273,0x0004007c,0x00000014,0x00001264,
9860x00001237,0x00060041,0x000000db,0x0000121e, 9870x00001274,0x00060041,0x000000db,0x0000125b,
9870x00001227,0x000000da,0x000000da,0x0006003d, 9880x00001264,0x000000da,0x000000da,0x0006003d,
9880x00000006,0x0000121f,0x0000121e,0x00000002, 9890x00000006,0x0000125c,0x0000125b,0x00000002,
9890x00000004,0x00050041,0x000000fe,0x000010da, 9900x00000004,0x00050041,0x000000fe,0x00001117,
9900x000000fc,0x00000224,0x0004003d,0x00000006, 9910x000000fc,0x00000224,0x0004003d,0x00000006,
9910x000010db,0x000010da,0x000500ab,0x0000002f, 9920x00001118,0x00001117,0x000500ab,0x0000002f,
9920x000010dc,0x000010db,0x000000a6,0x000600a9, 9930x00001119,0x00001118,0x000000a6,0x000600a9,
9930x00000006,0x000010dd,0x000010dc,0x000000a6, 9940x00000006,0x0000111a,0x00001119,0x000000a6,
9940x00000130,0x000500c5,0x00000006,0x000010de, 9950x00000130,0x000500c5,0x00000006,0x0000111b,
9950x000010dd,0x00000239,0x00050041,0x00000156, 9960x0000111a,0x00000239,0x00050041,0x00000156,
9960x000010df,0x000000fc,0x000000da,0x0004003d, 9970x0000111c,0x000000fc,0x000000da,0x0004003d,
9970x00000007,0x000010e0,0x000010df,0x00050051, 9980x00000007,0x0000111d,0x0000111c,0x00050051,
9980x00000006,0x0000124d,0x000010e0,0x00000000, 9990x00000006,0x0000128a,0x0000111d,0x00000000,
9990x00050095,0x000000ab,0x0000124f,0x0000124d, 10000x00050095,0x000000ab,0x0000128c,0x0000128a,
10000x000000a6,0x00050051,0x00000006,0x00001250, 10010x000000a6,0x00050051,0x00000006,0x0000128d,
10010x0000124f,0x00000001,0x00050051,0x00000006, 10020x0000128c,0x00000001,0x00050051,0x00000006,
10020x00001251,0x0000124f,0x00000000,0x00050051, 10030x0000128e,0x0000128c,0x00000000,0x00050051,
10030x00000006,0x00001254,0x000010e0,0x00000001, 10040x00000006,0x00001291,0x0000111d,0x00000001,
10040x00050080,0x00000006,0x00001256,0x00001254, 10050x00050080,0x00000006,0x00001293,0x00001291,
10050x00001250,0x00050050,0x00000007,0x00001257, 10060x0000128d,0x00050050,0x00000007,0x00001294,
10060x00001251,0x00001256,0x0004007c,0x00000014, 10070x0000128e,0x00001293,0x0004007c,0x00000014,
10070x00001247,0x00001257,0x00060041,0x000000db, 10080x00001284,0x00001294,0x00060041,0x000000db,
10080x0000123f,0x00001247,0x000000da,0x000000da, 10090x0000127c,0x00001284,0x000000da,0x000000da,
10090x0005003e,0x0000123f,0x000010de,0x00000002, 10100x0005003e,0x0000127c,0x0000111b,0x00000002,
10100x00000004,0x00050041,0x000000fe,0x000010e2, 10110x00000004,0x00050041,0x000000fe,0x0000111f,
10110x000000fc,0x00000a97,0x0004003d,0x00000006, 10120x000000fc,0x00000a97,0x0004003d,0x00000006,
10120x000010e3,0x000010e2,0x00050086,0x00000006, 10130x00001120,0x0000111f,0x00050086,0x00000006,
10130x000010e4,0x000010e3,0x00000107,0x00050095, 10140x00001121,0x00001120,0x00000107,0x00050095,
10140x000000ab,0x0000126f,0x0000124d,0x0000010a, 10150x000000ab,0x000012ac,0x0000128a,0x0000010a,
10150x00050051,0x00000006,0x00001270,0x0000126f, 10160x00050051,0x00000006,0x000012ad,0x000012ac,
10160x00000001,0x00050051,0x00000006,0x00001271, 10170x00000001,0x00050051,0x00000006,0x000012ae,
10170x0000126f,0x00000000,0x00050080,0x00000006, 10180x000012ac,0x00000000,0x00050080,0x00000006,
10180x00001276,0x00001254,0x00001270,0x00050050, 10190x000012b3,0x00001291,0x000012ad,0x00050050,
10190x00000007,0x00001277,0x00001271,0x00001276, 10200x00000007,0x000012b4,0x000012ae,0x000012b3,
10200x0004007c,0x00000014,0x00001267,0x00001277, 10210x0004007c,0x00000014,0x000012a4,0x000012b4,
10210x00060041,0x000000db,0x0000125f,0x00001267, 10220x00060041,0x000000db,0x0000129c,0x000012a4,
10220x000000da,0x000000da,0x0005003e,0x0000125f, 10230x000000da,0x000000da,0x0005003e,0x0000129c,
10230x000010e4,0x00000002,0x00000004,0x00050095, 10240x00001121,0x00000002,0x00000004,0x00050095,
10240x000000ab,0x0000128f,0x0000124d,0x00000111, 10250x000000ab,0x000012cc,0x0000128a,0x00000111,
10250x00050051,0x00000006,0x00001290,0x0000128f, 10260x00050051,0x00000006,0x000012cd,0x000012cc,
10260x00000001,0x00050051,0x00000006,0x00001291, 10270x00000001,0x00050051,0x00000006,0x000012ce,
10270x0000128f,0x00000000,0x00050080,0x00000006, 10280x000012cc,0x00000000,0x00050080,0x00000006,
10280x00001296,0x00001254,0x00001290,0x00050050, 10290x000012d3,0x00001291,0x000012cd,0x00050050,
10290x00000007,0x00001297,0x00001291,0x00001296, 10300x00000007,0x000012d4,0x000012ce,0x000012d3,
10300x0004007c,0x00000014,0x00001287,0x00001297, 10310x0004007c,0x00000014,0x000012c4,0x000012d4,
10310x00060041,0x000000db,0x0000127f,0x00001287, 10320x00060041,0x000000db,0x000012bc,0x000012c4,
10320x000000da,0x000000da,0x0005003e,0x0000127f, 10330x000000da,0x000000da,0x0005003e,0x000012bc,
10330x000000a6,0x00000002,0x00000004,0x00050095, 10340x000000a6,0x00000002,0x00000004,0x00050095,
10340x000000ab,0x000012af,0x0000124d,0x00000118, 10350x000000ab,0x000012ec,0x0000128a,0x00000118,
10350x00050051,0x00000006,0x000012b0,0x000012af, 10360x00050051,0x00000006,0x000012ed,0x000012ec,
10360x00000001,0x00050051,0x00000006,0x000012b1, 10370x00000001,0x00050051,0x00000006,0x000012ee,
10370x000012af,0x00000000,0x00050080,0x00000006, 10380x000012ec,0x00000000,0x00050080,0x00000006,
10380x000012b6,0x00001254,0x000012b0,0x00050050, 10390x000012f3,0x00001291,0x000012ed,0x00050050,
10390x00000007,0x000012b7,0x000012b1,0x000012b6, 10400x00000007,0x000012f4,0x000012ee,0x000012f3,
10400x0004007c,0x00000014,0x000012a7,0x000012b7, 10410x0004007c,0x00000014,0x000012e4,0x000012f4,
10410x00060041,0x000000db,0x0000129f,0x000012a7, 10420x00060041,0x000000db,0x000012dc,0x000012e4,
10420x000000da,0x000000da,0x0005003e,0x0000129f, 10430x000000da,0x000000da,0x0005003e,0x000012dc,
10430x000010d4,0x00000002,0x00000004,0x00050095, 10440x00001111,0x00000002,0x00000004,0x00050095,
10440x000000ab,0x000012d8,0x0000124d,0x0000011f, 10450x000000ab,0x00001315,0x0000128a,0x0000011f,
10450x00050051,0x00000006,0x000012d9,0x000012d8, 10460x00050051,0x00000006,0x00001316,0x00001315,
10460x00000001,0x00050051,0x00000006,0x000012da, 10470x00000001,0x00050051,0x00000006,0x00001317,
10470x000012d8,0x00000000,0x00050080,0x00000006, 10480x00001315,0x00000000,0x00050080,0x00000006,
10480x000012df,0x00001254,0x000012d9,0x00050050, 10490x0000131c,0x00001291,0x00001316,0x00050050,
10490x00000007,0x000012e0,0x000012da,0x000012df, 10500x00000007,0x0000131d,0x00001317,0x0000131c,
10500x0004007c,0x00000014,0x000012d0,0x000012e0, 10510x0004007c,0x00000014,0x0000130d,0x0000131d,
10510x00060041,0x000000db,0x000012c8,0x000012d0, 10520x00060041,0x000000db,0x00001305,0x0000130d,
10520x000000da,0x000000da,0x0005003e,0x000012c8, 10530x000000da,0x000000da,0x0005003e,0x00001305,
10530x0000117a,0x00000002,0x00000004,0x00050095, 10540x000011b7,0x00000002,0x00000004,0x00050095,
10540x000000ab,0x00001301,0x0000124d,0x00000189, 10550x000000ab,0x0000133e,0x0000128a,0x00000189,
10550x00050051,0x00000006,0x00001302,0x00001301, 10560x00050051,0x00000006,0x0000133f,0x0000133e,
10560x00000001,0x00050051,0x00000006,0x00001303, 10570x00000001,0x00050051,0x00000006,0x00001340,
10570x00001301,0x00000000,0x00050080,0x00000006, 10580x0000133e,0x00000000,0x00050080,0x00000006,
10580x00001308,0x00001254,0x00001302,0x00050050, 10590x00001345,0x00001291,0x0000133f,0x00050050,
10590x00000007,0x00001309,0x00001303,0x00001308, 10600x00000007,0x00001346,0x00001340,0x00001345,
10600x0004007c,0x00000014,0x000012f9,0x00001309, 10610x0004007c,0x00000014,0x00001336,0x00001346,
10610x00060041,0x000000db,0x000012f1,0x000012f9, 10620x00060041,0x000000db,0x0000132e,0x00001336,
10620x000000da,0x000000da,0x0005003e,0x000012f1, 10630x000000da,0x000000da,0x0005003e,0x0000132e,
10630x0000119b,0x00000002,0x00000004,0x00050095, 10640x000011d8,0x00000002,0x00000004,0x00050095,
10640x000000ab,0x0000132a,0x0000124d,0x00000150, 10650x000000ab,0x00001367,0x0000128a,0x00000150,
10650x00050051,0x00000006,0x0000132b,0x0000132a, 10660x00050051,0x00000006,0x00001368,0x00001367,
10660x00000001,0x00050051,0x00000006,0x0000132c, 10670x00000001,0x00050051,0x00000006,0x00001369,
10670x0000132a,0x00000000,0x00050080,0x00000006, 10680x00001367,0x00000000,0x00050080,0x00000006,
10680x00001331,0x00001254,0x0000132b,0x00050050, 10690x0000136e,0x00001291,0x00001368,0x00050050,
10690x00000007,0x00001332,0x0000132c,0x00001331, 10700x00000007,0x0000136f,0x00001369,0x0000136e,
10700x0004007c,0x00000014,0x00001322,0x00001332, 10710x0004007c,0x00000014,0x0000135f,0x0000136f,
10710x00060041,0x000000db,0x0000131a,0x00001322, 10720x00060041,0x000000db,0x00001357,0x0000135f,
10720x000000da,0x000000da,0x0005003e,0x0000131a, 10730x000000da,0x000000da,0x0005003e,0x00001357,
10730x000011bc,0x00000002,0x00000004,0x00050095, 10740x000011f9,0x00000002,0x00000004,0x00050095,
10740x000000ab,0x00001353,0x0000124d,0x00000463, 10750x000000ab,0x00001390,0x0000128a,0x00000463,
10750x00050051,0x00000006,0x00001354,0x00001353, 10760x00050051,0x00000006,0x00001391,0x00001390,
10760x00000001,0x00050051,0x00000006,0x00001355, 10770x00000001,0x00050051,0x00000006,0x00001392,
10770x00001353,0x00000000,0x00050080,0x00000006, 10780x00001390,0x00000000,0x00050080,0x00000006,
10780x0000135a,0x00001254,0x00001354,0x00050050, 10790x00001397,0x00001291,0x00001391,0x00050050,
10790x00000007,0x0000135b,0x00001355,0x0000135a, 10800x00000007,0x00001398,0x00001392,0x00001397,
10800x0004007c,0x00000014,0x0000134b,0x0000135b, 10810x0004007c,0x00000014,0x00001388,0x00001398,
10810x00060041,0x000000db,0x00001343,0x0000134b, 10820x00060041,0x000000db,0x00001380,0x00001388,
10820x000000da,0x000000da,0x0005003e,0x00001343, 10830x000000da,0x000000da,0x0005003e,0x00001380,
10830x000011dd,0x00000002,0x00000004,0x00050095, 10840x0000121a,0x00000002,0x00000004,0x00050095,
10840x000000ab,0x0000137c,0x0000124d,0x00000469, 10850x000000ab,0x000013b9,0x0000128a,0x00000469,
10850x00050051,0x00000006,0x0000137d,0x0000137c, 10860x00050051,0x00000006,0x000013ba,0x000013b9,
10860x00000001,0x00050051,0x00000006,0x0000137e, 10870x00000001,0x00050051,0x00000006,0x000013bb,
10870x0000137c,0x00000000,0x00050080,0x00000006, 10880x000013b9,0x00000000,0x00050080,0x00000006,
10880x00001383,0x00001254,0x0000137d,0x00050050, 10890x000013c0,0x00001291,0x000013ba,0x00050050,
10890x00000007,0x00001384,0x0000137e,0x00001383, 10900x00000007,0x000013c1,0x000013bb,0x000013c0,
10900x0004007c,0x00000014,0x00001374,0x00001384, 10910x0004007c,0x00000014,0x000013b1,0x000013c1,
10910x00060041,0x000000db,0x0000136c,0x00001374, 10920x00060041,0x000000db,0x000013a9,0x000013b1,
10920x000000da,0x000000da,0x0005003e,0x0000136c, 10930x000000da,0x000000da,0x0005003e,0x000013a9,
10930x000011fe,0x00000002,0x00000004,0x00050095, 10940x0000123b,0x00000002,0x00000004,0x00050095,
10940x000000ab,0x000013a5,0x0000124d,0x00000347, 10950x000000ab,0x000013e2,0x0000128a,0x00000347,
10950x00050051,0x00000006,0x000013a6,0x000013a5, 10960x00050051,0x00000006,0x000013e3,0x000013e2,
10960x00000001,0x00050051,0x00000006,0x000013a7, 10970x00000001,0x00050051,0x00000006,0x000013e4,
10970x000013a5,0x00000000,0x00050080,0x00000006, 10980x000013e2,0x00000000,0x00050080,0x00000006,
10980x000013ac,0x00001254,0x000013a6,0x00050050, 10990x000013e9,0x00001291,0x000013e3,0x00050050,
10990x00000007,0x000013ad,0x000013a7,0x000013ac, 11000x00000007,0x000013ea,0x000013e4,0x000013e9,
11000x0004007c,0x00000014,0x0000139d,0x000013ad, 11010x0004007c,0x00000014,0x000013da,0x000013ea,
11010x00060041,0x000000db,0x00001395,0x0000139d, 11020x00060041,0x000000db,0x000013d2,0x000013da,
11020x000000da,0x000000da,0x0005003e,0x00001395, 11030x000000da,0x000000da,0x0005003e,0x000013d2,
11030x0000121f,0x00000002,0x00000004,0x00050041, 11040x0000125c,0x00000002,0x00000004,0x00050041,
11040x000000fe,0x00001110,0x000000fc,0x0000023e, 11050x000000fe,0x0000114d,0x000000fc,0x0000023e,
11050x0004003d,0x00000006,0x00001111,0x00001110, 11060x0004003d,0x00000006,0x0000114e,0x0000114d,
11060x00050095,0x000000ab,0x000013c5,0x0000124d, 11070x00050095,0x000000ab,0x00001402,0x0000128a,
11070x00000352,0x00050051,0x00000006,0x000013c6, 11080x00000352,0x00050051,0x00000006,0x00001403,
11080x000013c5,0x00000001,0x00050051,0x00000006, 11090x00001402,0x00000001,0x00050051,0x00000006,
11090x000013c7,0x000013c5,0x00000000,0x00050080, 11100x00001404,0x00001402,0x00000000,0x00050080,
11100x00000006,0x000013cc,0x00001254,0x000013c6, 11110x00000006,0x00001409,0x00001291,0x00001403,
11110x00050050,0x00000007,0x000013cd,0x000013c7, 11120x00050050,0x00000007,0x0000140a,0x00001404,
11120x000013cc,0x0004007c,0x00000014,0x000013bd, 11130x00001409,0x0004007c,0x00000014,0x000013fa,
11130x000013cd,0x00060041,0x000000db,0x000013b5, 11140x0000140a,0x00060041,0x000000db,0x000013f2,
11140x000013bd,0x000000da,0x000000da,0x0005003e, 11150x000013fa,0x000000da,0x000000da,0x0005003e,
11150x000013b5,0x00001111,0x00000002,0x00000004, 11160x000013f2,0x0000114e,0x00000002,0x00000004,
11160x00050095,0x000000ab,0x000013e5,0x0000124d, 11170x00050095,0x000000ab,0x00001422,0x0000128a,
11170x0000035d,0x00050051,0x00000006,0x000013e6, 11180x0000035d,0x00050051,0x00000006,0x00001423,
11180x000013e5,0x00000001,0x00050051,0x00000006, 11190x00001422,0x00000001,0x00050051,0x00000006,
11190x000013e7,0x000013e5,0x00000000,0x00050080, 11200x00001424,0x00001422,0x00000000,0x00050080,
11200x00000006,0x000013ec,0x00001254,0x000013e6, 11210x00000006,0x00001429,0x00001291,0x00001423,
11210x00050050,0x00000007,0x000013ed,0x000013e7, 11220x00050050,0x00000007,0x0000142a,0x00001424,
11220x000013ec,0x0004007c,0x00000014,0x000013dd, 11230x00001429,0x0004007c,0x00000014,0x0000141a,
11230x000013ed,0x00060041,0x000000db,0x000013d5, 11240x0000142a,0x00060041,0x000000db,0x00001412,
11240x000013dd,0x000000da,0x000000da,0x0005003e, 11250x0000141a,0x000000da,0x000000da,0x0005003e,
11250x000013d5,0x000000a6,0x00000002,0x00000004, 11260x00001412,0x000000a6,0x00000002,0x00000004,
11260x00050084,0x00000006,0x000013f3,0x000010d2, 11270x00050084,0x00000006,0x00001430,0x0000110f,
11270x00000228,0x00050080,0x00000006,0x000013f4, 11280x00000228,0x00050080,0x00000006,0x00001431,
11280x00001111,0x000013f3,0x000500c2,0x00000006, 11290x0000114e,0x00001430,0x000500c2,0x00000006,
11290x000013f5,0x000013f4,0x00000233,0x000500c4, 11300x00001432,0x00001431,0x00000233,0x000500c4,
11300x00000006,0x000013f6,0x000013f5,0x0000020d, 11310x00000006,0x00001433,0x00001432,0x0000020d,
11310x000500c5,0x00000006,0x000013f7,0x000013f6, 11320x000500c5,0x00000006,0x00001434,0x00001433,
11320x00000246,0x00050095,0x000000ab,0x0000140f, 11330x00000246,0x00050095,0x000000ab,0x0000144c,
11330x0000124d,0x00000368,0x00050051,0x00000006, 11340x0000128a,0x00000368,0x00050051,0x00000006,
11340x00001410,0x0000140f,0x00000001,0x00050051, 11350x0000144d,0x0000144c,0x00000001,0x00050051,
11350x00000006,0x00001411,0x0000140f,0x00000000, 11360x00000006,0x0000144e,0x0000144c,0x00000000,
11360x00050080,0x00000006,0x00001416,0x00001254, 11370x00050080,0x00000006,0x00001453,0x00001291,
11370x00001410,0x00050050,0x00000007,0x00001417, 11380x0000144d,0x00050050,0x00000007,0x00001454,
11380x00001411,0x00001416,0x0004007c,0x00000014, 11390x0000144e,0x00001453,0x0004007c,0x00000014,
11390x00001407,0x00001417,0x00060041,0x000000db, 11400x00001444,0x00001454,0x00060041,0x000000db,
11400x000013ff,0x00001407,0x000000da,0x000000da, 11410x0000143c,0x00001444,0x000000da,0x000000da,
11410x0005003e,0x000013ff,0x000013f7,0x00000002, 11420x0005003e,0x0000143c,0x00001434,0x00000002,
11420x00000004,0x00050041,0x000000fe,0x0000111d, 11430x00000004,0x00050041,0x000000fe,0x0000115a,
11430x000000fc,0x0000022c,0x0004003d,0x00000006, 11440x000000fc,0x0000022c,0x0004003d,0x00000006,
11440x0000111e,0x0000111d,0x00050095,0x000000ab, 11450x0000115b,0x0000115a,0x00050095,0x000000ab,
11450x0000142f,0x0000124d,0x00000374,0x00050051, 11460x0000146c,0x0000128a,0x00000374,0x00050051,
11460x00000006,0x00001430,0x0000142f,0x00000001, 11470x00000006,0x0000146d,0x0000146c,0x00000001,
11470x00050051,0x00000006,0x00001431,0x0000142f, 11480x00050051,0x00000006,0x0000146e,0x0000146c,
11480x00000000,0x00050080,0x00000006,0x00001436, 11490x00000000,0x00050080,0x00000006,0x00001473,
11490x00001254,0x00001430,0x00050050,0x00000007, 11500x00001291,0x0000146d,0x00050050,0x00000007,
11500x00001437,0x00001431,0x00001436,0x0004007c, 11510x00001474,0x0000146e,0x00001473,0x0004007c,
11510x00000014,0x00001427,0x00001437,0x00060041, 11520x00000014,0x00001464,0x00001474,0x00060041,
11520x000000db,0x0000141f,0x00001427,0x000000da, 11530x000000db,0x0000145c,0x00001464,0x000000da,
11530x000000da,0x0005003e,0x0000141f,0x0000111e, 11540x000000da,0x0005003e,0x0000145c,0x0000115b,
11540x00000002,0x00000004,0x00050041,0x000000fe, 11550x00000002,0x00000004,0x00050041,0x000000fe,
11550x00001122,0x000000fc,0x000009ef,0x0004003d, 11560x0000115f,0x000000fc,0x000009ef,0x0004003d,
11560x00000006,0x00001123,0x00001122,0x00050095, 11570x00000006,0x00001160,0x0000115f,0x00050095,
11570x000000ab,0x0000144f,0x0000124d,0x0000037e, 11580x000000ab,0x0000148c,0x0000128a,0x0000037e,
11580x00050051,0x00000006,0x00001450,0x0000144f, 11590x00050051,0x00000006,0x0000148d,0x0000148c,
11590x00000001,0x00050051,0x00000006,0x00001451, 11600x00000001,0x00050051,0x00000006,0x0000148e,
11600x0000144f,0x00000000,0x00050080,0x00000006, 11610x0000148c,0x00000000,0x00050080,0x00000006,
11610x00001456,0x00001254,0x00001450,0x00050050, 11620x00001493,0x00001291,0x0000148d,0x00050050,
11620x00000007,0x00001457,0x00001451,0x00001456, 11630x00000007,0x00001494,0x0000148e,0x00001493,
11630x0004007c,0x00000014,0x00001447,0x00001457, 11640x0004007c,0x00000014,0x00001484,0x00001494,
11640x00060041,0x000000db,0x0000143f,0x00001447, 11650x00060041,0x000000db,0x0000147c,0x00001484,
11650x000000da,0x000000da,0x0005003e,0x0000143f, 11660x000000da,0x000000da,0x0005003e,0x0000147c,
11660x00001123,0x00000002,0x00000004,0x00050095, 11670x00001160,0x00000002,0x00000004,0x00050095,
11670x000000ab,0x0000146f,0x0000124d,0x00000388, 11680x000000ab,0x000014ac,0x0000128a,0x00000388,
11680x00050051,0x00000006,0x00001470,0x0000146f, 11690x00050051,0x00000006,0x000014ad,0x000014ac,
11690x00000001,0x00050051,0x00000006,0x00001471, 11700x00000001,0x00050051,0x00000006,0x000014ae,
11700x0000146f,0x00000000,0x00050080,0x00000006, 11710x000014ac,0x00000000,0x00050080,0x00000006,
11710x00001476,0x00001254,0x00001470,0x00050050, 11720x000014b3,0x00001291,0x000014ad,0x00050050,
11720x00000007,0x00001477,0x00001471,0x00001476, 11730x00000007,0x000014b4,0x000014ae,0x000014b3,
11730x0004007c,0x00000014,0x00001467,0x00001477, 11740x0004007c,0x00000014,0x000014a4,0x000014b4,
11740x00060041,0x000000db,0x0000145f,0x00001467, 11750x00060041,0x000000db,0x0000149c,0x000014a4,
11750x000000da,0x000000da,0x0005003e,0x0000145f, 11760x000000da,0x000000da,0x0005003e,0x0000149c,
11760x000000a6,0x00000002,0x00000004,0x000200f9, 11770x000000a6,0x00000002,0x00000004,0x000200f9,
11770x00000b4b,0x000200f8,0x00000b4b,0x000200f9, 11780x00000b4b,0x000200f8,0x00000b4b,0x000200f9,
11780x00000bb6,0x000200f8,0x00000b47,0x00050041, 11790x00000bf3,0x000200f8,0x00000b47,0x00050041,
11790x000000fe,0x00000b4f,0x000000fc,0x000004d8, 11800x000000fe,0x00000b4f,0x000000fc,0x000004d8,
11800x0004003d,0x00000006,0x00000b50,0x00000b4f, 11810x0004003d,0x00000006,0x00000b50,0x00000b4f,
11810x000500ae,0x0000002f,0x00000b51,0x00000b11, 11820x000500ae,0x0000002f,0x00000b51,0x00000b11,
11820x00000b50,0x000300f7,0x00000b53,0x00000000, 11830x00000b50,0x000300f7,0x00000b53,0x00000000,
11830x000400fa,0x00000b51,0x00000b52,0x00000b53, 11840x000400fa,0x00000b51,0x00000b52,0x00000b53,
11840x000200f8,0x00000b52,0x000200f9,0x00000bb6, 11850x000200f8,0x00000b52,0x000200f9,0x00000bf3,
11850x000200f8,0x00000b53,0x000500aa,0x0000002f, 11860x000200f8,0x00000b53,0x000500aa,0x0000002f,
11860x00000b58,0x00000b13,0x00000b57,0x000300f7, 11870x00000b58,0x00000b13,0x00000b57,0x000300f7,
11870x00000b5a,0x00000000,0x000400fa,0x00000b58, 11880x00000b5a,0x00000000,0x000400fa,0x00000b58,
11880x00000b59,0x00000b6a,0x000200f8,0x00000b59, 11890x00000b59,0x00000b5a,0x000200f8,0x00000b59,
11890x00050084,0x00000006,0x00000b5c,0x0000010a, 11900x000500aa,0x0000002f,0x00000b5c,0x00000b11,
11900x00000b11,0x00050041,0x00000156,0x00000b60, 11910x000000a6,0x000300f7,0x00000b5e,0x00000000,
11920x000400fa,0x00000b5c,0x00000b5d,0x00000b5e,
11930x000200f8,0x00000b5d,0x00050041,0x00000156,
11940x00000b60,0x000000fc,0x00000205,0x0004003d,
11950x00000007,0x00000b61,0x00000b60,0x00050051,
11960x00000006,0x000014cb,0x00000b61,0x00000000,
11970x00050095,0x000000ab,0x000014cd,0x000014cb,
11980x0000010a,0x00050051,0x00000006,0x000014ce,
11990x000014cd,0x00000001,0x00050051,0x00000006,
12000x000014cf,0x000014cd,0x00000000,0x00050051,
12010x00000006,0x000014d2,0x00000b61,0x00000001,
12020x00050080,0x00000006,0x000014d4,0x000014d2,
12030x000014ce,0x00050050,0x00000007,0x000014d5,
12040x000014cf,0x000014d4,0x0004007c,0x00000014,
12050x000014c5,0x000014d5,0x00060041,0x000000db,
12060x000014bc,0x000014c5,0x000000da,0x000000da,
12070x0006003d,0x00000006,0x000014bd,0x000014bc,
12080x00000002,0x00000004,0x00050084,0x00000006,
12090x00000b64,0x000014bd,0x00000107,0x00050041,
12100x00000156,0x00000b66,0x000000fc,0x000000da,
12110x0004003d,0x00000007,0x00000b67,0x00000b66,
12120x00050051,0x00000006,0x000014eb,0x00000b67,
12130x00000000,0x00050095,0x000000ab,0x000014ed,
12140x000014eb,0x000000a6,0x00050051,0x00000006,
12150x000014ee,0x000014ed,0x00000001,0x00050051,
12160x00000006,0x000014ef,0x000014ed,0x00000000,
12170x00050051,0x00000006,0x000014f2,0x00000b67,
12180x00000001,0x00050080,0x00000006,0x000014f4,
12190x000014f2,0x000014ee,0x00050050,0x00000007,
12200x000014f5,0x000014ef,0x000014f4,0x0004007c,
12210x00000014,0x000014e5,0x000014f5,0x00060041,
12220x000000db,0x000014dd,0x000014e5,0x000000da,
12230x000000da,0x0005003e,0x000014dd,0x00000b64,
12240x00000002,0x00000004,0x00050095,0x000000ab,
12250x0000150d,0x000014eb,0x0000010a,0x00050051,
12260x00000006,0x0000150e,0x0000150d,0x00000001,
12270x00050051,0x00000006,0x0000150f,0x0000150d,
12280x00000000,0x00050080,0x00000006,0x00001514,
12290x000014f2,0x0000150e,0x00050050,0x00000007,
12300x00001515,0x0000150f,0x00001514,0x0004007c,
12310x00000014,0x00001505,0x00001515,0x00060041,
12320x000000db,0x000014fd,0x00001505,0x000000da,
12330x000000da,0x0005003e,0x000014fd,0x000000a6,
12340x00000002,0x00000004,0x000200f9,0x00000b5e,
12350x000200f8,0x00000b5e,0x000200f9,0x00000bf3,
12360x000200f8,0x00000b5a,0x000500aa,0x0000002f,
12370x00000b74,0x00000b13,0x00000118,0x000300f7,
12380x00000b76,0x00000000,0x000400fa,0x00000b74,
12390x00000b75,0x00000b76,0x000200f8,0x00000b75,
12400x00050084,0x00000006,0x00000b78,0x0000010a,
12410x00000b11,0x00050041,0x00000156,0x00000b7a,
11910x000000fc,0x00000205,0x0004003d,0x00000007, 12420x000000fc,0x00000205,0x0004003d,0x00000007,
11920x00000b61,0x00000b60,0x00050051,0x00000006, 12430x00000b7b,0x00000b7a,0x00050051,0x00000006,
11930x0000148e,0x00000b61,0x00000000,0x00050095, 12440x0000152c,0x00000b7b,0x00000000,0x00050095,
11940x000000ab,0x00001490,0x0000148e,0x00000b5c, 12450x000000ab,0x0000152e,0x0000152c,0x0000010a,
11950x00050051,0x00000006,0x00001491,0x00001490, 12460x00050051,0x00000006,0x0000152f,0x0000152e,
11960x00000001,0x00050051,0x00000006,0x00001492, 12470x00000001,0x00050051,0x00000006,0x00001530,
11970x00001490,0x00000000,0x00050051,0x00000006, 12480x0000152e,0x00000000,0x00050051,0x00000006,
11980x00001495,0x00000b61,0x00000001,0x00050080, 12490x00001533,0x00000b7b,0x00000001,0x00050080,
11990x00000006,0x00001497,0x00001495,0x00001491, 12500x00000006,0x00001535,0x00001533,0x0000152f,
12000x00050050,0x00000007,0x00001498,0x00001492, 12510x00050050,0x00000007,0x00001536,0x00001530,
12010x00001497,0x0004007c,0x00000014,0x00001488, 12520x00001535,0x0004007c,0x00000014,0x00001526,
12020x00001498,0x00060041,0x000000db,0x0000147f, 12530x00001536,0x00060041,0x000000db,0x0000151d,
12030x00001488,0x000000da,0x000000da,0x0006003d, 12540x00001526,0x000000da,0x000000da,0x0006003d,
12040x00000006,0x00001480,0x0000147f,0x00000002, 12550x00000006,0x0000151e,0x0000151d,0x00000002,
12050x00000004,0x00050041,0x00000156,0x00000b65, 12560x00000004,0x00050084,0x00000006,0x00000b7e,
12570x0000151e,0x00000107,0x000500b0,0x0000002f,
12580x00000b7f,0x00000b78,0x00000b7e,0x000300f7,
12590x00000b81,0x00000000,0x000400fa,0x00000b7f,
12600x00000b80,0x00000b81,0x000200f8,0x00000b80,
12610x00050095,0x000000ab,0x0000154f,0x0000152c,
12620x00000b78,0x00050051,0x00000006,0x00001550,
12630x0000154f,0x00000001,0x00050051,0x00000006,
12640x00001551,0x0000154f,0x00000000,0x00050080,
12650x00000006,0x00001556,0x00001533,0x00001550,
12660x00050050,0x00000007,0x00001557,0x00001551,
12670x00001556,0x0004007c,0x00000014,0x00001547,
12680x00001557,0x00060041,0x000000db,0x0000153e,
12690x00001547,0x000000da,0x000000da,0x0006003d,
12700x00000006,0x0000153f,0x0000153e,0x00000002,
12710x00000004,0x00050041,0x00000156,0x00000b8c,
12060x000000fc,0x000000da,0x0004003d,0x00000007, 12720x000000fc,0x000000da,0x0004003d,0x00000007,
12070x00000b66,0x00000b65,0x00050051,0x00000006, 12730x00000b8d,0x00000b8c,0x00050051,0x00000006,
12080x000014ae,0x00000b66,0x00000000,0x00050095, 12740x0000156d,0x00000b8d,0x00000000,0x00050095,
12090x000000ab,0x000014b0,0x000014ae,0x00000b5c, 12750x000000ab,0x0000156f,0x0000156d,0x00000b78,
12100x00050051,0x00000006,0x000014b1,0x000014b0, 12760x00050051,0x00000006,0x00001570,0x0000156f,
12110x00000001,0x00050051,0x00000006,0x000014b2, 12770x00000001,0x00050051,0x00000006,0x00001571,
12120x000014b0,0x00000000,0x00050051,0x00000006, 12780x0000156f,0x00000000,0x00050051,0x00000006,
12130x000014b5,0x00000b66,0x00000001,0x00050080, 12790x00001574,0x00000b8d,0x00000001,0x00050080,
12140x00000006,0x000014b7,0x000014b5,0x000014b1, 12800x00000006,0x00001576,0x00001574,0x00001570,
12150x00050050,0x00000007,0x000014b8,0x000014b2, 12810x00050050,0x00000007,0x00001577,0x00001571,
12160x000014b7,0x0004007c,0x00000014,0x000014a8, 12820x00001576,0x0004007c,0x00000014,0x00001567,
12170x000014b8,0x00060041,0x000000db,0x000014a0, 12830x00001577,0x00060041,0x000000db,0x0000155f,
12180x000014a8,0x000000da,0x000000da,0x0005003e, 12840x00001567,0x000000da,0x000000da,0x0005003e,
12190x000014a0,0x00001480,0x00000002,0x00000004, 12850x0000155f,0x0000153f,0x00000002,0x00000004,
12200x000200f9,0x00000b5a,0x000200f8,0x00000b6a, 12860x000200f9,0x00000b81,0x000200f8,0x00000b81,
12210x000500aa,0x0000002f,0x00000b6d,0x00000b13, 12870x000200f9,0x00000bf3,0x000200f8,0x00000b76,
12220x000000a6,0x000300f7,0x00000b6f,0x00000000, 12880x000500aa,0x0000002f,0x00000b95,0x00000b13,
12230x000400fa,0x00000b6d,0x00000b6e,0x00000b90, 12890x00000b94,0x000300f7,0x00000b97,0x00000000,
12240x000200f8,0x00000b6e,0x00050041,0x000000fe, 12900x000400fa,0x00000b95,0x00000b96,0x00000ba7,
12250x00000b70,0x000000fc,0x000009ef,0x0004003d, 12910x000200f8,0x00000b96,0x00050084,0x00000006,
12260x00000006,0x00000b71,0x00000b70,0x00050084, 12920x00000b99,0x0000010a,0x00000b11,0x00050041,
12270x00000006,0x00000b73,0x0000010a,0x00000b11, 12930x00000156,0x00000b9d,0x000000fc,0x00000205,
12280x00050080,0x00000006,0x00000b74,0x00000b71, 12940x0004003d,0x00000007,0x00000b9e,0x00000b9d,
12290x00000b73,0x00050041,0x00000156,0x00000b76, 12950x00050051,0x00000006,0x0000158e,0x00000b9e,
12300x000000fc,0x000000da,0x0004003d,0x00000007, 12960x00000000,0x00050095,0x000000ab,0x00001590,
12310x00000b77,0x00000b76,0x00050051,0x00000006, 12970x0000158e,0x00000b99,0x00050051,0x00000006,
12320x000014ce,0x00000b77,0x00000000,0x00050095, 12980x00001591,0x00001590,0x00000001,0x00050051,
12330x000000ab,0x000014d0,0x000014ce,0x00000b74, 12990x00000006,0x00001592,0x00001590,0x00000000,
12340x00050051,0x00000006,0x000014d1,0x000014d0, 13000x00050051,0x00000006,0x00001595,0x00000b9e,
12350x00000001,0x00050051,0x00000006,0x000014d2, 13010x00000001,0x00050080,0x00000006,0x00001597,
12360x000014d0,0x00000000,0x00050051,0x00000006, 13020x00001595,0x00001591,0x00050050,0x00000007,
12370x000014d5,0x00000b77,0x00000001,0x00050080, 13030x00001598,0x00001592,0x00001597,0x0004007c,
12380x00000006,0x000014d7,0x000014d5,0x000014d1, 13040x00000014,0x00001588,0x00001598,0x00060041,
12390x00050050,0x00000007,0x000014d8,0x000014d2, 13050x000000db,0x0000157f,0x00001588,0x000000da,
12400x000014d7,0x0004007c,0x00000014,0x000014c8, 13060x000000da,0x0006003d,0x00000006,0x00001580,
12410x000014d8,0x00060041,0x000000db,0x000014c0, 13070x0000157f,0x00000002,0x00000004,0x00050041,
12420x000014c8,0x000000da,0x000000da,0x0005003e, 13080x00000156,0x00000ba2,0x000000fc,0x000000da,
12430x000014c0,0x00000380,0x00000002,0x00000004, 13090x0004003d,0x00000007,0x00000ba3,0x00000ba2,
12440x000500b0,0x0000002f,0x00000b7c,0x00000b11, 13100x00050051,0x00000006,0x000015ae,0x00000ba3,
12450x000002b7,0x000300f7,0x00000b7e,0x00000000, 13110x00000000,0x00050095,0x000000ab,0x000015b0,
12460x000400fa,0x00000b7c,0x00000b7d,0x00000b7e, 13120x000015ae,0x00000b99,0x00050051,0x00000006,
12470x000200f8,0x00000b7d,0x00050041,0x00000156, 13130x000015b1,0x000015b0,0x00000001,0x00050051,
12480x00000b82,0x000000fc,0x00000154,0x0004003d, 13140x00000006,0x000015b2,0x000015b0,0x00000000,
12490x00000007,0x00000b83,0x00000b82,0x00050051, 13150x00050051,0x00000006,0x000015b5,0x00000ba3,
12500x00000006,0x000014ee,0x00000b83,0x00000000, 13160x00000001,0x00050080,0x00000006,0x000015b7,
12510x00050095,0x000000ab,0x000014f0,0x000014ee, 13170x000015b5,0x000015b1,0x00050050,0x00000007,
12520x00000b73,0x00050051,0x00000006,0x000014f1, 13180x000015b8,0x000015b2,0x000015b7,0x0004007c,
12530x000014f0,0x00000001,0x00050051,0x00000006, 13190x00000014,0x000015a8,0x000015b8,0x00060041,
12540x000014f2,0x000014f0,0x00000000,0x00050051, 13200x000000db,0x000015a0,0x000015a8,0x000000da,
12550x00000006,0x000014f5,0x00000b83,0x00000001, 13210x000000da,0x0005003e,0x000015a0,0x00001580,
12560x00050080,0x00000006,0x000014f7,0x000014f5, 13220x00000002,0x00000004,0x000200f9,0x00000b97,
12570x000014f1,0x00050050,0x00000007,0x000014f8, 13230x000200f8,0x00000ba7,0x000500aa,0x0000002f,
12580x000014f2,0x000014f7,0x0004007c,0x00000014, 13240x00000baa,0x00000b13,0x000000a6,0x000300f7,
12590x000014e8,0x000014f8,0x00060041,0x000000db, 13250x00000bac,0x00000000,0x000400fa,0x00000baa,
12600x000014e0,0x000014e8,0x000000da,0x000000da, 13260x00000bab,0x00000bcd,0x000200f8,0x00000bab,
12610x0005003e,0x000014e0,0x00000380,0x00000002, 13270x00050041,0x000000fe,0x00000bad,0x000000fc,
12620x00000004,0x00050080,0x00000006,0x00000b89, 13280x000009ef,0x0004003d,0x00000006,0x00000bae,
12630x00000118,0x00000b73,0x00050095,0x000000ab, 13290x00000bad,0x00050084,0x00000006,0x00000bb0,
12640x00001510,0x000014ee,0x00000b89,0x00050051, 13300x0000010a,0x00000b11,0x00050080,0x00000006,
12650x00000006,0x00001511,0x00001510,0x00000001, 13310x00000bb1,0x00000bae,0x00000bb0,0x00050041,
12660x00050051,0x00000006,0x00001512,0x00001510, 13320x00000156,0x00000bb3,0x000000fc,0x000000da,
12670x00000000,0x00050080,0x00000006,0x00001517, 13330x0004003d,0x00000007,0x00000bb4,0x00000bb3,
12680x000014f5,0x00001511,0x00050050,0x00000007, 13340x00050051,0x00000006,0x000015ce,0x00000bb4,
12690x00001518,0x00001512,0x00001517,0x0004007c, 13350x00000000,0x00050095,0x000000ab,0x000015d0,
12700x00000014,0x00001508,0x00001518,0x00060041, 13360x000015ce,0x00000bb1,0x00050051,0x00000006,
12710x000000db,0x00001500,0x00001508,0x000000da, 13370x000015d1,0x000015d0,0x00000001,0x00050051,
12720x000000da,0x0005003e,0x00001500,0x000000a6, 13380x00000006,0x000015d2,0x000015d0,0x00000000,
12730x00000002,0x00000004,0x000200f9,0x00000b7e, 13390x00050051,0x00000006,0x000015d5,0x00000bb4,
12740x000200f8,0x00000b7e,0x000200f9,0x00000b6f, 13400x00000001,0x00050080,0x00000006,0x000015d7,
12750x000200f8,0x00000b90,0x000500aa,0x0000002f, 13410x000015d5,0x000015d1,0x00050050,0x00000007,
12760x00000b93,0x00000b13,0x000000b0,0x000300f7, 13420x000015d8,0x000015d2,0x000015d7,0x0004007c,
12770x00000b95,0x00000000,0x000400fa,0x00000b93, 13430x00000014,0x000015c8,0x000015d8,0x00060041,
12780x00000b94,0x00000b99,0x000200f8,0x00000b94, 13440x000000db,0x000015c0,0x000015c8,0x000000da,
12790x000200f9,0x00001548,0x000200f8,0x00001548, 13450x000000da,0x0005003e,0x000015c0,0x00000380,
12800x000700f5,0x00000006,0x0000312e,0x000000a6, 13460x00000002,0x00000004,0x000500b0,0x0000002f,
12810x00000b94,0x00001558,0x00001556,0x000500b0, 13470x00000bb9,0x00000b11,0x000002b7,0x000300f7,
12820x0000002f,0x0000154b,0x0000312e,0x000002b7, 13480x00000bbb,0x00000000,0x000400fa,0x00000bb9,
12830x000400f6,0x00001559,0x00001556,0x00000000, 13490x00000bba,0x00000bbb,0x000200f8,0x00000bba,
12840x000400fa,0x0000154b,0x0000154c,0x00001559, 13500x00050041,0x00000156,0x00000bbf,0x000000fc,
12850x000200f8,0x0000154c,0x00050084,0x00000006, 13510x00000154,0x0004003d,0x00000007,0x00000bc0,
12860x0000154f,0x000002b7,0x00000b11,0x00050080, 13520x00000bbf,0x00050051,0x00000006,0x000015ee,
12870x00000006,0x00001551,0x0000154f,0x0000312e, 13530x00000bc0,0x00000000,0x00050095,0x000000ab,
12880x000300f7,0x00001616,0x00000000,0x000300fb, 13540x000015f0,0x000015ee,0x00000bb0,0x00050051,
12890x000000a6,0x000015f4,0x000200f8,0x000015f4, 13550x00000006,0x000015f1,0x000015f0,0x00000001,
12900x00050041,0x000000fe,0x000015f5,0x000000fc, 13560x00050051,0x00000006,0x000015f2,0x000015f0,
12910x0000027b,0x0004003d,0x00000006,0x000015f6, 13570x00000000,0x00050051,0x00000006,0x000015f5,
12920x000015f5,0x000500aa,0x0000002f,0x000015f7, 13580x00000bc0,0x00000001,0x00050080,0x00000006,
12930x000015f6,0x000000a6,0x000300f7,0x000015fa, 13590x000015f7,0x000015f5,0x000015f1,0x00050050,
12940x00000000,0x000400fa,0x000015f7,0x000015f8, 13600x00000007,0x000015f8,0x000015f2,0x000015f7,
12950x000015fa,0x000200f8,0x000015f8,0x000200f9, 13610x0004007c,0x00000014,0x000015e8,0x000015f8,
12960x00001616,0x000200f8,0x000015fa,0x000500aa, 13620x00060041,0x000000db,0x000015e0,0x000015e8,
12970x0000002f,0x000015fd,0x000015f6,0x00000170, 13630x000000da,0x000000da,0x0005003e,0x000015e0,
12980x000300f7,0x00001604,0x00000000,0x000400fa, 13640x00000380,0x00000002,0x00000004,0x00050080,
12990x000015fd,0x000015fe,0x00001604,0x000200f8, 13650x00000006,0x00000bc6,0x00000118,0x00000bb0,
13000x000015fe,0x00050084,0x00000006,0x00001600, 13660x00050095,0x000000ab,0x00001610,0x000015ee,
13010x0000010a,0x00001551,0x00050041,0x00000156, 13670x00000bc6,0x00050051,0x00000006,0x00001611,
13020x00001601,0x000000fc,0x0000020d,0x0004003d, 13680x00001610,0x00000001,0x00050051,0x00000006,
13030x00000007,0x00001602,0x00001601,0x00050051, 13690x00001612,0x00001610,0x00000000,0x00050080,
13040x00000006,0x0000162e,0x00001602,0x00000000, 13700x00000006,0x00001617,0x000015f5,0x00001611,
13050x00050095,0x000000ab,0x00001630,0x0000162e, 13710x00050050,0x00000007,0x00001618,0x00001612,
13060x00001600,0x00050051,0x00000006,0x00001631, 13720x00001617,0x0004007c,0x00000014,0x00001608,
13070x00001630,0x00000001,0x00050051,0x00000006, 13730x00001618,0x00060041,0x000000db,0x00001600,
13080x00001632,0x00001630,0x00000000,0x00050051, 13740x00001608,0x000000da,0x000000da,0x0005003e,
13090x00000006,0x00001635,0x00001602,0x00000001, 13750x00001600,0x000000a6,0x00000002,0x00000004,
13100x00050080,0x00000006,0x00001637,0x00001635, 13760x000200f9,0x00000bbb,0x000200f8,0x00000bbb,
13110x00001631,0x00050050,0x00000007,0x00001638, 13770x000200f9,0x00000bac,0x000200f8,0x00000bcd,
13120x00001632,0x00001637,0x0004007c,0x00000014, 13780x000500aa,0x0000002f,0x00000bd0,0x00000b13,
13130x00001628,0x00001638,0x00060041,0x000000db, 13790x000000b0,0x000300f7,0x00000bd2,0x00000000,
13140x0000161f,0x00001628,0x000000da,0x000000da, 13800x000400fa,0x00000bd0,0x00000bd1,0x00000bd6,
13150x0006003d,0x00000006,0x00001620,0x0000161f, 13810x000200f8,0x00000bd1,0x000200f9,0x00001648,
13160x00000002,0x00000004,0x000200f9,0x00001616, 13820x000200f8,0x00001648,0x000700f5,0x00000006,
13170x000200f8,0x00001604,0x000500c2,0x00000006, 13830x0000323a,0x000000a6,0x00000bd1,0x00001658,
13180x00001606,0x00001551,0x00000154,0x00050084, 13840x00001656,0x000500b0,0x0000002f,0x0000164b,
13190x00000006,0x00001607,0x0000010a,0x00001606, 13850x0000323a,0x000002b7,0x000400f6,0x00001659,
13200x00050041,0x00000156,0x00001608,0x000000fc, 13860x00001656,0x00000000,0x000400fa,0x0000164b,
13210x0000020d,0x0004003d,0x00000007,0x00001609, 13870x0000164c,0x00001659,0x000200f8,0x0000164c,
13220x00001608,0x00050051,0x00000006,0x0000164f, 13880x00050084,0x00000006,0x0000164f,0x000002b7,
13230x00001609,0x00000000,0x00050095,0x000000ab, 13890x00000b11,0x00050080,0x00000006,0x00001651,
13240x00001651,0x0000164f,0x00001607,0x00050051, 13900x0000164f,0x0000323a,0x000300f7,0x00001716,
13250x00000006,0x00001652,0x00001651,0x00000001, 13910x00000000,0x000300fb,0x000000a6,0x000016f4,
13260x00050051,0x00000006,0x00001653,0x00001651, 13920x000200f8,0x000016f4,0x00050041,0x000000fe,
13270x00000000,0x00050051,0x00000006,0x00001656, 13930x000016f5,0x000000fc,0x0000027b,0x0004003d,
13280x00001609,0x00000001,0x00050080,0x00000006, 13940x00000006,0x000016f6,0x000016f5,0x000500aa,
13290x00001658,0x00001656,0x00001652,0x00050050, 13950x0000002f,0x000016f7,0x000016f6,0x000000a6,
13300x00000007,0x00001659,0x00001653,0x00001658, 13960x000300f7,0x000016fa,0x00000000,0x000400fa,
13310x0004007c,0x00000014,0x00001649,0x00001659, 13970x000016f7,0x000016f8,0x000016fa,0x000200f8,
13320x00060041,0x000000db,0x00001640,0x00001649, 13980x000016f8,0x000200f9,0x00001716,0x000200f8,
13330x000000da,0x000000da,0x0006003d,0x00000006, 13990x000016fa,0x000500aa,0x0000002f,0x000016fd,
13340x00001641,0x00001640,0x00000002,0x00000004, 14000x000016f6,0x00000170,0x000300f7,0x00001704,
13350x000500c7,0x00000006,0x0000160c,0x00001551, 14010x00000000,0x000400fa,0x000016fd,0x000016fe,
13360x000000b0,0x000500ab,0x0000002f,0x0000160d, 14020x00001704,0x000200f8,0x000016fe,0x00050084,
13370x0000160c,0x000000a6,0x000300f7,0x00001614, 14030x00000006,0x00001700,0x0000010a,0x00001651,
13380x00000000,0x000400fa,0x0000160d,0x0000160e, 14040x00050041,0x00000156,0x00001701,0x000000fc,
13390x00001611,0x000200f8,0x0000160e,0x000500c2, 14050x0000020d,0x0004003d,0x00000007,0x00001702,
13400x00000006,0x00001610,0x00001641,0x0000023e, 14060x00001701,0x00050051,0x00000006,0x0000172e,
13410x000200f9,0x00001614,0x000200f8,0x00001611, 14070x00001702,0x00000000,0x00050095,0x000000ab,
13420x000500c7,0x00000006,0x00001613,0x00001641, 14080x00001730,0x0000172e,0x00001700,0x00050051,
13430x000002a3,0x000200f9,0x00001614,0x000200f8, 14090x00000006,0x00001731,0x00001730,0x00000001,
13440x00001614,0x000700f5,0x00000006,0x00003138, 14100x00050051,0x00000006,0x00001732,0x00001730,
13450x00001610,0x0000160e,0x00001613,0x00001611, 14110x00000000,0x00050051,0x00000006,0x00001735,
13460x000200f9,0x00001616,0x000200f8,0x00001616, 14120x00001702,0x00000001,0x00050080,0x00000006,
13470x000900f5,0x00000006,0x00003139,0x00001551, 14130x00001737,0x00001735,0x00001731,0x00050050,
13480x000015f8,0x00001620,0x000015fe,0x00003138, 14140x00000007,0x00001738,0x00001732,0x00001737,
13490x00001614,0x00050041,0x000000fe,0x0000166a, 14150x0004007c,0x00000014,0x00001728,0x00001738,
13500x000000fc,0x00000250,0x0004003d,0x00000006, 14160x00060041,0x000000db,0x0000171f,0x00001728,
13510x0000166b,0x0000166a,0x00050084,0x00000006,
13520x0000166c,0x00003139,0x0000166b,0x00050041,
13530x00000156,0x0000166d,0x000000fc,0x00000205,
13540x0004003d,0x00000007,0x0000166e,0x0000166d,
13550x00050051,0x00000006,0x00001689,0x0000166e,
13560x00000000,0x00050095,0x000000ab,0x0000168b,
13570x00001689,0x0000166c,0x00050051,0x00000006,
13580x0000168c,0x0000168b,0x00000001,0x00050051,
13590x00000006,0x0000168d,0x0000168b,0x00000000,
13600x00050051,0x00000006,0x00001690,0x0000166e,
13610x00000001,0x00050080,0x00000006,0x00001692,
13620x00001690,0x0000168c,0x00050095,0x000000ab,
13630x000016ac,0x0000168d,0x000000a6,0x00050051,
13640x00000006,0x000016ad,0x000016ac,0x00000001,
13650x00050051,0x00000006,0x000016ae,0x000016ac,
13660x00000000,0x00050080,0x00000006,0x000016b3,
13670x00001692,0x000016ad,0x00050050,0x00000007,
13680x000016b4,0x000016ae,0x000016b3,0x0004007c,
13690x00000014,0x000016a4,0x000016b4,0x00060041,
13700x000000db,0x0000169b,0x000016a4,0x000000da,
13710x000000da,0x0006003d,0x00000006,0x0000169c,
13720x0000169b,0x00000002,0x00000004,0x0004007c,
13730x00000027,0x00001672,0x0000169c,0x00050095,
13740x000000ab,0x000016cd,0x0000168d,0x0000010a,
13750x00050051,0x00000006,0x000016ce,0x000016cd,
13760x00000001,0x00050051,0x00000006,0x000016cf,
13770x000016cd,0x00000000,0x00050080,0x00000006,
13780x000016d4,0x00001692,0x000016ce,0x00050050,
13790x00000007,0x000016d5,0x000016cf,0x000016d4,
13800x0004007c,0x00000014,0x000016c5,0x000016d5,
13810x00060041,0x000000db,0x000016bc,0x000016c5,
13820x000000da,0x000000da,0x0006003d,0x00000006,
13830x000016bd,0x000016bc,0x00000002,0x00000004,
13840x0004007c,0x00000027,0x00001675,0x000016bd,
13850x00050041,0x000000fe,0x00001676,0x000000fc,
13860x00000266,0x0004003d,0x00000006,0x00001677,
13870x00001676,0x000500aa,0x0000002f,0x00001678,
13880x00001677,0x000000b0,0x000300f7,0x0000167e,
13890x00000000,0x000400fa,0x00001678,0x00001679,
13900x0000167a,0x000200f8,0x00001679,0x000200f9,
13910x0000167e,0x000200f8,0x0000167a,0x00050095,
13920x000000ab,0x000016ee,0x0000168d,0x00000111,
13930x00050051,0x00000006,0x000016ef,0x000016ee,
13940x00000001,0x00050051,0x00000006,0x000016f0,
13950x000016ee,0x00000000,0x00050080,0x00000006,
13960x000016f5,0x00001692,0x000016ef,0x00050050,
13970x00000007,0x000016f6,0x000016f0,0x000016f5,
13980x0004007c,0x00000014,0x000016e6,0x000016f6,
13990x00060041,0x000000db,0x000016dd,0x000016e6,
14000x000000da,0x000000da,0x0006003d,0x00000006,
14010x000016de,0x000016dd,0x00000002,0x00000004,
14020x0004007c,0x00000027,0x0000167d,0x000016de,
14030x000200f9,0x0000167e,0x000200f8,0x0000167e,
14040x000700f5,0x00000027,0x0000313a,0x0000026d,
14050x00001679,0x0000167d,0x0000167a,0x00060050,
14060x0000004b,0x00001683,0x00001672,0x00001675,
14070x0000313a,0x000300f7,0x0000173c,0x00000000,
14080x000300fb,0x000000a6,0x00001708,0x000200f8,
14090x00001708,0x00050041,0x00000156,0x00001709,
14100x000000fc,0x00000215,0x0004003d,0x00000007,
14110x0000170a,0x00001709,0x00050051,0x00000006,
14120x00001741,0x0000170a,0x00000000,0x000500aa,
14130x0000002f,0x00001742,0x00001741,0x000000a6,
14140x000300f7,0x00001747,0x00000000,0x000400fa,
14150x00001742,0x00001743,0x00001747,0x000200f8,
14160x00001743,0x00050051,0x00000006,0x00001745,
14170x0000170a,0x00000001,0x000500aa,0x0000002f,
14180x00001746,0x00001745,0x000000a6,0x000200f9,
14190x00001747,0x000200f8,0x00001747,0x000700f5,
14200x0000002f,0x00001748,0x00001742,0x00001708,
14210x00001746,0x00001743,0x000300f7,0x0000170e,
14220x00000000,0x000400fa,0x00001748,0x0000170c,
14230x0000170e,0x000200f8,0x0000170c,0x000200f9,
14240x0000173c,0x000200f8,0x0000170e,0x000200f9,
14250x0000170f,0x000200f8,0x0000170f,0x000700f5,
14260x00000006,0x0000313b,0x000000a6,0x0000170e,
14270x00001739,0x00001713,0x000500b0,0x0000002f,
14280x00001712,0x0000313b,0x000002b7,0x000400f6,
14290x0000173a,0x00001713,0x00000000,0x000400fa,
14300x00001712,0x00001713,0x0000173a,0x000200f8,
14310x00001713,0x00050084,0x00000006,0x00001715,
14320x0000011f,0x0000313b,0x00050095,0x000000ab,
14330x00001761,0x00001741,0x00001715,0x00050051,
14340x00000006,0x00001762,0x00001761,0x00000001,
14350x00050051,0x00000006,0x00001763,0x00001761,
14360x00000000,0x00050051,0x00000006,0x00001766,
14370x0000170a,0x00000001,0x00050080,0x00000006,
14380x00001768,0x00001766,0x00001762,0x00050050,
14390x00000007,0x00001769,0x00001763,0x00001768,
14400x0004007c,0x00000014,0x00001759,0x00001769,
14410x00060041,0x000000db,0x00001750,0x00001759,
14420x000000da,0x000000da,0x0006003d,0x00000006, 14170x000000da,0x000000da,0x0006003d,0x00000006,
14430x00001751,0x00001750,0x00000002,0x00000004, 14180x00001720,0x0000171f,0x00000002,0x00000004,
14440x0004007c,0x00000027,0x0000171a,0x00001751, 14190x000200f9,0x00001716,0x000200f8,0x00001704,
14450x00050080,0x00000006,0x0000171c,0x00001715, 14200x000500c2,0x00000006,0x00001706,0x00001651,
14460x0000010a,0x00050095,0x000000ab,0x00001782, 14210x00000154,0x00050084,0x00000006,0x00001707,
14470x00001741,0x0000171c,0x00050051,0x00000006, 14220x0000010a,0x00001706,0x00050041,0x00000156,
14480x00001783,0x00001782,0x00000001,0x00050051, 14230x00001708,0x000000fc,0x0000020d,0x0004003d,
14490x00000006,0x00001784,0x00001782,0x00000000, 14240x00000007,0x00001709,0x00001708,0x00050051,
14500x00050080,0x00000006,0x00001789,0x00001766, 14250x00000006,0x0000174f,0x00001709,0x00000000,
14510x00001783,0x00050050,0x00000007,0x0000178a, 14260x00050095,0x000000ab,0x00001751,0x0000174f,
14520x00001784,0x00001789,0x0004007c,0x00000014, 14270x00001707,0x00050051,0x00000006,0x00001752,
14530x0000177a,0x0000178a,0x00060041,0x000000db, 14280x00001751,0x00000001,0x00050051,0x00000006,
14540x00001771,0x0000177a,0x000000da,0x000000da, 14290x00001753,0x00001751,0x00000000,0x00050051,
14550x0006003d,0x00000006,0x00001772,0x00001771, 14300x00000006,0x00001756,0x00001709,0x00000001,
14310x00050080,0x00000006,0x00001758,0x00001756,
14320x00001752,0x00050050,0x00000007,0x00001759,
14330x00001753,0x00001758,0x0004007c,0x00000014,
14340x00001749,0x00001759,0x00060041,0x000000db,
14350x00001740,0x00001749,0x000000da,0x000000da,
14360x0006003d,0x00000006,0x00001741,0x00001740,
14370x00000002,0x00000004,0x000500c7,0x00000006,
14380x0000170c,0x00001651,0x000000b0,0x000500ab,
14390x0000002f,0x0000170d,0x0000170c,0x000000a6,
14400x000300f7,0x00001714,0x00000000,0x000400fa,
14410x0000170d,0x0000170e,0x00001711,0x000200f8,
14420x0000170e,0x000500c2,0x00000006,0x00001710,
14430x00001741,0x0000023e,0x000200f9,0x00001714,
14440x000200f8,0x00001711,0x000500c7,0x00000006,
14450x00001713,0x00001741,0x000002a3,0x000200f9,
14460x00001714,0x000200f8,0x00001714,0x000700f5,
14470x00000006,0x00003244,0x00001710,0x0000170e,
14480x00001713,0x00001711,0x000200f9,0x00001716,
14490x000200f8,0x00001716,0x000900f5,0x00000006,
14500x00003245,0x00001651,0x000016f8,0x00001720,
14510x000016fe,0x00003244,0x00001714,0x00050041,
14520x000000fe,0x0000176a,0x000000fc,0x00000250,
14530x0004003d,0x00000006,0x0000176b,0x0000176a,
14540x00050084,0x00000006,0x0000176c,0x00003245,
14550x0000176b,0x00050041,0x00000156,0x0000176d,
14560x000000fc,0x00000205,0x0004003d,0x00000007,
14570x0000176e,0x0000176d,0x00050051,0x00000006,
14580x00001789,0x0000176e,0x00000000,0x00050095,
14590x000000ab,0x0000178b,0x00001789,0x0000176c,
14600x00050051,0x00000006,0x0000178c,0x0000178b,
14610x00000001,0x00050051,0x00000006,0x0000178d,
14620x0000178b,0x00000000,0x00050051,0x00000006,
14630x00001790,0x0000176e,0x00000001,0x00050080,
14640x00000006,0x00001792,0x00001790,0x0000178c,
14650x00050095,0x000000ab,0x000017ac,0x0000178d,
14660x000000a6,0x00050051,0x00000006,0x000017ad,
14670x000017ac,0x00000001,0x00050051,0x00000006,
14680x000017ae,0x000017ac,0x00000000,0x00050080,
14690x00000006,0x000017b3,0x00001792,0x000017ad,
14700x00050050,0x00000007,0x000017b4,0x000017ae,
14710x000017b3,0x0004007c,0x00000014,0x000017a4,
14720x000017b4,0x00060041,0x000000db,0x0000179b,
14730x000017a4,0x000000da,0x000000da,0x0006003d,
14740x00000006,0x0000179c,0x0000179b,0x00000002,
14750x00000004,0x0004007c,0x00000027,0x00001772,
14760x0000179c,0x00050095,0x000000ab,0x000017cd,
14770x0000178d,0x0000010a,0x00050051,0x00000006,
14780x000017ce,0x000017cd,0x00000001,0x00050051,
14790x00000006,0x000017cf,0x000017cd,0x00000000,
14800x00050080,0x00000006,0x000017d4,0x00001792,
14810x000017ce,0x00050050,0x00000007,0x000017d5,
14820x000017cf,0x000017d4,0x0004007c,0x00000014,
14830x000017c5,0x000017d5,0x00060041,0x000000db,
14840x000017bc,0x000017c5,0x000000da,0x000000da,
14850x0006003d,0x00000006,0x000017bd,0x000017bc,
14860x00000002,0x00000004,0x0004007c,0x00000027,
14870x00001775,0x000017bd,0x00050041,0x000000fe,
14880x00001776,0x000000fc,0x00000266,0x0004003d,
14890x00000006,0x00001777,0x00001776,0x000500aa,
14900x0000002f,0x00001778,0x00001777,0x000000b0,
14910x000300f7,0x0000177e,0x00000000,0x000400fa,
14920x00001778,0x00001779,0x0000177a,0x000200f8,
14930x00001779,0x000200f9,0x0000177e,0x000200f8,
14940x0000177a,0x00050095,0x000000ab,0x000017ee,
14950x0000178d,0x00000111,0x00050051,0x00000006,
14960x000017ef,0x000017ee,0x00000001,0x00050051,
14970x00000006,0x000017f0,0x000017ee,0x00000000,
14980x00050080,0x00000006,0x000017f5,0x00001792,
14990x000017ef,0x00050050,0x00000007,0x000017f6,
15000x000017f0,0x000017f5,0x0004007c,0x00000014,
15010x000017e6,0x000017f6,0x00060041,0x000000db,
15020x000017dd,0x000017e6,0x000000da,0x000000da,
15030x0006003d,0x00000006,0x000017de,0x000017dd,
14560x00000002,0x00000004,0x0004007c,0x00000027, 15040x00000002,0x00000004,0x0004007c,0x00000027,
14570x00001720,0x00001772,0x00050080,0x00000006, 15050x0000177d,0x000017de,0x000200f9,0x0000177e,
14580x00001722,0x00001715,0x00000111,0x00050095, 15060x000200f8,0x0000177e,0x000700f5,0x00000027,
14590x000000ab,0x000017a3,0x00001741,0x00001722, 15070x00003246,0x0000026d,0x00001779,0x0000177d,
14600x00050051,0x00000006,0x000017a4,0x000017a3, 15080x0000177a,0x00060050,0x0000004b,0x00001783,
14610x00000001,0x00050051,0x00000006,0x000017a5, 15090x00001772,0x00001775,0x00003246,0x000300f7,
14620x000017a3,0x00000000,0x00050080,0x00000006, 15100x0000183c,0x00000000,0x000300fb,0x000000a6,
14630x000017aa,0x00001766,0x000017a4,0x00050050, 15110x00001808,0x000200f8,0x00001808,0x00050041,
14640x00000007,0x000017ab,0x000017a5,0x000017aa, 15120x00000156,0x00001809,0x000000fc,0x00000215,
14650x0004007c,0x00000014,0x0000179b,0x000017ab, 15130x0004003d,0x00000007,0x0000180a,0x00001809,
14660x00060041,0x000000db,0x00001792,0x0000179b, 15140x00050051,0x00000006,0x00001841,0x0000180a,
15150x00000000,0x000500aa,0x0000002f,0x00001842,
15160x00001841,0x000000a6,0x000300f7,0x00001847,
15170x00000000,0x000400fa,0x00001842,0x00001843,
15180x00001847,0x000200f8,0x00001843,0x00050051,
15190x00000006,0x00001845,0x0000180a,0x00000001,
15200x000500aa,0x0000002f,0x00001846,0x00001845,
15210x000000a6,0x000200f9,0x00001847,0x000200f8,
15220x00001847,0x000700f5,0x0000002f,0x00001848,
15230x00001842,0x00001808,0x00001846,0x00001843,
15240x000300f7,0x0000180e,0x00000000,0x000400fa,
15250x00001848,0x0000180c,0x0000180e,0x000200f8,
15260x0000180c,0x000200f9,0x0000183c,0x000200f8,
15270x0000180e,0x000200f9,0x0000180f,0x000200f8,
15280x0000180f,0x000700f5,0x00000006,0x00003247,
15290x000000a6,0x0000180e,0x00001839,0x00001813,
15300x000500b0,0x0000002f,0x00001812,0x00003247,
15310x000002b7,0x000400f6,0x0000183a,0x00001813,
15320x00000000,0x000400fa,0x00001812,0x00001813,
15330x0000183a,0x000200f8,0x00001813,0x00050084,
15340x00000006,0x00001815,0x0000011f,0x00003247,
15350x00050095,0x000000ab,0x00001861,0x00001841,
15360x00001815,0x00050051,0x00000006,0x00001862,
15370x00001861,0x00000001,0x00050051,0x00000006,
15380x00001863,0x00001861,0x00000000,0x00050051,
15390x00000006,0x00001866,0x0000180a,0x00000001,
15400x00050080,0x00000006,0x00001868,0x00001866,
15410x00001862,0x00050050,0x00000007,0x00001869,
15420x00001863,0x00001868,0x0004007c,0x00000014,
15430x00001859,0x00001869,0x00060041,0x000000db,
15440x00001850,0x00001859,0x000000da,0x000000da,
15450x0006003d,0x00000006,0x00001851,0x00001850,
15460x00000002,0x00000004,0x0004007c,0x00000027,
15470x0000181a,0x00001851,0x00050080,0x00000006,
15480x0000181c,0x00001815,0x0000010a,0x00050095,
15490x000000ab,0x00001882,0x00001841,0x0000181c,
15500x00050051,0x00000006,0x00001883,0x00001882,
15510x00000001,0x00050051,0x00000006,0x00001884,
15520x00001882,0x00000000,0x00050080,0x00000006,
15530x00001889,0x00001866,0x00001883,0x00050050,
15540x00000007,0x0000188a,0x00001884,0x00001889,
15550x0004007c,0x00000014,0x0000187a,0x0000188a,
15560x00060041,0x000000db,0x00001871,0x0000187a,
14670x000000da,0x000000da,0x0006003d,0x00000006, 15570x000000da,0x000000da,0x0006003d,0x00000006,
14680x00001793,0x00001792,0x00000002,0x00000004, 15580x00001872,0x00001871,0x00000002,0x00000004,
14690x0004007c,0x00000027,0x00001726,0x00001793, 15590x0004007c,0x00000027,0x00001820,0x00001872,
14700x00050080,0x00000006,0x00001728,0x00001715, 15600x00050080,0x00000006,0x00001822,0x00001815,
14710x00000118,0x00050095,0x000000ab,0x000017c4, 15610x00000111,0x00050095,0x000000ab,0x000018a3,
14720x00001741,0x00001728,0x00050051,0x00000006, 15620x00001841,0x00001822,0x00050051,0x00000006,
14730x000017c5,0x000017c4,0x00000001,0x00050051, 15630x000018a4,0x000018a3,0x00000001,0x00050051,
14740x00000006,0x000017c6,0x000017c4,0x00000000, 15640x00000006,0x000018a5,0x000018a3,0x00000000,
14750x00050080,0x00000006,0x000017cb,0x00001766, 15650x00050080,0x00000006,0x000018aa,0x00001866,
14760x000017c5,0x00050050,0x00000007,0x000017cc, 15660x000018a4,0x00050050,0x00000007,0x000018ab,
14770x000017c6,0x000017cb,0x0004007c,0x00000014, 15670x000018a5,0x000018aa,0x0004007c,0x00000014,
14780x000017bc,0x000017cc,0x00060041,0x000000db, 15680x0000189b,0x000018ab,0x00060041,0x000000db,
14790x000017b3,0x000017bc,0x000000da,0x000000da, 15690x00001892,0x0000189b,0x000000da,0x000000da,
14800x0006003d,0x00000006,0x000017b4,0x000017b3, 15700x0006003d,0x00000006,0x00001893,0x00001892,
14810x00000002,0x00000004,0x0004007c,0x00000027, 15710x00000002,0x00000004,0x0004007c,0x00000027,
14820x0000172c,0x000017b4,0x00070050,0x000002bc, 15720x00001826,0x00001893,0x00050080,0x00000006,
14830x0000172d,0x0000171a,0x00001720,0x00001726, 15730x00001828,0x00001815,0x00000118,0x00050095,
14840x0000172c,0x0008004f,0x0000004b,0x00001730, 15740x000000ab,0x000018c4,0x00001841,0x00001828,
14850x0000172d,0x0000172d,0x00000000,0x00000001, 15750x00050051,0x00000006,0x000018c5,0x000018c4,
14860x00000002,0x00050094,0x00000027,0x00001732, 15760x00000001,0x00050051,0x00000006,0x000018c6,
14870x00001730,0x00001683,0x00050081,0x00000027, 15770x000018c4,0x00000000,0x00050080,0x00000006,
14880x00001735,0x00001732,0x0000172c,0x00050041, 15780x000018cb,0x00001866,0x000018c5,0x00050050,
14890x00000028,0x00001736,0x00001705,0x0000313b, 15790x00000007,0x000018cc,0x000018c6,0x000018cb,
14900x0003003e,0x00001736,0x00001735,0x00050080, 15800x0004007c,0x00000014,0x000018bc,0x000018cc,
14910x00000006,0x00001739,0x0000313b,0x00000154, 15810x00060041,0x000000db,0x000018b3,0x000018bc,
14920x000200f9,0x0000170f,0x000200f8,0x0000173a, 15820x000000da,0x000000da,0x0006003d,0x00000006,
14930x0004003d,0x0000004b,0x0000173b,0x00001705, 15830x000018b4,0x000018b3,0x00000002,0x00000004,
14940x000200f9,0x0000173c,0x000200f8,0x0000173c, 15840x0004007c,0x00000027,0x0000182c,0x000018b4,
14950x000700f5,0x0000004b,0x0000313c,0x00001683, 15850x00070050,0x000002bc,0x0000182d,0x0000181a,
14960x0000170c,0x0000173b,0x0000173a,0x00050041, 15860x00001820,0x00001826,0x0000182c,0x0008004f,
14970x0000004c,0x00001555,0x0000151a,0x0000312e, 15870x0000004b,0x00001830,0x0000182d,0x0000182d,
14980x0003003e,0x00001555,0x0000313c,0x000200f9, 15880x00000000,0x00000001,0x00000002,0x00050094,
14990x00001556,0x000200f8,0x00001556,0x00050080, 15890x00000027,0x00001832,0x00001830,0x00001783,
15000x00000006,0x00001558,0x0000312e,0x00000154, 15900x00050081,0x00000027,0x00001835,0x00001832,
15010x000200f9,0x00001548,0x000200f8,0x00001559, 15910x0000182c,0x00050041,0x00000028,0x00001836,
15020x00050041,0x000000fe,0x0000155a,0x000000fc, 15920x00001805,0x00003247,0x0003003e,0x00001836,
15030x00000308,0x0004003d,0x00000006,0x0000155b, 15930x00001835,0x00050080,0x00000006,0x00001839,
15040x0000155a,0x00050080,0x00000006,0x0000155d, 15940x00003247,0x00000154,0x000200f9,0x0000180f,
15050x0000155b,0x00000b11,0x00050041,0x000000fe, 15950x000200f8,0x0000183a,0x0004003d,0x0000004b,
15060x0000155e,0x000000fc,0x0000022c,0x0004003d, 15960x0000183b,0x00001805,0x000200f9,0x0000183c,
15070x00000006,0x0000155f,0x0000155e,0x00050084, 15970x000200f8,0x0000183c,0x000700f5,0x0000004b,
15080x00000006,0x00001561,0x00000107,0x0000155d, 15980x00003248,0x00001783,0x0000180c,0x0000183b,
15090x00050080,0x00000006,0x00001562,0x0000155f, 15990x0000183a,0x00050041,0x0000004c,0x00001655,
15100x00001561,0x000200f9,0x00001563,0x000200f8, 16000x0000161a,0x0000323a,0x0003003e,0x00001655,
15110x00001563,0x000700f5,0x00000006,0x0000312f, 16010x00003248,0x000200f9,0x00001656,0x000200f8,
15120x000000a6,0x00001559,0x0000158a,0x00001567, 16020x00001656,0x00050080,0x00000006,0x00001658,
15130x000500b0,0x0000002f,0x00001566,0x0000312f, 16030x0000323a,0x00000154,0x000200f9,0x00001648,
15140x000002b7,0x000400f6,0x0000158b,0x00001567, 16040x000200f8,0x00001659,0x00050041,0x000000fe,
15150x00000000,0x000400fa,0x00001566,0x00001567, 16050x0000165a,0x000000fc,0x00000308,0x0004003d,
15160x0000158b,0x000200f8,0x00001567,0x00050084, 16060x00000006,0x0000165b,0x0000165a,0x00050080,
15170x00000006,0x0000156a,0x00000118,0x0000312f, 16070x00000006,0x0000165d,0x0000165b,0x00000b11,
15180x00050080,0x00000006,0x0000156b,0x00001562, 16080x00050041,0x000000fe,0x0000165e,0x000000fc,
15190x0000156a,0x00050041,0x00000156,0x0000156d, 16090x0000022c,0x0004003d,0x00000006,0x0000165f,
15200x000000fc,0x000000da,0x0004003d,0x00000007, 16100x0000165e,0x00050084,0x00000006,0x00001661,
15210x0000156e,0x0000156d,0x00060041,0x00000028, 16110x00000107,0x0000165d,0x00050080,0x00000006,
15220x0000156f,0x0000151a,0x0000312f,0x000000a6, 16120x00001662,0x0000165f,0x00001661,0x000200f9,
15230x0004003d,0x00000027,0x00001570,0x0000156f, 16130x00001663,0x000200f8,0x00001663,0x000700f5,
15240x0004007c,0x00000006,0x000017d2,0x00001570, 16140x00000006,0x0000323b,0x000000a6,0x00001659,
15250x00050051,0x00000006,0x000017eb,0x0000156e, 16150x0000168a,0x00001667,0x000500b0,0x0000002f,
15260x00000000,0x00050095,0x000000ab,0x000017ed, 16160x00001666,0x0000323b,0x000002b7,0x000400f6,
15270x000017eb,0x0000156b,0x00050051,0x00000006, 16170x0000168b,0x00001667,0x00000000,0x000400fa,
15280x000017ee,0x000017ed,0x00000001,0x00050051, 16180x00001666,0x00001667,0x0000168b,0x000200f8,
15290x00000006,0x000017ef,0x000017ed,0x00000000, 16190x00001667,0x00050084,0x00000006,0x0000166a,
15300x00050051,0x00000006,0x000017f2,0x0000156e, 16200x00000118,0x0000323b,0x00050080,0x00000006,
15310x00000001,0x00050080,0x00000006,0x000017f4, 16210x0000166b,0x00001662,0x0000166a,0x00050041,
15320x000017f2,0x000017ee,0x00050050,0x00000007, 16220x00000156,0x0000166d,0x000000fc,0x000000da,
15330x000017f5,0x000017ef,0x000017f4,0x0004007c, 16230x0004003d,0x00000007,0x0000166e,0x0000166d,
15340x00000014,0x000017e5,0x000017f5,0x00060041, 16240x00060041,0x00000028,0x0000166f,0x0000161a,
15350x000000db,0x000017dd,0x000017e5,0x000000da, 16250x0000323b,0x000000a6,0x0004003d,0x00000027,
15360x000000da,0x0005003e,0x000017dd,0x000017d2, 16260x00001670,0x0000166f,0x0004007c,0x00000006,
15370x00000002,0x00000004,0x00050080,0x00000006, 16270x000018d2,0x00001670,0x00050051,0x00000006,
15380x00001576,0x0000156b,0x0000010a,0x00060041, 16280x000018eb,0x0000166e,0x00000000,0x00050095,
15390x00000028,0x0000157a,0x0000151a,0x0000312f, 16290x000000ab,0x000018ed,0x000018eb,0x0000166b,
15400x000000b0,0x0004003d,0x00000027,0x0000157b, 16300x00050051,0x00000006,0x000018ee,0x000018ed,
15410x0000157a,0x0004007c,0x00000006,0x000017fb, 16310x00000001,0x00050051,0x00000006,0x000018ef,
15420x0000157b,0x00050095,0x000000ab,0x00001816, 16320x000018ed,0x00000000,0x00050051,0x00000006,
15430x000017eb,0x00001576,0x00050051,0x00000006, 16330x000018f2,0x0000166e,0x00000001,0x00050080,
15440x00001817,0x00001816,0x00000001,0x00050051, 16340x00000006,0x000018f4,0x000018f2,0x000018ee,
15450x00000006,0x00001818,0x00001816,0x00000000, 16350x00050050,0x00000007,0x000018f5,0x000018ef,
15460x00050080,0x00000006,0x0000181d,0x000017f2, 16360x000018f4,0x0004007c,0x00000014,0x000018e5,
15470x00001817,0x00050050,0x00000007,0x0000181e, 16370x000018f5,0x00060041,0x000000db,0x000018dd,
15480x00001818,0x0000181d,0x0004007c,0x00000014, 16380x000018e5,0x000000da,0x000000da,0x0005003e,
15490x0000180e,0x0000181e,0x00060041,0x000000db, 16390x000018dd,0x000018d2,0x00000002,0x00000004,
15500x00001806,0x0000180e,0x000000da,0x000000da, 16400x00050080,0x00000006,0x00001676,0x0000166b,
15510x0005003e,0x00001806,0x000017fb,0x00000002, 16410x0000010a,0x00060041,0x00000028,0x0000167a,
15520x00000004,0x00050080,0x00000006,0x00001581, 16420x0000161a,0x0000323b,0x000000b0,0x0004003d,
15530x0000156b,0x00000111,0x00060041,0x00000028, 16430x00000027,0x0000167b,0x0000167a,0x0004007c,
15540x00001585,0x0000151a,0x0000312f,0x00000170, 16440x00000006,0x000018fb,0x0000167b,0x00050095,
15550x0004003d,0x00000027,0x00001586,0x00001585, 16450x000000ab,0x00001916,0x000018eb,0x00001676,
15560x0004007c,0x00000006,0x00001824,0x00001586, 16460x00050051,0x00000006,0x00001917,0x00001916,
15570x00050095,0x000000ab,0x0000183f,0x000017eb, 16470x00000001,0x00050051,0x00000006,0x00001918,
15580x00001581,0x00050051,0x00000006,0x00001840, 16480x00001916,0x00000000,0x00050080,0x00000006,
15590x0000183f,0x00000001,0x00050051,0x00000006, 16490x0000191d,0x000018f2,0x00001917,0x00050050,
15600x00001841,0x0000183f,0x00000000,0x00050080, 16500x00000007,0x0000191e,0x00001918,0x0000191d,
15610x00000006,0x00001846,0x000017f2,0x00001840, 16510x0004007c,0x00000014,0x0000190e,0x0000191e,
15620x00050050,0x00000007,0x00001847,0x00001841, 16520x00060041,0x000000db,0x00001906,0x0000190e,
15630x00001846,0x0004007c,0x00000014,0x00001837, 16530x000000da,0x000000da,0x0005003e,0x00001906,
15640x00001847,0x00060041,0x000000db,0x0000182f, 16540x000018fb,0x00000002,0x00000004,0x00050080,
15650x00001837,0x000000da,0x000000da,0x0005003e, 16550x00000006,0x00001681,0x0000166b,0x00000111,
15660x0000182f,0x00001824,0x00000002,0x00000004, 16560x00060041,0x00000028,0x00001685,0x0000161a,
15670x00050080,0x00000006,0x0000158a,0x0000312f, 16570x0000323b,0x00000170,0x0004003d,0x00000027,
15680x00000154,0x000200f9,0x00001563,0x000200f8, 16580x00001686,0x00001685,0x0004007c,0x00000006,
15690x0000158b,0x00050080,0x00000006,0x0000158d, 16590x00001924,0x00001686,0x00050095,0x000000ab,
15700x00001562,0x00000347,0x00050041,0x00000156, 16600x0000193f,0x000018eb,0x00001681,0x00050051,
15710x0000158e,0x000000fc,0x000000da,0x0004003d, 16610x00000006,0x00001940,0x0000193f,0x00000001,
15720x00000007,0x0000158f,0x0000158e,0x00060041, 16620x00050051,0x00000006,0x00001941,0x0000193f,
15730x00000028,0x00001590,0x0000151a,0x00000205, 16630x00000000,0x00050080,0x00000006,0x00001946,
15740x000000a6,0x0004003d,0x00000027,0x00001591, 16640x000018f2,0x00001940,0x00050050,0x00000007,
15750x00001590,0x0004007c,0x00000006,0x0000184d, 16650x00001947,0x00001941,0x00001946,0x0004007c,
15760x00001591,0x00050051,0x00000006,0x00001866, 16660x00000014,0x00001937,0x00001947,0x00060041,
15770x0000158f,0x00000000,0x00050095,0x000000ab, 16670x000000db,0x0000192f,0x00001937,0x000000da,
15780x00001868,0x00001866,0x0000158d,0x00050051, 16680x000000da,0x0005003e,0x0000192f,0x00001924,
15790x00000006,0x00001869,0x00001868,0x00000001,
15800x00050051,0x00000006,0x0000186a,0x00001868,
15810x00000000,0x00050051,0x00000006,0x0000186d,
15820x0000158f,0x00000001,0x00050080,0x00000006,
15830x0000186f,0x0000186d,0x00001869,0x00050050,
15840x00000007,0x00001870,0x0000186a,0x0000186f,
15850x0004007c,0x00000014,0x00001860,0x00001870,
15860x00060041,0x000000db,0x00001858,0x00001860,
15870x000000da,0x000000da,0x0005003e,0x00001858,
15880x0000184d,0x00000002,0x00000004,0x00050080,
15890x00000006,0x00001594,0x00001562,0x00000352,
15900x00060041,0x00000028,0x00001597,0x0000151a,
15910x00000205,0x000000b0,0x0004003d,0x00000027,
15920x00001598,0x00001597,0x0004007c,0x00000006,
15930x00001876,0x00001598,0x00050095,0x000000ab,
15940x00001891,0x00001866,0x00001594,0x00050051,
15950x00000006,0x00001892,0x00001891,0x00000001,
15960x00050051,0x00000006,0x00001893,0x00001891,
15970x00000000,0x00050080,0x00000006,0x00001898,
15980x0000186d,0x00001892,0x00050050,0x00000007,
15990x00001899,0x00001893,0x00001898,0x0004007c,
16000x00000014,0x00001889,0x00001899,0x00060041,
16010x000000db,0x00001881,0x00001889,0x000000da,
16020x000000da,0x0005003e,0x00001881,0x00001876,
16030x00000002,0x00000004,0x00050080,0x00000006, 16690x00000002,0x00000004,0x00050080,0x00000006,
16040x0000159b,0x00001562,0x0000035d,0x00060041, 16700x0000168a,0x0000323b,0x00000154,0x000200f9,
16050x00000028,0x0000159e,0x0000151a,0x00000205, 16710x00001663,0x000200f8,0x0000168b,0x00050080,
16060x00000170,0x0004003d,0x00000027,0x0000159f, 16720x00000006,0x0000168d,0x00001662,0x00000347,
16070x0000159e,0x0004007c,0x00000006,0x0000189f, 16730x00050041,0x00000156,0x0000168e,0x000000fc,
16080x0000159f,0x00050095,0x000000ab,0x000018ba, 16740x000000da,0x0004003d,0x00000007,0x0000168f,
16090x00001866,0x0000159b,0x00050051,0x00000006, 16750x0000168e,0x00060041,0x00000028,0x00001690,
16100x000018bb,0x000018ba,0x00000001,0x00050051, 16760x0000161a,0x00000205,0x000000a6,0x0004003d,
16110x00000006,0x000018bc,0x000018ba,0x00000000, 16770x00000027,0x00001691,0x00001690,0x0004007c,
16120x00050080,0x00000006,0x000018c1,0x0000186d, 16780x00000006,0x0000194d,0x00001691,0x00050051,
16130x000018bb,0x00050050,0x00000007,0x000018c2, 16790x00000006,0x00001966,0x0000168f,0x00000000,
16140x000018bc,0x000018c1,0x0004007c,0x00000014, 16800x00050095,0x000000ab,0x00001968,0x00001966,
16150x000018b2,0x000018c2,0x00060041,0x000000db, 16810x0000168d,0x00050051,0x00000006,0x00001969,
16160x000018aa,0x000018b2,0x000000da,0x000000da, 16820x00001968,0x00000001,0x00050051,0x00000006,
16170x0005003e,0x000018aa,0x0000189f,0x00000002, 16830x0000196a,0x00001968,0x00000000,0x00050051,
16180x00000004,0x00050080,0x00000006,0x000015a2, 16840x00000006,0x0000196d,0x0000168f,0x00000001,
16190x00001562,0x00000368,0x00050041,0x000000fe, 16850x00050080,0x00000006,0x0000196f,0x0000196d,
16200x000015a5,0x000000fc,0x0000036a,0x0004003d, 16860x00001969,0x00050050,0x00000007,0x00001970,
16210x00000006,0x000015a6,0x000015a5,0x00050095, 16870x0000196a,0x0000196f,0x0004007c,0x00000014,
16220x000000ab,0x000018da,0x00001866,0x000015a2, 16880x00001960,0x00001970,0x00060041,0x000000db,
16230x00050051,0x00000006,0x000018db,0x000018da, 16890x00001958,0x00001960,0x000000da,0x000000da,
16240x00000001,0x00050051,0x00000006,0x000018dc, 16900x0005003e,0x00001958,0x0000194d,0x00000002,
16250x000018da,0x00000000,0x00050080,0x00000006, 16910x00000004,0x00050080,0x00000006,0x00001694,
16260x000018e1,0x0000186d,0x000018db,0x00050050, 16920x00001662,0x00000352,0x00060041,0x00000028,
16270x00000007,0x000018e2,0x000018dc,0x000018e1, 16930x00001697,0x0000161a,0x00000205,0x000000b0,
16280x0004007c,0x00000014,0x000018d2,0x000018e2, 16940x0004003d,0x00000027,0x00001698,0x00001697,
16290x00060041,0x000000db,0x000018ca,0x000018d2, 16950x0004007c,0x00000006,0x00001976,0x00001698,
16300x000000da,0x000000da,0x0005003e,0x000018ca, 16960x00050095,0x000000ab,0x00001991,0x00001966,
16310x000015a6,0x00000002,0x00000004,0x00050080, 16970x00001694,0x00050051,0x00000006,0x00001992,
16320x00000006,0x000015a9,0x00001562,0x00000374, 16980x00001991,0x00000001,0x00050051,0x00000006,
16330x00050095,0x000000ab,0x000018fa,0x00001866, 16990x00001993,0x00001991,0x00000000,0x00050080,
16340x000015a9,0x00050051,0x00000006,0x000018fb, 17000x00000006,0x00001998,0x0000196d,0x00001992,
16350x000018fa,0x00000001,0x00050051,0x00000006, 17010x00050050,0x00000007,0x00001999,0x00001993,
16360x000018fc,0x000018fa,0x00000000,0x00050080, 17020x00001998,0x0004007c,0x00000014,0x00001989,
16370x00000006,0x00001901,0x0000186d,0x000018fb, 17030x00001999,0x00060041,0x000000db,0x00001981,
16380x00050050,0x00000007,0x00001902,0x000018fc, 17040x00001989,0x000000da,0x000000da,0x0005003e,
16390x00001901,0x0004007c,0x00000014,0x000018f2, 17050x00001981,0x00001976,0x00000002,0x00000004,
16400x00001902,0x00060041,0x000000db,0x000018ea, 17060x00050080,0x00000006,0x0000169b,0x00001662,
16410x000018f2,0x000000da,0x000000da,0x0005003e, 17070x0000035d,0x00060041,0x00000028,0x0000169e,
16420x000018ea,0x00000b11,0x00000002,0x00000004, 17080x0000161a,0x00000205,0x00000170,0x0004003d,
16430x00050080,0x00000006,0x000015af,0x00001562, 17090x00000027,0x0000169f,0x0000169e,0x0004007c,
16440x0000037e,0x00050095,0x000000ab,0x0000191a, 17100x00000006,0x0000199f,0x0000169f,0x00050095,
16450x00001866,0x000015af,0x00050051,0x00000006, 17110x000000ab,0x000019ba,0x00001966,0x0000169b,
16460x0000191b,0x0000191a,0x00000001,0x00050051, 17120x00050051,0x00000006,0x000019bb,0x000019ba,
16470x00000006,0x0000191c,0x0000191a,0x00000000, 17130x00000001,0x00050051,0x00000006,0x000019bc,
16480x00050080,0x00000006,0x00001921,0x0000186d, 17140x000019ba,0x00000000,0x00050080,0x00000006,
16490x0000191b,0x00050050,0x00000007,0x00001922, 17150x000019c1,0x0000196d,0x000019bb,0x00050050,
16500x0000191c,0x00001921,0x0004007c,0x00000014, 17160x00000007,0x000019c2,0x000019bc,0x000019c1,
16510x00001912,0x00001922,0x00060041,0x000000db, 17170x0004007c,0x00000014,0x000019b2,0x000019c2,
16520x0000190a,0x00001912,0x000000da,0x000000da, 17180x00060041,0x000000db,0x000019aa,0x000019b2,
16530x0005003e,0x0000190a,0x00000380,0x00000002, 17190x000000da,0x000000da,0x0005003e,0x000019aa,
16540x00000004,0x00050080,0x00000006,0x000015b4, 17200x0000199f,0x00000002,0x00000004,0x00050080,
16550x00001562,0x00000388,0x00050095,0x000000ab, 17210x00000006,0x000016a2,0x00001662,0x00000368,
16560x0000193a,0x00001866,0x000015b4,0x00050051, 17220x00050041,0x000000fe,0x000016a5,0x000000fc,
16570x00000006,0x0000193b,0x0000193a,0x00000001, 17230x0000036a,0x0004003d,0x00000006,0x000016a6,
16580x00050051,0x00000006,0x0000193c,0x0000193a, 17240x000016a5,0x00050095,0x000000ab,0x000019da,
16590x00000000,0x00050080,0x00000006,0x00001941, 17250x00001966,0x000016a2,0x00050051,0x00000006,
16600x0000186d,0x0000193b,0x00050050,0x00000007, 17260x000019db,0x000019da,0x00000001,0x00050051,
16610x00001942,0x0000193c,0x00001941,0x0004007c, 17270x00000006,0x000019dc,0x000019da,0x00000000,
16620x00000014,0x00001932,0x00001942,0x00060041, 17280x00050080,0x00000006,0x000019e1,0x0000196d,
16630x000000db,0x0000192a,0x00001932,0x000000da, 17290x000019db,0x00050050,0x00000007,0x000019e2,
16640x000000da,0x0005003e,0x0000192a,0x0000038a, 17300x000019dc,0x000019e1,0x0004007c,0x00000014,
16650x00000002,0x00000004,0x00050041,0x0000004c, 17310x000019d2,0x000019e2,0x00060041,0x000000db,
16660x000015b8,0x0000151a,0x000000da,0x0004003d, 17320x000019ca,0x000019d2,0x000000da,0x000000da,
16670x0000004b,0x000015b9,0x000015b8,0x0004009c, 17330x0005003e,0x000019ca,0x000016a6,0x00000002,
16680x00000395,0x000015ba,0x000015b9,0x0004009a, 17340x00000004,0x00050080,0x00000006,0x000016a9,
16690x0000002f,0x000015bb,0x000015ba,0x000400a8, 17350x00001662,0x00000374,0x00050095,0x000000ab,
16700x0000002f,0x000015bc,0x000015bb,0x000300f7, 17360x000019fa,0x00001966,0x000016a9,0x00050051,
16710x000015c2,0x00000000,0x000400fa,0x000015bc, 17370x00000006,0x000019fb,0x000019fa,0x00000001,
16720x000015bd,0x000015c2,0x000200f8,0x000015bd, 17380x00050051,0x00000006,0x000019fc,0x000019fa,
16730x00050041,0x0000004c,0x000015be,0x0000151a, 17390x00000000,0x00050080,0x00000006,0x00001a01,
16740x00000154,0x0004003d,0x0000004b,0x000015bf, 17400x0000196d,0x000019fb,0x00050050,0x00000007,
16750x000015be,0x0004009c,0x00000395,0x000015c0, 17410x00001a02,0x000019fc,0x00001a01,0x0004007c,
16760x000015bf,0x0004009a,0x0000002f,0x000015c1, 17420x00000014,0x000019f2,0x00001a02,0x00060041,
16770x000015c0,0x000200f9,0x000015c2,0x000200f8, 17430x000000db,0x000019ea,0x000019f2,0x000000da,
16780x000015c2,0x000700f5,0x0000002f,0x000015c3, 17440x000000da,0x0005003e,0x000019ea,0x00000b11,
16790x000015bb,0x0000158b,0x000015c1,0x000015bd,
16800x000400a8,0x0000002f,0x000015c4,0x000015c3,
16810x000300f7,0x000015ca,0x00000000,0x000400fa,
16820x000015c4,0x000015c5,0x000015ca,0x000200f8,
16830x000015c5,0x00050041,0x0000004c,0x000015c6,
16840x0000151a,0x00000205,0x0004003d,0x0000004b,
16850x000015c7,0x000015c6,0x0004009c,0x00000395,
16860x000015c8,0x000015c7,0x0004009a,0x0000002f,
16870x000015c9,0x000015c8,0x000200f9,0x000015ca,
16880x000200f8,0x000015ca,0x000700f5,0x0000002f,
16890x000015cb,0x000015c3,0x000015c2,0x000015c9,
16900x000015c5,0x0004003d,0x0000004b,0x000015cd,
16910x000015b8,0x00050041,0x0000004c,0x000015ce,
16920x0000151a,0x00000154,0x0004003d,0x0000004b,
16930x000015cf,0x000015ce,0x0007000c,0x0000004b,
16940x000015d0,0x00000001,0x00000025,0x000015cd,
16950x000015cf,0x00050041,0x0000004c,0x000015d1,
16960x0000151a,0x00000205,0x0004003d,0x0000004b,
16970x000015d2,0x000015d1,0x0007000c,0x0000004b,
16980x000015d3,0x00000001,0x00000025,0x000015d0,
16990x000015d2,0x0004003d,0x0000004b,0x000015d5,
17000x000015b8,0x0004003d,0x0000004b,0x000015d7,
17010x000015ce,0x0007000c,0x0000004b,0x000015d8,
17020x00000001,0x00000028,0x000015d5,0x000015d7,
17030x0004003d,0x0000004b,0x000015da,0x000015d1,
17040x0007000c,0x0000004b,0x000015db,0x00000001,
17050x00000028,0x000015d8,0x000015da,0x00060050,
17060x00000395,0x0000319d,0x000015cb,0x000015cb,
17070x000015cb,0x000600a9,0x0000004b,0x0000319e,
17080x0000319d,0x0000319b,0x000015db,0x000600a9,
17090x0000004b,0x000031a0,0x0000319d,0x00003199,
17100x000015d3,0x00050041,0x000000fe,0x0000198c,
17110x000000fc,0x000000fd,0x0004003d,0x00000006,
17120x0000198d,0x0000198c,0x00050084,0x00000006,
17130x0000198e,0x0000011f,0x0000198d,0x00050080,
17140x00000006,0x0000198f,0x00000107,0x0000198e,
17150x00050080,0x00000006,0x00001995,0x0000198d,
17160x0000319c,0x00050086,0x00000006,0x00001996,
17170x00001995,0x00000101,0x00050084,0x00000006,
17180x00001988,0x00000107,0x00001996,0x00050080,
17190x00000006,0x00001989,0x0000198f,0x00001988,
17200x00050084,0x00000006,0x00001959,0x00000150,
17210x0000155d,0x00050080,0x00000006,0x0000195a,
17220x00001989,0x00001959,0x00050041,0x00000156,
17230x0000195b,0x000000fc,0x00000154,0x0004003d,
17240x00000007,0x0000195c,0x0000195b,0x00050051,
17250x00000027,0x0000195f,0x000031a0,0x00000000,
17260x0004007c,0x00000006,0x0000199c,0x0000195f,
17270x00050051,0x00000006,0x000019b5,0x0000195c,
17280x00000000,0x00050095,0x000000ab,0x000019b7,
17290x000019b5,0x0000195a,0x00050051,0x00000006,
17300x000019b8,0x000019b7,0x00000001,0x00050051,
17310x00000006,0x000019b9,0x000019b7,0x00000000,
17320x00050051,0x00000006,0x000019bc,0x0000195c,
17330x00000001,0x00050080,0x00000006,0x000019be,
17340x000019bc,0x000019b8,0x00050050,0x00000007,
17350x000019bf,0x000019b9,0x000019be,0x0004007c,
17360x00000014,0x000019af,0x000019bf,0x00060041,
17370x000000db,0x000019a7,0x000019af,0x000000da,
17380x000000da,0x0005003e,0x000019a7,0x0000199c,
17390x00000002,0x00000004,0x00050080,0x00000006, 17450x00000002,0x00000004,0x00050080,0x00000006,
17400x00001962,0x0000195a,0x0000010a,0x00050051, 17460x000016af,0x00001662,0x0000037e,0x00050095,
17410x00000027,0x00001966,0x000031a0,0x00000001, 17470x000000ab,0x00001a1a,0x00001966,0x000016af,
17420x0004007c,0x00000006,0x000019c5,0x00001966, 17480x00050051,0x00000006,0x00001a1b,0x00001a1a,
17430x00050095,0x000000ab,0x000019e0,0x000019b5, 17490x00000001,0x00050051,0x00000006,0x00001a1c,
17440x00001962,0x00050051,0x00000006,0x000019e1, 17500x00001a1a,0x00000000,0x00050080,0x00000006,
17450x000019e0,0x00000001,0x00050051,0x00000006, 17510x00001a21,0x0000196d,0x00001a1b,0x00050050,
17460x000019e2,0x000019e0,0x00000000,0x00050080, 17520x00000007,0x00001a22,0x00001a1c,0x00001a21,
17470x00000006,0x000019e7,0x000019bc,0x000019e1, 17530x0004007c,0x00000014,0x00001a12,0x00001a22,
17480x00050050,0x00000007,0x000019e8,0x000019e2, 17540x00060041,0x000000db,0x00001a0a,0x00001a12,
17490x000019e7,0x0004007c,0x00000014,0x000019d8, 17550x000000da,0x000000da,0x0005003e,0x00001a0a,
17500x000019e8,0x00060041,0x000000db,0x000019d0, 17560x00000380,0x00000002,0x00000004,0x00050080,
17510x000019d8,0x000000da,0x000000da,0x0005003e, 17570x00000006,0x000016b4,0x00001662,0x00000388,
17520x000019d0,0x000019c5,0x00000002,0x00000004, 17580x00050095,0x000000ab,0x00001a3a,0x00001966,
17530x00050080,0x00000006,0x00001969,0x0000195a, 17590x000016b4,0x00050051,0x00000006,0x00001a3b,
17540x00000111,0x00050051,0x00000027,0x0000196d, 17600x00001a3a,0x00000001,0x00050051,0x00000006,
17550x000031a0,0x00000002,0x0004007c,0x00000006, 17610x00001a3c,0x00001a3a,0x00000000,0x00050080,
17560x000019ee,0x0000196d,0x00050095,0x000000ab, 17620x00000006,0x00001a41,0x0000196d,0x00001a3b,
17570x00001a09,0x000019b5,0x00001969,0x00050051, 17630x00050050,0x00000007,0x00001a42,0x00001a3c,
17580x00000006,0x00001a0a,0x00001a09,0x00000001, 17640x00001a41,0x0004007c,0x00000014,0x00001a32,
17590x00050051,0x00000006,0x00001a0b,0x00001a09, 17650x00001a42,0x00060041,0x000000db,0x00001a2a,
17600x00000000,0x00050080,0x00000006,0x00001a10, 17660x00001a32,0x000000da,0x000000da,0x0005003e,
17610x000019bc,0x00001a0a,0x00050050,0x00000007, 17670x00001a2a,0x0000038a,0x00000002,0x00000004,
17620x00001a11,0x00001a0b,0x00001a10,0x0004007c, 17680x00050041,0x0000004c,0x000016b8,0x0000161a,
17630x00000014,0x00001a01,0x00001a11,0x00060041, 17690x000000da,0x0004003d,0x0000004b,0x000016b9,
17640x000000db,0x000019f9,0x00001a01,0x000000da, 17700x000016b8,0x0004009c,0x00000395,0x000016ba,
17650x000000da,0x0005003e,0x000019f9,0x000019ee, 17710x000016b9,0x0004009a,0x0000002f,0x000016bb,
17720x000016ba,0x000400a8,0x0000002f,0x000016bc,
17730x000016bb,0x000300f7,0x000016c2,0x00000000,
17740x000400fa,0x000016bc,0x000016bd,0x000016c2,
17750x000200f8,0x000016bd,0x00050041,0x0000004c,
17760x000016be,0x0000161a,0x00000154,0x0004003d,
17770x0000004b,0x000016bf,0x000016be,0x0004009c,
17780x00000395,0x000016c0,0x000016bf,0x0004009a,
17790x0000002f,0x000016c1,0x000016c0,0x000200f9,
17800x000016c2,0x000200f8,0x000016c2,0x000700f5,
17810x0000002f,0x000016c3,0x000016bb,0x0000168b,
17820x000016c1,0x000016bd,0x000400a8,0x0000002f,
17830x000016c4,0x000016c3,0x000300f7,0x000016ca,
17840x00000000,0x000400fa,0x000016c4,0x000016c5,
17850x000016ca,0x000200f8,0x000016c5,0x00050041,
17860x0000004c,0x000016c6,0x0000161a,0x00000205,
17870x0004003d,0x0000004b,0x000016c7,0x000016c6,
17880x0004009c,0x00000395,0x000016c8,0x000016c7,
17890x0004009a,0x0000002f,0x000016c9,0x000016c8,
17900x000200f9,0x000016ca,0x000200f8,0x000016ca,
17910x000700f5,0x0000002f,0x000016cb,0x000016c3,
17920x000016c2,0x000016c9,0x000016c5,0x0004003d,
17930x0000004b,0x000016cd,0x000016b8,0x00050041,
17940x0000004c,0x000016ce,0x0000161a,0x00000154,
17950x0004003d,0x0000004b,0x000016cf,0x000016ce,
17960x0007000c,0x0000004b,0x000016d0,0x00000001,
17970x00000025,0x000016cd,0x000016cf,0x00050041,
17980x0000004c,0x000016d1,0x0000161a,0x00000205,
17990x0004003d,0x0000004b,0x000016d2,0x000016d1,
18000x0007000c,0x0000004b,0x000016d3,0x00000001,
18010x00000025,0x000016d0,0x000016d2,0x0004003d,
18020x0000004b,0x000016d5,0x000016b8,0x0004003d,
18030x0000004b,0x000016d7,0x000016ce,0x0007000c,
18040x0000004b,0x000016d8,0x00000001,0x00000028,
18050x000016d5,0x000016d7,0x0004003d,0x0000004b,
18060x000016da,0x000016d1,0x0007000c,0x0000004b,
18070x000016db,0x00000001,0x00000028,0x000016d8,
18080x000016da,0x00060050,0x00000395,0x000032a9,
18090x000016cb,0x000016cb,0x000016cb,0x000600a9,
18100x0000004b,0x000032aa,0x000032a9,0x000032a7,
18110x000016db,0x000600a9,0x0000004b,0x000032ac,
18120x000032a9,0x000032a5,0x000016d3,0x00050041,
18130x000000fe,0x00001a8c,0x000000fc,0x000000fd,
18140x0004003d,0x00000006,0x00001a8d,0x00001a8c,
18150x00050084,0x00000006,0x00001a8e,0x0000011f,
18160x00001a8d,0x00050080,0x00000006,0x00001a8f,
18170x00000107,0x00001a8e,0x00050080,0x00000006,
18180x00001a95,0x00001a8d,0x000032a8,0x00050086,
18190x00000006,0x00001a96,0x00001a95,0x00000101,
18200x00050084,0x00000006,0x00001a88,0x00000107,
18210x00001a96,0x00050080,0x00000006,0x00001a89,
18220x00001a8f,0x00001a88,0x00050084,0x00000006,
18230x00001a59,0x00000150,0x0000165d,0x00050080,
18240x00000006,0x00001a5a,0x00001a89,0x00001a59,
18250x00050041,0x00000156,0x00001a5b,0x000000fc,
18260x00000154,0x0004003d,0x00000007,0x00001a5c,
18270x00001a5b,0x00050051,0x00000027,0x00001a5f,
18280x000032ac,0x00000000,0x0004007c,0x00000006,
18290x00001a9c,0x00001a5f,0x00050051,0x00000006,
18300x00001ab5,0x00001a5c,0x00000000,0x00050095,
18310x000000ab,0x00001ab7,0x00001ab5,0x00001a5a,
18320x00050051,0x00000006,0x00001ab8,0x00001ab7,
18330x00000001,0x00050051,0x00000006,0x00001ab9,
18340x00001ab7,0x00000000,0x00050051,0x00000006,
18350x00001abc,0x00001a5c,0x00000001,0x00050080,
18360x00000006,0x00001abe,0x00001abc,0x00001ab8,
18370x00050050,0x00000007,0x00001abf,0x00001ab9,
18380x00001abe,0x0004007c,0x00000014,0x00001aaf,
18390x00001abf,0x00060041,0x000000db,0x00001aa7,
18400x00001aaf,0x000000da,0x000000da,0x0005003e,
18410x00001aa7,0x00001a9c,0x00000002,0x00000004,
18420x00050080,0x00000006,0x00001a62,0x00001a5a,
18430x0000010a,0x00050051,0x00000027,0x00001a66,
18440x000032ac,0x00000001,0x0004007c,0x00000006,
18450x00001ac5,0x00001a66,0x00050095,0x000000ab,
18460x00001ae0,0x00001ab5,0x00001a62,0x00050051,
18470x00000006,0x00001ae1,0x00001ae0,0x00000001,
18480x00050051,0x00000006,0x00001ae2,0x00001ae0,
18490x00000000,0x00050080,0x00000006,0x00001ae7,
18500x00001abc,0x00001ae1,0x00050050,0x00000007,
18510x00001ae8,0x00001ae2,0x00001ae7,0x0004007c,
18520x00000014,0x00001ad8,0x00001ae8,0x00060041,
18530x000000db,0x00001ad0,0x00001ad8,0x000000da,
18540x000000da,0x0005003e,0x00001ad0,0x00001ac5,
17660x00000002,0x00000004,0x00050080,0x00000006, 18550x00000002,0x00000004,0x00050080,0x00000006,
17670x00001970,0x0000195a,0x00000118,0x00050051, 18560x00001a69,0x00001a5a,0x00000111,0x00050051,
17680x00000027,0x00001974,0x0000319e,0x00000000, 18570x00000027,0x00001a6d,0x000032ac,0x00000002,
17690x0004007c,0x00000006,0x00001a17,0x00001974, 18580x0004007c,0x00000006,0x00001aee,0x00001a6d,
17700x00050095,0x000000ab,0x00001a32,0x000019b5, 18590x00050095,0x000000ab,0x00001b09,0x00001ab5,
17710x00001970,0x00050051,0x00000006,0x00001a33, 18600x00001a69,0x00050051,0x00000006,0x00001b0a,
17720x00001a32,0x00000001,0x00050051,0x00000006, 18610x00001b09,0x00000001,0x00050051,0x00000006,
17730x00001a34,0x00001a32,0x00000000,0x00050080, 18620x00001b0b,0x00001b09,0x00000000,0x00050080,
17740x00000006,0x00001a39,0x000019bc,0x00001a33, 18630x00000006,0x00001b10,0x00001abc,0x00001b0a,
17750x00050050,0x00000007,0x00001a3a,0x00001a34, 18640x00050050,0x00000007,0x00001b11,0x00001b0b,
17760x00001a39,0x0004007c,0x00000014,0x00001a2a, 18650x00001b10,0x0004007c,0x00000014,0x00001b01,
17770x00001a3a,0x00060041,0x000000db,0x00001a22, 18660x00001b11,0x00060041,0x000000db,0x00001af9,
17780x00001a2a,0x000000da,0x000000da,0x0005003e, 18670x00001b01,0x000000da,0x000000da,0x0005003e,
17790x00001a22,0x00001a17,0x00000002,0x00000004, 18680x00001af9,0x00001aee,0x00000002,0x00000004,
17800x00050080,0x00000006,0x00001977,0x0000195a, 18690x00050080,0x00000006,0x00001a70,0x00001a5a,
17810x0000011f,0x00050051,0x00000027,0x0000197b, 18700x00000118,0x00050051,0x00000027,0x00001a74,
17820x0000319e,0x00000001,0x0004007c,0x00000006, 18710x000032aa,0x00000000,0x0004007c,0x00000006,
17830x00001a40,0x0000197b,0x00050095,0x000000ab, 18720x00001b17,0x00001a74,0x00050095,0x000000ab,
17840x00001a5b,0x000019b5,0x00001977,0x00050051, 18730x00001b32,0x00001ab5,0x00001a70,0x00050051,
17850x00000006,0x00001a5c,0x00001a5b,0x00000001, 18740x00000006,0x00001b33,0x00001b32,0x00000001,
17860x00050051,0x00000006,0x00001a5d,0x00001a5b, 18750x00050051,0x00000006,0x00001b34,0x00001b32,
17870x00000000,0x00050080,0x00000006,0x00001a62, 18760x00000000,0x00050080,0x00000006,0x00001b39,
17880x000019bc,0x00001a5c,0x00050050,0x00000007, 18770x00001abc,0x00001b33,0x00050050,0x00000007,
17890x00001a63,0x00001a5d,0x00001a62,0x0004007c, 18780x00001b3a,0x00001b34,0x00001b39,0x0004007c,
17900x00000014,0x00001a53,0x00001a63,0x00060041, 18790x00000014,0x00001b2a,0x00001b3a,0x00060041,
17910x000000db,0x00001a4b,0x00001a53,0x000000da, 18800x000000db,0x00001b22,0x00001b2a,0x000000da,
17920x000000da,0x0005003e,0x00001a4b,0x00001a40, 18810x000000da,0x0005003e,0x00001b22,0x00001b17,
17930x00000002,0x00000004,0x00050080,0x00000006, 18820x00000002,0x00000004,0x00050080,0x00000006,
17940x0000197e,0x0000195a,0x00000189,0x00050051, 18830x00001a77,0x00001a5a,0x0000011f,0x00050051,
17950x00000027,0x00001982,0x0000319e,0x00000002, 18840x00000027,0x00001a7b,0x000032aa,0x00000001,
17960x0004007c,0x00000006,0x00001a69,0x00001982, 18850x0004007c,0x00000006,0x00001b40,0x00001a7b,
17970x00050095,0x000000ab,0x00001a84,0x000019b5, 18860x00050095,0x000000ab,0x00001b5b,0x00001ab5,
17980x0000197e,0x00050051,0x00000006,0x00001a85, 18870x00001a77,0x00050051,0x00000006,0x00001b5c,
17990x00001a84,0x00000001,0x00050051,0x00000006, 18880x00001b5b,0x00000001,0x00050051,0x00000006,
18000x00001a86,0x00001a84,0x00000000,0x00050080, 18890x00001b5d,0x00001b5b,0x00000000,0x00050080,
18010x00000006,0x00001a8b,0x000019bc,0x00001a85, 18900x00000006,0x00001b62,0x00001abc,0x00001b5c,
18020x00050050,0x00000007,0x00001a8c,0x00001a86, 18910x00050050,0x00000007,0x00001b63,0x00001b5d,
18030x00001a8b,0x0004007c,0x00000014,0x00001a7c, 18920x00001b62,0x0004007c,0x00000014,0x00001b53,
18040x00001a8c,0x00060041,0x000000db,0x00001a74, 18930x00001b63,0x00060041,0x000000db,0x00001b4b,
18050x00001a7c,0x000000da,0x000000da,0x0005003e, 18940x00001b53,0x000000da,0x000000da,0x0005003e,
18060x00001a74,0x00001a69,0x00000002,0x00000004, 18950x00001b4b,0x00001b40,0x00000002,0x00000004,
18070x000300f7,0x00001acc,0x00000000,0x000300fb, 18960x00050080,0x00000006,0x00001a7e,0x00001a5a,
18080x000000a6,0x00001a9b,0x000200f8,0x00001a9b, 18970x00000189,0x00050051,0x00000027,0x00001a82,
18090x000500bc,0x0000002f,0x00001ad3,0x0000195f, 18980x000032aa,0x00000002,0x0004007c,0x00000006,
18100x00001974,0x000300f7,0x00001ada,0x00000000, 18990x00001b69,0x00001a82,0x00050095,0x000000ab,
18110x000400fa,0x00001ad3,0x00001ad4,0x00001ada, 19000x00001b84,0x00001ab5,0x00001a7e,0x00050051,
18120x000200f8,0x00001ad4,0x000500bc,0x0000002f, 19010x00000006,0x00001b85,0x00001b84,0x00000001,
18130x00001ad9,0x00001966,0x0000197b,0x000200f9, 19020x00050051,0x00000006,0x00001b86,0x00001b84,
18140x00001ada,0x000200f8,0x00001ada,0x000700f5, 19030x00000000,0x00050080,0x00000006,0x00001b8b,
18150x0000002f,0x00001adb,0x00001ad3,0x00001a9b, 19040x00001abc,0x00001b85,0x00050050,0x00000007,
18160x00001ad9,0x00001ad4,0x000300f7,0x00001ae2, 19050x00001b8c,0x00001b86,0x00001b8b,0x0004007c,
18170x00000000,0x000400fa,0x00001adb,0x00001adc, 19060x00000014,0x00001b7c,0x00001b8c,0x00060041,
18180x00001ae2,0x000200f8,0x00001adc,0x000500bc, 19070x000000db,0x00001b74,0x00001b7c,0x000000da,
18190x0000002f,0x00001ae1,0x0000196d,0x00001982, 19080x000000da,0x0005003e,0x00001b74,0x00001b69,
18200x000200f9,0x00001ae2,0x000200f8,0x00001ae2, 19090x00000002,0x00000004,0x000300f7,0x00001bcc,
18210x000700f5,0x0000002f,0x00001ae3,0x00001adb, 19100x00000000,0x000300fb,0x000000a6,0x00001b9b,
18220x00001ada,0x00001ae1,0x00001adc,0x000400a8, 19110x000200f8,0x00001b9b,0x000500bc,0x0000002f,
18230x0000002f,0x00001ae4,0x00001ae3,0x000300f7, 19120x00001bd3,0x00001a5f,0x00001a74,0x000300f7,
18240x00001aa0,0x00000000,0x000400fa,0x00001ae4, 19130x00001bda,0x00000000,0x000400fa,0x00001bd3,
18250x00001a9f,0x00001aa0,0x000200f8,0x00001a9f, 19140x00001bd4,0x00001bda,0x000200f8,0x00001bd4,
18260x000200f9,0x00001acc,0x000200f8,0x00001aa0, 19150x000500bc,0x0000002f,0x00001bd9,0x00001a66,
18270x00050081,0x0000004b,0x00001aa3,0x000031a0, 19160x00001a7b,0x000200f9,0x00001bda,0x000200f8,
18280x0000319e,0x0005008e,0x0000004b,0x00001aa4, 19170x00001bda,0x000700f5,0x0000002f,0x00001bdb,
18290x00001aa3,0x000001ed,0x00050095,0x000000ab, 19180x00001bd3,0x00001b9b,0x00001bd9,0x00001bd4,
18300x00001af4,0x000019b5,0x000000a6,0x00050051, 19190x000300f7,0x00001be2,0x00000000,0x000400fa,
18310x00000006,0x00001af5,0x00001af4,0x00000001, 19200x00001bdb,0x00001bdc,0x00001be2,0x000200f8,
18320x00050051,0x00000006,0x00001af6,0x00001af4, 19210x00001bdc,0x000500bc,0x0000002f,0x00001be1,
18330x00000000,0x00050080,0x00000006,0x00001afb, 19220x00001a6d,0x00001a82,0x000200f9,0x00001be2,
18340x000019bc,0x00001af5,0x00050050,0x00000007, 19230x000200f8,0x00001be2,0x000700f5,0x0000002f,
18350x00001afc,0x00001af6,0x00001afb,0x0004007c, 19240x00001be3,0x00001bdb,0x00001bda,0x00001be1,
18360x00000014,0x00001aec,0x00001afc,0x00060041, 19250x00001bdc,0x000400a8,0x0000002f,0x00001be4,
18370x000000db,0x00001aa9,0x00001aec,0x000000da, 19260x00001be3,0x000300f7,0x00001ba0,0x00000000,
18380x000000da,0x00050051,0x00000027,0x00001aab, 19270x000400fa,0x00001be4,0x00001b9f,0x00001ba0,
18390x00001aa4,0x00000000,0x0004007c,0x00000006, 19280x000200f8,0x00001b9f,0x000200f9,0x00001bcc,
18400x00001b02,0x00001aab,0x000500c7,0x00000006, 19290x000200f8,0x00001ba0,0x00050081,0x0000004b,
18410x00001b04,0x00001b02,0x00000130,0x000500ab, 19300x00001ba3,0x000032ac,0x000032aa,0x0005008e,
18420x0000002f,0x00001b05,0x00001b04,0x000000a6, 19310x0000004b,0x00001ba4,0x00001ba3,0x000001ed,
18430x000300f7,0x00001b0c,0x00000000,0x000400fa, 19320x00050095,0x000000ab,0x00001bf4,0x00001ab5,
18440x00001b05,0x00001b06,0x00001b09,0x000200f8, 19330x000000a6,0x00050051,0x00000006,0x00001bf5,
18450x00001b06,0x000400c8,0x00000006,0x00001b08, 19340x00001bf4,0x00000001,0x00050051,0x00000006,
18460x00001b02,0x000200f9,0x00001b0c,0x000200f8, 19350x00001bf6,0x00001bf4,0x00000000,0x00050080,
18470x00001b09,0x000500c5,0x00000006,0x00001b0b, 19360x00000006,0x00001bfb,0x00001abc,0x00001bf5,
18480x00001b02,0x00000130,0x000200f9,0x00001b0c, 19370x00050050,0x00000007,0x00001bfc,0x00001bf6,
18490x000200f8,0x00001b0c,0x000700f5,0x00000006, 19380x00001bfb,0x0004007c,0x00000014,0x00001bec,
18500x00003132,0x00001b08,0x00001b06,0x00001b0b, 19390x00001bfc,0x00060041,0x000000db,0x00001ba9,
18510x00001b09,0x000700ed,0x00000006,0x00001aad, 19400x00001bec,0x000000da,0x000000da,0x00050051,
18520x00001aa9,0x000000b0,0x000000a6,0x00003132, 19410x00000027,0x00001bab,0x00001ba4,0x00000000,
18530x00060041,0x000000db,0x00001aaf,0x00001aec, 19420x0004007c,0x00000006,0x00001c02,0x00001bab,
18540x000000da,0x00000154,0x00050051,0x00000027, 19430x000500c7,0x00000006,0x00001c04,0x00001c02,
18550x00001ab1,0x00001aa4,0x00000001,0x0004007c, 19440x00000130,0x000500ab,0x0000002f,0x00001c05,
18560x00000006,0x00001b13,0x00001ab1,0x000500c7, 19450x00001c04,0x000000a6,0x000300f7,0x00001c0c,
18570x00000006,0x00001b15,0x00001b13,0x00000130, 19460x00000000,0x000400fa,0x00001c05,0x00001c06,
18580x000500ab,0x0000002f,0x00001b16,0x00001b15, 19470x00001c09,0x000200f8,0x00001c06,0x000400c8,
18590x000000a6,0x000300f7,0x00001b1d,0x00000000, 19480x00000006,0x00001c08,0x00001c02,0x000200f9,
18600x000400fa,0x00001b16,0x00001b17,0x00001b1a, 19490x00001c0c,0x000200f8,0x00001c09,0x000500c5,
18610x000200f8,0x00001b17,0x000400c8,0x00000006, 19500x00000006,0x00001c0b,0x00001c02,0x00000130,
18620x00001b19,0x00001b13,0x000200f9,0x00001b1d, 19510x000200f9,0x00001c0c,0x000200f8,0x00001c0c,
18630x000200f8,0x00001b1a,0x000500c5,0x00000006, 19520x000700f5,0x00000006,0x0000323e,0x00001c08,
18640x00001b1c,0x00001b13,0x00000130,0x000200f9, 19530x00001c06,0x00001c0b,0x00001c09,0x000700ed,
18650x00001b1d,0x000200f8,0x00001b1d,0x000700f5, 19540x00000006,0x00001bad,0x00001ba9,0x000000b0,
18660x00000006,0x00003133,0x00001b19,0x00001b17, 19550x000000a6,0x0000323e,0x00060041,0x000000db,
18670x00001b1c,0x00001b1a,0x000700ed,0x00000006, 19560x00001baf,0x00001bec,0x000000da,0x00000154,
18680x00001ab3,0x00001aaf,0x000000b0,0x000000a6, 19570x00050051,0x00000027,0x00001bb1,0x00001ba4,
18690x00003133,0x00060041,0x000000db,0x00001ab5, 19580x00000001,0x0004007c,0x00000006,0x00001c13,
18700x00001aec,0x000000da,0x00000205,0x00050051, 19590x00001bb1,0x000500c7,0x00000006,0x00001c15,
18710x00000027,0x00001ab7,0x00001aa4,0x00000002, 19600x00001c13,0x00000130,0x000500ab,0x0000002f,
18720x0004007c,0x00000006,0x00001b24,0x00001ab7, 19610x00001c16,0x00001c15,0x000000a6,0x000300f7,
18730x000500c7,0x00000006,0x00001b26,0x00001b24, 19620x00001c1d,0x00000000,0x000400fa,0x00001c16,
18740x00000130,0x000500ab,0x0000002f,0x00001b27, 19630x00001c17,0x00001c1a,0x000200f8,0x00001c17,
18750x00001b26,0x000000a6,0x000300f7,0x00001b2e, 19640x000400c8,0x00000006,0x00001c19,0x00001c13,
18760x00000000,0x000400fa,0x00001b27,0x00001b28, 19650x000200f9,0x00001c1d,0x000200f8,0x00001c1a,
18770x00001b2b,0x000200f8,0x00001b28,0x000400c8, 19660x000500c5,0x00000006,0x00001c1c,0x00001c13,
18780x00000006,0x00001b2a,0x00001b24,0x000200f9, 19670x00000130,0x000200f9,0x00001c1d,0x000200f8,
18790x00001b2e,0x000200f8,0x00001b2b,0x000500c5, 19680x00001c1d,0x000700f5,0x00000006,0x0000323f,
18800x00000006,0x00001b2d,0x00001b24,0x00000130, 19690x00001c19,0x00001c17,0x00001c1c,0x00001c1a,
18810x000200f9,0x00001b2e,0x000200f8,0x00001b2e, 19700x000700ed,0x00000006,0x00001bb3,0x00001baf,
18820x000700f5,0x00000006,0x00003134,0x00001b2a, 19710x000000b0,0x000000a6,0x0000323f,0x00060041,
18830x00001b28,0x00001b2d,0x00001b2b,0x000700ed, 19720x000000db,0x00001bb5,0x00001bec,0x000000da,
18840x00000006,0x00001ab9,0x00001ab5,0x000000b0, 19730x00000205,0x00050051,0x00000027,0x00001bb7,
18850x000000a6,0x00003134,0x00060041,0x000000db, 19740x00001ba4,0x00000002,0x0004007c,0x00000006,
18860x00001abb,0x00001aec,0x000000da,0x0000020d, 19750x00001c24,0x00001bb7,0x000500c7,0x00000006,
18870x000300f7,0x00001b3f,0x00000000,0x000400fa, 19760x00001c26,0x00001c24,0x00000130,0x000500ab,
18880x00001b05,0x00001b39,0x00001b3c,0x000200f8, 19770x0000002f,0x00001c27,0x00001c26,0x000000a6,
18890x00001b39,0x000400c8,0x00000006,0x00001b3b, 19780x000300f7,0x00001c2e,0x00000000,0x000400fa,
18900x00001b02,0x000200f9,0x00001b3f,0x000200f8, 19790x00001c27,0x00001c28,0x00001c2b,0x000200f8,
18910x00001b3c,0x000500c5,0x00000006,0x00001b3e, 19800x00001c28,0x000400c8,0x00000006,0x00001c2a,
18920x00001b02,0x00000130,0x000200f9,0x00001b3f, 19810x00001c24,0x000200f9,0x00001c2e,0x000200f8,
18930x000200f8,0x00001b3f,0x000700f5,0x00000006, 19820x00001c2b,0x000500c5,0x00000006,0x00001c2d,
18940x00003135,0x00001b3b,0x00001b39,0x00001b3e, 19830x00001c24,0x00000130,0x000200f9,0x00001c2e,
18950x00001b3c,0x000700ef,0x00000006,0x00001abf, 19840x000200f8,0x00001c2e,0x000700f5,0x00000006,
18960x00001abb,0x000000b0,0x000000a6,0x00003135, 19850x00003240,0x00001c2a,0x00001c28,0x00001c2d,
18970x00060041,0x000000db,0x00001ac1,0x00001aec, 19860x00001c2b,0x000700ed,0x00000006,0x00001bb9,
18980x000000da,0x00000215,0x000300f7,0x00001b50, 19870x00001bb5,0x000000b0,0x000000a6,0x00003240,
18990x00000000,0x000400fa,0x00001b16,0x00001b4a, 19880x00060041,0x000000db,0x00001bbb,0x00001bec,
19000x00001b4d,0x000200f8,0x00001b4a,0x000400c8, 19890x000000da,0x0000020d,0x000300f7,0x00001c3f,
19010x00000006,0x00001b4c,0x00001b13,0x000200f9, 19900x00000000,0x000400fa,0x00001c05,0x00001c39,
19020x00001b50,0x000200f8,0x00001b4d,0x000500c5, 19910x00001c3c,0x000200f8,0x00001c39,0x000400c8,
19030x00000006,0x00001b4f,0x00001b13,0x00000130, 19920x00000006,0x00001c3b,0x00001c02,0x000200f9,
19040x000200f9,0x00001b50,0x000200f8,0x00001b50, 19930x00001c3f,0x000200f8,0x00001c3c,0x000500c5,
19050x000700f5,0x00000006,0x00003136,0x00001b4c, 19940x00000006,0x00001c3e,0x00001c02,0x00000130,
19060x00001b4a,0x00001b4f,0x00001b4d,0x000700ef, 19950x000200f9,0x00001c3f,0x000200f8,0x00001c3f,
19070x00000006,0x00001ac5,0x00001ac1,0x000000b0, 19960x000700f5,0x00000006,0x00003241,0x00001c3b,
19080x000000a6,0x00003136,0x00060041,0x000000db, 19970x00001c39,0x00001c3e,0x00001c3c,0x000700ef,
19090x00001ac7,0x00001aec,0x000000da,0x0000021d, 19980x00000006,0x00001bbf,0x00001bbb,0x000000b0,
19100x000300f7,0x00001b61,0x00000000,0x000400fa, 19990x000000a6,0x00003241,0x00060041,0x000000db,
19110x00001b27,0x00001b5b,0x00001b5e,0x000200f8, 20000x00001bc1,0x00001bec,0x000000da,0x00000215,
19120x00001b5b,0x000400c8,0x00000006,0x00001b5d, 20010x000300f7,0x00001c50,0x00000000,0x000400fa,
19130x00001b24,0x000200f9,0x00001b61,0x000200f8, 20020x00001c16,0x00001c4a,0x00001c4d,0x000200f8,
19140x00001b5e,0x000500c5,0x00000006,0x00001b60, 20030x00001c4a,0x000400c8,0x00000006,0x00001c4c,
19150x00001b24,0x00000130,0x000200f9,0x00001b61, 20040x00001c13,0x000200f9,0x00001c50,0x000200f8,
19160x000200f8,0x00001b61,0x000700f5,0x00000006, 20050x00001c4d,0x000500c5,0x00000006,0x00001c4f,
19170x00003137,0x00001b5d,0x00001b5b,0x00001b60, 20060x00001c13,0x00000130,0x000200f9,0x00001c50,
19180x00001b5e,0x000700ef,0x00000006,0x00001acb, 20070x000200f8,0x00001c50,0x000700f5,0x00000006,
19190x00001ac7,0x000000b0,0x000000a6,0x00003137, 20080x00003242,0x00001c4c,0x00001c4a,0x00001c4f,
19200x000200f9,0x00001acc,0x000200f8,0x00001acc, 20090x00001c4d,0x000700ef,0x00000006,0x00001bc5,
19210x000200f9,0x00000b95,0x000200f8,0x00000b99, 20100x00001bc1,0x000000b0,0x000000a6,0x00003242,
19220x000500aa,0x0000002f,0x00000b9c,0x00000b13, 20110x00060041,0x000000db,0x00001bc7,0x00001bec,
19230x00000170,0x000300f7,0x00000b9e,0x00000000, 20120x000000da,0x0000021d,0x000300f7,0x00001c61,
19240x000400fa,0x00000b9c,0x00000b9d,0x00000ba2, 20130x00000000,0x000400fa,0x00001c27,0x00001c5b,
19250x000200f8,0x00000b9d,0x00050084,0x00000006, 20140x00001c5e,0x000200f8,0x00001c5b,0x000400c8,
19260x00001bca,0x00000107,0x00000b11,0x000200f9, 20150x00000006,0x00001c5d,0x00001c24,0x000200f9,
19270x00001bcb,0x000200f8,0x00001bcb,0x000700f5, 20160x00001c61,0x000200f8,0x00001c5e,0x000500c5,
19280x00000006,0x000030e4,0x000000a6,0x00000b9d, 20170x00000006,0x00001c60,0x00001c24,0x00000130,
19290x00001bdc,0x00001bcf,0x000500b0,0x0000002f, 20180x000200f9,0x00001c61,0x000200f8,0x00001c61,
19300x00001bce,0x000030e4,0x00000118,0x000400f6, 20190x000700f5,0x00000006,0x00003243,0x00001c5d,
19310x00001bdd,0x00001bcf,0x00000000,0x000400fa, 20200x00001c5b,0x00001c60,0x00001c5e,0x000700ef,
19320x00001bce,0x00001bcf,0x00001bdd,0x000200f8, 20210x00000006,0x00001bcb,0x00001bc7,0x000000b0,
19330x00001bcf,0x00050084,0x00000006,0x00001bd3, 20220x000000a6,0x00003243,0x000200f9,0x00001bcc,
19340x0000010a,0x000030e4,0x00050080,0x00000006, 20230x000200f8,0x00001bcc,0x000200f9,0x00000bd2,
19350x00001bd4,0x00001bca,0x00001bd3,0x00050041, 20240x000200f8,0x00000bd6,0x000500aa,0x0000002f,
19360x00000156,0x00001bd5,0x000000fc,0x00000205, 20250x00000bd9,0x00000b13,0x00000170,0x000300f7,
19370x0004003d,0x00000007,0x00001bd6,0x00001bd5, 20260x00000bdb,0x00000000,0x000400fa,0x00000bd9,
19380x00050051,0x00000006,0x00001d97,0x00001bd6, 20270x00000bda,0x00000bdf,0x000200f8,0x00000bda,
19390x00000000,0x00050095,0x000000ab,0x00001d99, 20280x00050084,0x00000006,0x00001cca,0x00000107,
19400x00001d97,0x00001bd4,0x00050051,0x00000006, 20290x00000b11,0x000200f9,0x00001ccb,0x000200f8,
19410x00001d9a,0x00001d99,0x00000001,0x00050051, 20300x00001ccb,0x000700f5,0x00000006,0x000031f0,
19420x00000006,0x00001d9b,0x00001d99,0x00000000, 20310x000000a6,0x00000bda,0x00001cdc,0x00001ccf,
19430x00050051,0x00000006,0x00001d9e,0x00001bd6, 20320x000500b0,0x0000002f,0x00001cce,0x000031f0,
19440x00000001,0x00050080,0x00000006,0x00001da0, 20330x00000118,0x000400f6,0x00001cdd,0x00001ccf,
19450x00001d9e,0x00001d9a,0x00050050,0x00000007, 20340x00000000,0x000400fa,0x00001cce,0x00001ccf,
19460x00001da1,0x00001d9b,0x00001da0,0x0004007c, 20350x00001cdd,0x000200f8,0x00001ccf,0x00050084,
19470x00000014,0x00001d91,0x00001da1,0x00060041, 20360x00000006,0x00001cd3,0x0000010a,0x000031f0,
19480x000000db,0x00001d88,0x00001d91,0x000000da, 20370x00050080,0x00000006,0x00001cd4,0x00001cca,
19490x000000da,0x0006003d,0x00000006,0x00001d89, 20380x00001cd3,0x00050041,0x00000156,0x00001cd5,
19500x00001d88,0x00000002,0x00000004,0x0004007c,
19510x00000027,0x00001bd8,0x00001d89,0x00050041,
19520x00000028,0x00001bd9,0x00001b65,0x000030e4,
19530x0003003e,0x00001bd9,0x00001bd8,0x00050080,
19540x00000006,0x00001bdc,0x000030e4,0x00000154,
19550x000200f9,0x00001bcb,0x000200f8,0x00001bdd,
19560x00050080,0x00000006,0x00001bdf,0x00001bca,
19570x00000368,0x00050041,0x00000156,0x00001be0,
19580x000000fc,0x00000205,0x0004003d,0x00000007, 20390x000000fc,0x00000205,0x0004003d,0x00000007,
19590x00001be1,0x00001be0,0x00050051,0x00000006, 20400x00001cd6,0x00001cd5,0x00050051,0x00000006,
19600x00001db8,0x00001be1,0x00000000,0x00050095, 20410x00001e97,0x00001cd6,0x00000000,0x00050095,
19610x000000ab,0x00001dba,0x00001db8,0x00001bdf, 20420x000000ab,0x00001e99,0x00001e97,0x00001cd4,
19620x00050051,0x00000006,0x00001dbb,0x00001dba, 20430x00050051,0x00000006,0x00001e9a,0x00001e99,
19630x00000001,0x00050051,0x00000006,0x00001dbc, 20440x00000001,0x00050051,0x00000006,0x00001e9b,
19640x00001dba,0x00000000,0x00050051,0x00000006, 20450x00001e99,0x00000000,0x00050051,0x00000006,
19650x00001dbf,0x00001be1,0x00000001,0x00050080, 20460x00001e9e,0x00001cd6,0x00000001,0x00050080,
19660x00000006,0x00001dc1,0x00001dbf,0x00001dbb, 20470x00000006,0x00001ea0,0x00001e9e,0x00001e9a,
19670x00050050,0x00000007,0x00001dc2,0x00001dbc, 20480x00050050,0x00000007,0x00001ea1,0x00001e9b,
19680x00001dc1,0x0004007c,0x00000014,0x00001db2, 20490x00001ea0,0x0004007c,0x00000014,0x00001e91,
19690x00001dc2,0x00060041,0x000000db,0x00001da9, 20500x00001ea1,0x00060041,0x000000db,0x00001e88,
19700x00001db2,0x000000da,0x000000da,0x0006003d, 20510x00001e91,0x000000da,0x000000da,0x0006003d,
19710x00000006,0x00001daa,0x00001da9,0x00000002, 20520x00000006,0x00001e89,0x00001e88,0x00000002,
19720x00000004,0x00050080,0x00000006,0x00001be4, 20530x00000004,0x0004007c,0x00000027,0x00001cd8,
19730x00001bca,0x00000374,0x00050095,0x000000ab, 20540x00001e89,0x00050041,0x00000028,0x00001cd9,
19740x00001ddb,0x00001db8,0x00001be4,0x00050051, 20550x00001c65,0x000031f0,0x0003003e,0x00001cd9,
19750x00000006,0x00001ddc,0x00001ddb,0x00000001, 20560x00001cd8,0x00050080,0x00000006,0x00001cdc,
19760x00050051,0x00000006,0x00001ddd,0x00001ddb, 20570x000031f0,0x00000154,0x000200f9,0x00001ccb,
19770x00000000,0x00050080,0x00000006,0x00001de2, 20580x000200f8,0x00001cdd,0x00050080,0x00000006,
19780x00001dbf,0x00001ddc,0x00050050,0x00000007, 20590x00001cdf,0x00001cca,0x00000368,0x00050041,
19790x00001de3,0x00001ddd,0x00001de2,0x0004007c, 20600x00000156,0x00001ce0,0x000000fc,0x00000205,
19800x00000014,0x00001dd3,0x00001de3,0x00060041, 20610x0004003d,0x00000007,0x00001ce1,0x00001ce0,
19810x000000db,0x00001dca,0x00001dd3,0x000000da, 20620x00050051,0x00000006,0x00001eb8,0x00001ce1,
19820x000000da,0x0006003d,0x00000006,0x00001dcb, 20630x00000000,0x00050095,0x000000ab,0x00001eba,
19830x00001dca,0x00000002,0x00000004,0x00050080, 20640x00001eb8,0x00001cdf,0x00050051,0x00000006,
19840x00000006,0x00001be9,0x00001bca,0x0000037e, 20650x00001ebb,0x00001eba,0x00000001,0x00050051,
19850x00050095,0x000000ab,0x00001dfc,0x00001db8, 20660x00000006,0x00001ebc,0x00001eba,0x00000000,
19860x00001be9,0x00050051,0x00000006,0x00001dfd, 20670x00050051,0x00000006,0x00001ebf,0x00001ce1,
19870x00001dfc,0x00000001,0x00050051,0x00000006, 20680x00000001,0x00050080,0x00000006,0x00001ec1,
19880x00001dfe,0x00001dfc,0x00000000,0x00050080, 20690x00001ebf,0x00001ebb,0x00050050,0x00000007,
19890x00000006,0x00001e03,0x00001dbf,0x00001dfd, 20700x00001ec2,0x00001ebc,0x00001ec1,0x0004007c,
19900x00050050,0x00000007,0x00001e04,0x00001dfe, 20710x00000014,0x00001eb2,0x00001ec2,0x00060041,
19910x00001e03,0x0004007c,0x00000014,0x00001df4, 20720x000000db,0x00001ea9,0x00001eb2,0x000000da,
19920x00001e04,0x00060041,0x000000db,0x00001deb, 20730x000000da,0x0006003d,0x00000006,0x00001eaa,
19930x00001df4,0x000000da,0x000000da,0x0006003d, 20740x00001ea9,0x00000002,0x00000004,0x00050080,
19940x00000006,0x00001dec,0x00001deb,0x00000002, 20750x00000006,0x00001ce4,0x00001cca,0x00000374,
19950x00000004,0x00050080,0x00000006,0x00001bee, 20760x00050095,0x000000ab,0x00001edb,0x00001eb8,
19960x00001bca,0x00000388,0x00050095,0x000000ab, 20770x00001ce4,0x00050051,0x00000006,0x00001edc,
19970x00001e1d,0x00001db8,0x00001bee,0x00050051, 20780x00001edb,0x00000001,0x00050051,0x00000006,
19980x00000006,0x00001e1e,0x00001e1d,0x00000001, 20790x00001edd,0x00001edb,0x00000000,0x00050080,
19990x00050051,0x00000006,0x00001e1f,0x00001e1d, 20800x00000006,0x00001ee2,0x00001ebf,0x00001edc,
20000x00000000,0x00050080,0x00000006,0x00001e24, 20810x00050050,0x00000007,0x00001ee3,0x00001edd,
20010x00001dbf,0x00001e1e,0x00050050,0x00000007, 20820x00001ee2,0x0004007c,0x00000014,0x00001ed3,
20020x00001e25,0x00001e1f,0x00001e24,0x0004007c, 20830x00001ee3,0x00060041,0x000000db,0x00001eca,
20030x00000014,0x00001e15,0x00001e25,0x00060041, 20840x00001ed3,0x000000da,0x000000da,0x0006003d,
20040x000000db,0x00001e0c,0x00001e15,0x000000da, 20850x00000006,0x00001ecb,0x00001eca,0x00000002,
20050x000000da,0x0006003d,0x00000006,0x00001e0d, 20860x00000004,0x00050080,0x00000006,0x00001ce9,
20060x00001e0c,0x00000002,0x00000004,0x00050041, 20870x00001cca,0x0000037e,0x00050095,0x000000ab,
20070x000000fe,0x00001bf3,0x000000fc,0x0000022c, 20880x00001efc,0x00001eb8,0x00001ce9,0x00050051,
20080x0004003d,0x00000006,0x00001bf4,0x00001bf3, 20890x00000006,0x00001efd,0x00001efc,0x00000001,
20090x00050084,0x00000006,0x00001bf6,0x00000228, 20900x00050051,0x00000006,0x00001efe,0x00001efc,
20100x00000b11,0x00050080,0x00000006,0x00001bf7, 20910x00000000,0x00050080,0x00000006,0x00001f03,
20110x00001bf4,0x00001bf6,0x000200f9,0x00001bf8, 20920x00001ebf,0x00001efd,0x00050050,0x00000007,
20120x000200f8,0x00001bf8,0x000700f5,0x00000006, 20930x00001f04,0x00001efe,0x00001f03,0x0004007c,
20130x000030e5,0x000000a6,0x00001bdd,0x00001c09, 20940x00000014,0x00001ef4,0x00001f04,0x00060041,
20140x00001bfc,0x000500b0,0x0000002f,0x00001bfb, 20950x000000db,0x00001eeb,0x00001ef4,0x000000da,
20150x000030e5,0x00000118,0x000400f6,0x00001c0a, 20960x000000da,0x0006003d,0x00000006,0x00001eec,
20160x00001bfc,0x00000000,0x000400fa,0x00001bfb, 20970x00001eeb,0x00000002,0x00000004,0x00050080,
20170x00001bfc,0x00001c0a,0x000200f8,0x00001bfc, 20980x00000006,0x00001cee,0x00001cca,0x00000388,
20180x00050084,0x00000006,0x00001bff,0x0000010a, 20990x00050095,0x000000ab,0x00001f1d,0x00001eb8,
20190x000030e5,0x00050080,0x00000006,0x00001c00, 21000x00001cee,0x00050051,0x00000006,0x00001f1e,
20200x00001bf7,0x00001bff,0x00050041,0x00000156, 21010x00001f1d,0x00000001,0x00050051,0x00000006,
20210x00001c02,0x000000fc,0x000000da,0x0004003d, 21020x00001f1f,0x00001f1d,0x00000000,0x00050080,
20220x00000007,0x00001c03,0x00001c02,0x00050041, 21030x00000006,0x00001f24,0x00001ebf,0x00001f1e,
20230x00000028,0x00001c04,0x00001b65,0x000030e5, 21040x00050050,0x00000007,0x00001f25,0x00001f1f,
20240x0004003d,0x00000027,0x00001c05,0x00001c04, 21050x00001f24,0x0004007c,0x00000014,0x00001f15,
20250x0004007c,0x00000006,0x00001e2b,0x00001c05, 21060x00001f25,0x00060041,0x000000db,0x00001f0c,
20260x00050051,0x00000006,0x00001e44,0x00001c03, 21070x00001f15,0x000000da,0x000000da,0x0006003d,
20270x00000000,0x00050095,0x000000ab,0x00001e46, 21080x00000006,0x00001f0d,0x00001f0c,0x00000002,
20280x00001e44,0x00001c00,0x00050051,0x00000006, 21090x00000004,0x00050041,0x000000fe,0x00001cf3,
20290x00001e47,0x00001e46,0x00000001,0x00050051, 21100x000000fc,0x0000022c,0x0004003d,0x00000006,
20300x00000006,0x00001e48,0x00001e46,0x00000000, 21110x00001cf4,0x00001cf3,0x00050084,0x00000006,
20310x00050051,0x00000006,0x00001e4b,0x00001c03, 21120x00001cf6,0x00000228,0x00000b11,0x00050080,
20320x00000001,0x00050080,0x00000006,0x00001e4d, 21130x00000006,0x00001cf7,0x00001cf4,0x00001cf6,
20330x00001e4b,0x00001e47,0x00050050,0x00000007, 21140x000200f9,0x00001cf8,0x000200f8,0x00001cf8,
20340x00001e4e,0x00001e48,0x00001e4d,0x0004007c, 21150x000700f5,0x00000006,0x000031f1,0x000000a6,
20350x00000014,0x00001e3e,0x00001e4e,0x00060041, 21160x00001cdd,0x00001d09,0x00001cfc,0x000500b0,
20360x000000db,0x00001e36,0x00001e3e,0x000000da, 21170x0000002f,0x00001cfb,0x000031f1,0x00000118,
20370x000000da,0x0005003e,0x00001e36,0x00001e2b, 21180x000400f6,0x00001d0a,0x00001cfc,0x00000000,
20380x00000002,0x00000004,0x00050080,0x00000006, 21190x000400fa,0x00001cfb,0x00001cfc,0x00001d0a,
20390x00001c09,0x000030e5,0x00000154,0x000200f9, 21200x000200f8,0x00001cfc,0x00050084,0x00000006,
20400x00001bf8,0x000200f8,0x00001c0a,0x00050080, 21210x00001cff,0x0000010a,0x000031f1,0x00050080,
20410x00000006,0x00001c0c,0x00001bf7,0x00000368, 21220x00000006,0x00001d00,0x00001cf7,0x00001cff,
20420x00050041,0x00000156,0x00001c0d,0x000000fc, 21230x00050041,0x00000156,0x00001d02,0x000000fc,
20430x000000da,0x0004003d,0x00000007,0x00001c0e, 21240x000000da,0x0004003d,0x00000007,0x00001d03,
20440x00001c0d,0x00050051,0x00000006,0x00001e64, 21250x00001d02,0x00050041,0x00000028,0x00001d04,
20450x00001c0e,0x00000000,0x00050095,0x000000ab, 21260x00001c65,0x000031f1,0x0004003d,0x00000027,
20460x00001e66,0x00001e64,0x00001c0c,0x00050051, 21270x00001d05,0x00001d04,0x0004007c,0x00000006,
20470x00000006,0x00001e67,0x00001e66,0x00000001, 21280x00001f2b,0x00001d05,0x00050051,0x00000006,
20480x00050051,0x00000006,0x00001e68,0x00001e66, 21290x00001f44,0x00001d03,0x00000000,0x00050095,
20490x00000000,0x00050051,0x00000006,0x00001e6b, 21300x000000ab,0x00001f46,0x00001f44,0x00001d00,
20500x00001c0e,0x00000001,0x00050080,0x00000006, 21310x00050051,0x00000006,0x00001f47,0x00001f46,
20510x00001e6d,0x00001e6b,0x00001e67,0x00050050, 21320x00000001,0x00050051,0x00000006,0x00001f48,
20520x00000007,0x00001e6e,0x00001e68,0x00001e6d, 21330x00001f46,0x00000000,0x00050051,0x00000006,
20530x0004007c,0x00000014,0x00001e5e,0x00001e6e, 21340x00001f4b,0x00001d03,0x00000001,0x00050080,
20540x00060041,0x000000db,0x00001e56,0x00001e5e, 21350x00000006,0x00001f4d,0x00001f4b,0x00001f47,
20550x000000da,0x000000da,0x0005003e,0x00001e56, 21360x00050050,0x00000007,0x00001f4e,0x00001f48,
20560x00001daa,0x00000002,0x00000004,0x00050080, 21370x00001f4d,0x0004007c,0x00000014,0x00001f3e,
20570x00000006,0x00001c12,0x00001bf7,0x00000374, 21380x00001f4e,0x00060041,0x000000db,0x00001f36,
20580x00050095,0x000000ab,0x00001e86,0x00001e64, 21390x00001f3e,0x000000da,0x000000da,0x0005003e,
20590x00001c12,0x00050051,0x00000006,0x00001e87, 21400x00001f36,0x00001f2b,0x00000002,0x00000004,
20600x00001e86,0x00000001,0x00050051,0x00000006, 21410x00050080,0x00000006,0x00001d09,0x000031f1,
20610x00001e88,0x00001e86,0x00000000,0x00050080, 21420x00000154,0x000200f9,0x00001cf8,0x000200f8,
20620x00000006,0x00001e8d,0x00001e6b,0x00001e87, 21430x00001d0a,0x00050080,0x00000006,0x00001d0c,
20630x00050050,0x00000007,0x00001e8e,0x00001e88, 21440x00001cf7,0x00000368,0x00050041,0x00000156,
20640x00001e8d,0x0004007c,0x00000014,0x00001e7e, 21450x00001d0d,0x000000fc,0x000000da,0x0004003d,
20650x00001e8e,0x00060041,0x000000db,0x00001e76, 21460x00000007,0x00001d0e,0x00001d0d,0x00050051,
20660x00001e7e,0x000000da,0x000000da,0x0005003e, 21470x00000006,0x00001f64,0x00001d0e,0x00000000,
20670x00001e76,0x00001dcb,0x00000002,0x00000004, 21480x00050095,0x000000ab,0x00001f66,0x00001f64,
20680x000500aa,0x0000002f,0x00001e93,0x00001dec, 21490x00001d0c,0x00050051,0x00000006,0x00001f67,
20690x000000a6,0x000300f7,0x00001e98,0x00000000, 21500x00001f66,0x00000001,0x00050051,0x00000006,
20700x000400fa,0x00001e93,0x00001e94,0x00001e98, 21510x00001f68,0x00001f66,0x00000000,0x00050051,
20710x000200f8,0x00001e94,0x000500aa,0x0000002f, 21520x00000006,0x00001f6b,0x00001d0e,0x00000001,
20720x00001e97,0x00001e0d,0x000000a6,0x000200f9, 21530x00050080,0x00000006,0x00001f6d,0x00001f6b,
20730x00001e98,0x000200f8,0x00001e98,0x000700f5, 21540x00001f67,0x00050050,0x00000007,0x00001f6e,
20740x0000002f,0x00001e99,0x00001e93,0x00001c0a, 21550x00001f68,0x00001f6d,0x0004007c,0x00000014,
20750x00001e97,0x00001e94,0x000400a8,0x0000002f, 21560x00001f5e,0x00001f6e,0x00060041,0x000000db,
20760x00001c1d,0x00001e99,0x000300f7,0x00001cb3, 21570x00001f56,0x00001f5e,0x000000da,0x000000da,
20770x00000000,0x000400fa,0x00001c1d,0x00001c1e, 21580x0005003e,0x00001f56,0x00001eaa,0x00000002,
20780x00001cb3,0x000200f8,0x00001c1e,0x00050041, 21590x00000004,0x00050080,0x00000006,0x00001d12,
20790x00000156,0x00001c20,0x000000fc,0x0000021d, 21600x00001cf7,0x00000374,0x00050095,0x000000ab,
20800x0004003d,0x00000007,0x00001c21,0x00001c20, 21610x00001f86,0x00001f64,0x00001d12,0x00050051,
20810x00050051,0x00000006,0x00001ea1,0x00001c21, 21620x00000006,0x00001f87,0x00001f86,0x00000001,
20820x00000000,0x00050095,0x000000ab,0x00001ea2, 21630x00050051,0x00000006,0x00001f88,0x00001f86,
20830x00001dec,0x00001ea1,0x00050051,0x00000006, 21640x00000000,0x00050080,0x00000006,0x00001f8d,
20840x00001ea3,0x00001ea2,0x00000001,0x00050051, 21650x00001f6b,0x00001f87,0x00050050,0x00000007,
20850x00000006,0x00001ea4,0x00001ea2,0x00000000, 21660x00001f8e,0x00001f88,0x00001f8d,0x0004007c,
20860x00050051,0x00000006,0x00001ea9,0x00001c21, 21670x00000014,0x00001f7e,0x00001f8e,0x00060041,
20870x00000001,0x00050080,0x00000006,0x00001eaa, 21680x000000db,0x00001f76,0x00001f7e,0x000000da,
20880x00001e0d,0x00001ea9,0x00050080,0x00000006, 21690x000000da,0x0005003e,0x00001f76,0x00001ecb,
20890x00001eac,0x00001eaa,0x00001ea3,0x00050095, 21700x00000002,0x00000004,0x000500aa,0x0000002f,
20900x000000ab,0x00001ec6,0x00001ea4,0x00000368, 21710x00001f93,0x00001eec,0x000000a6,0x000300f7,
20910x00050051,0x00000006,0x00001ec7,0x00001ec6, 21720x00001f98,0x00000000,0x000400fa,0x00001f93,
20920x00000001,0x00050051,0x00000006,0x00001ec8, 21730x00001f94,0x00001f98,0x000200f8,0x00001f94,
20930x00001ec6,0x00000000,0x00050080,0x00000006, 21740x000500aa,0x0000002f,0x00001f97,0x00001f0d,
20940x00001ecd,0x00001eac,0x00001ec7,0x00050050, 21750x000000a6,0x000200f9,0x00001f98,0x000200f8,
20950x00000007,0x00001ece,0x00001ec8,0x00001ecd, 21760x00001f98,0x000700f5,0x0000002f,0x00001f99,
20960x0004007c,0x00000014,0x00001ebe,0x00001ece, 21770x00001f93,0x00001d0a,0x00001f97,0x00001f94,
20970x00060041,0x000000db,0x00001eb5,0x00001ebe, 21780x000400a8,0x0000002f,0x00001d1d,0x00001f99,
21790x000300f7,0x00001db3,0x00000000,0x000400fa,
21800x00001d1d,0x00001d1e,0x00001db3,0x000200f8,
21810x00001d1e,0x00050041,0x00000156,0x00001d20,
21820x000000fc,0x0000021d,0x0004003d,0x00000007,
21830x00001d21,0x00001d20,0x00050051,0x00000006,
21840x00001fa1,0x00001d21,0x00000000,0x00050095,
21850x000000ab,0x00001fa2,0x00001eec,0x00001fa1,
21860x00050051,0x00000006,0x00001fa3,0x00001fa2,
21870x00000001,0x00050051,0x00000006,0x00001fa4,
21880x00001fa2,0x00000000,0x00050051,0x00000006,
21890x00001fa9,0x00001d21,0x00000001,0x00050080,
21900x00000006,0x00001faa,0x00001f0d,0x00001fa9,
21910x00050080,0x00000006,0x00001fac,0x00001faa,
21920x00001fa3,0x00050095,0x000000ab,0x00001fc6,
21930x00001fa4,0x00000368,0x00050051,0x00000006,
21940x00001fc7,0x00001fc6,0x00000001,0x00050051,
21950x00000006,0x00001fc8,0x00001fc6,0x00000000,
21960x00050080,0x00000006,0x00001fcd,0x00001fac,
21970x00001fc7,0x00050050,0x00000007,0x00001fce,
21980x00001fc8,0x00001fcd,0x0004007c,0x00000014,
21990x00001fbe,0x00001fce,0x00060041,0x000000db,
22000x00001fb5,0x00001fbe,0x000000da,0x000000da,
22010x0006003d,0x00000006,0x00001fb6,0x00001fb5,
22020x00000002,0x00000004,0x00050095,0x000000ab,
22030x00001fe7,0x00001fa4,0x0000011f,0x00050051,
22040x00000006,0x00001fe8,0x00001fe7,0x00000001,
22050x00050051,0x00000006,0x00001fe9,0x00001fe7,
22060x00000000,0x00050080,0x00000006,0x00001fee,
22070x00001fac,0x00001fe8,0x00050050,0x00000007,
22080x00001fef,0x00001fe9,0x00001fee,0x0004007c,
22090x00000014,0x00001fdf,0x00001fef,0x00060041,
22100x000000db,0x00001fd6,0x00001fdf,0x000000da,
22110x000000da,0x0006003d,0x00000006,0x00001fd7,
22120x00001fd6,0x00000002,0x00000004,0x0004007c,
22130x00000027,0x00001d27,0x00001fd7,0x00050095,
22140x000000ab,0x00002008,0x00001fa4,0x00000189,
22150x00050051,0x00000006,0x00002009,0x00002008,
22160x00000001,0x00050051,0x00000006,0x0000200a,
22170x00002008,0x00000000,0x00050080,0x00000006,
22180x0000200f,0x00001fac,0x00002009,0x00050050,
22190x00000007,0x00002010,0x0000200a,0x0000200f,
22200x0004007c,0x00000014,0x00002000,0x00002010,
22210x00060041,0x000000db,0x00001ff7,0x00002000,
20980x000000da,0x000000da,0x0006003d,0x00000006, 22220x000000da,0x000000da,0x0006003d,0x00000006,
20990x00001eb6,0x00001eb5,0x00000002,0x00000004, 22230x00001ff8,0x00001ff7,0x00000002,0x00000004,
21000x00050095,0x000000ab,0x00001ee7,0x00001ea4, 22240x0004007c,0x00000027,0x00001d2a,0x00001ff8,
21010x0000011f,0x00050051,0x00000006,0x00001ee8, 22250x00050095,0x000000ab,0x00002029,0x00001fa4,
21020x00001ee7,0x00000001,0x00050051,0x00000006, 22260x00000150,0x00050051,0x00000006,0x0000202a,
21030x00001ee9,0x00001ee7,0x00000000,0x00050080, 22270x00002029,0x00000001,0x00050051,0x00000006,
21040x00000006,0x00001eee,0x00001eac,0x00001ee8, 22280x0000202b,0x00002029,0x00000000,0x00050080,
21050x00050050,0x00000007,0x00001eef,0x00001ee9, 22290x00000006,0x00002030,0x00001fac,0x0000202a,
21060x00001eee,0x0004007c,0x00000014,0x00001edf, 22300x00050050,0x00000007,0x00002031,0x0000202b,
21070x00001eef,0x00060041,0x000000db,0x00001ed6, 22310x00002030,0x0004007c,0x00000014,0x00002021,
21080x00001edf,0x000000da,0x000000da,0x0006003d, 22320x00002031,0x00060041,0x000000db,0x00002018,
21090x00000006,0x00001ed7,0x00001ed6,0x00000002, 22330x00002021,0x000000da,0x000000da,0x0006003d,
21100x00000004,0x0004007c,0x00000027,0x00001c27, 22340x00000006,0x00002019,0x00002018,0x00000002,
21110x00001ed7,0x00050095,0x000000ab,0x00001f08, 22350x00000004,0x0004007c,0x00000027,0x00001d2d,
21120x00001ea4,0x00000189,0x00050051,0x00000006, 22360x00002019,0x00050095,0x000000ab,0x0000204a,
21130x00001f09,0x00001f08,0x00000001,0x00050051, 22370x00001fa4,0x00000463,0x00050051,0x00000006,
21140x00000006,0x00001f0a,0x00001f08,0x00000000, 22380x0000204b,0x0000204a,0x00000001,0x00050051,
21150x00050080,0x00000006,0x00001f0f,0x00001eac, 22390x00000006,0x0000204c,0x0000204a,0x00000000,
21160x00001f09,0x00050050,0x00000007,0x00001f10, 22400x00050080,0x00000006,0x00002051,0x00001fac,
21170x00001f0a,0x00001f0f,0x0004007c,0x00000014, 22410x0000204b,0x00050050,0x00000007,0x00002052,
21180x00001f00,0x00001f10,0x00060041,0x000000db, 22420x0000204c,0x00002051,0x0004007c,0x00000014,
21190x00001ef7,0x00001f00,0x000000da,0x000000da, 22430x00002042,0x00002052,0x00060041,0x000000db,
21200x0006003d,0x00000006,0x00001ef8,0x00001ef7, 22440x00002039,0x00002042,0x000000da,0x000000da,
22450x0006003d,0x00000006,0x0000203a,0x00002039,
21210x00000002,0x00000004,0x0004007c,0x00000027, 22460x00000002,0x00000004,0x0004007c,0x00000027,
21220x00001c2a,0x00001ef8,0x00050095,0x000000ab, 22470x00001d31,0x0000203a,0x00050095,0x000000ab,
21230x00001f29,0x00001ea4,0x00000150,0x00050051, 22480x0000206b,0x00001fa4,0x00000469,0x00050051,
21240x00000006,0x00001f2a,0x00001f29,0x00000001, 22490x00000006,0x0000206c,0x0000206b,0x00000001,
21250x00050051,0x00000006,0x00001f2b,0x00001f29, 22500x00050051,0x00000006,0x0000206d,0x0000206b,
21260x00000000,0x00050080,0x00000006,0x00001f30, 22510x00000000,0x00050080,0x00000006,0x00002072,
21270x00001eac,0x00001f2a,0x00050050,0x00000007, 22520x00001fac,0x0000206c,0x00050050,0x00000007,
21280x00001f31,0x00001f2b,0x00001f30,0x0004007c, 22530x00002073,0x0000206d,0x00002072,0x0004007c,
21290x00000014,0x00001f21,0x00001f31,0x00060041, 22540x00000014,0x00002063,0x00002073,0x00060041,
21300x000000db,0x00001f18,0x00001f21,0x000000da, 22550x000000db,0x0000205a,0x00002063,0x000000da,
21310x000000da,0x0006003d,0x00000006,0x00001f19, 22560x000000da,0x0006003d,0x00000006,0x0000205b,
21320x00001f18,0x00000002,0x00000004,0x0004007c, 22570x0000205a,0x00000002,0x00000004,0x0004007c,
21330x00000027,0x00001c2d,0x00001f19,0x00050095, 22580x00000027,0x00001d34,0x0000205b,0x00050095,
21340x000000ab,0x00001f4a,0x00001ea4,0x00000463, 22590x000000ab,0x0000208c,0x00001fa4,0x00000347,
21350x00050051,0x00000006,0x00001f4b,0x00001f4a, 22600x00050051,0x00000006,0x0000208d,0x0000208c,
21360x00000001,0x00050051,0x00000006,0x00001f4c, 22610x00000001,0x00050051,0x00000006,0x0000208e,
21370x00001f4a,0x00000000,0x00050080,0x00000006, 22620x0000208c,0x00000000,0x00050080,0x00000006,
21380x00001f51,0x00001eac,0x00001f4b,0x00050050, 22630x00002093,0x00001fac,0x0000208d,0x00050050,
21390x00000007,0x00001f52,0x00001f4c,0x00001f51, 22640x00000007,0x00002094,0x0000208e,0x00002093,
21400x0004007c,0x00000014,0x00001f42,0x00001f52, 22650x0004007c,0x00000014,0x00002084,0x00002094,
21410x00060041,0x000000db,0x00001f39,0x00001f42, 22660x00060041,0x000000db,0x0000207b,0x00002084,
21420x000000da,0x000000da,0x0006003d,0x00000006, 22670x000000da,0x000000da,0x0006003d,0x00000006,
21430x00001f3a,0x00001f39,0x00000002,0x00000004, 22680x0000207c,0x0000207b,0x00000002,0x00000004,
21440x0004007c,0x00000027,0x00001c31,0x00001f3a, 22690x0004007c,0x00000027,0x00001d37,0x0000207c,
21450x00050095,0x000000ab,0x00001f6b,0x00001ea4, 22700x000500bc,0x0000002f,0x0000209b,0x00001d27,
21460x00000469,0x00050051,0x00000006,0x00001f6c, 22710x00001d31,0x000300f7,0x000020a2,0x00000000,
21470x00001f6b,0x00000001,0x00050051,0x00000006, 22720x000400fa,0x0000209b,0x0000209c,0x000020a2,
21480x00001f6d,0x00001f6b,0x00000000,0x00050080, 22730x000200f8,0x0000209c,0x000500bc,0x0000002f,
21490x00000006,0x00001f72,0x00001eac,0x00001f6c, 22740x000020a1,0x00001d2a,0x00001d34,0x000200f9,
21500x00050050,0x00000007,0x00001f73,0x00001f6d, 22750x000020a2,0x000200f8,0x000020a2,0x000700f5,
21510x00001f72,0x0004007c,0x00000014,0x00001f63, 22760x0000002f,0x000020a3,0x0000209b,0x00001d1e,
21520x00001f73,0x00060041,0x000000db,0x00001f5a, 22770x000020a1,0x0000209c,0x000300f7,0x000020aa,
21530x00001f63,0x000000da,0x000000da,0x0006003d, 22780x00000000,0x000400fa,0x000020a3,0x000020a4,
21540x00000006,0x00001f5b,0x00001f5a,0x00000002, 22790x000020aa,0x000200f8,0x000020a4,0x000500bc,
21550x00000004,0x0004007c,0x00000027,0x00001c34, 22800x0000002f,0x000020a9,0x00001d2d,0x00001d37,
21560x00001f5b,0x00050095,0x000000ab,0x00001f8c, 22810x000200f9,0x000020aa,0x000200f8,0x000020aa,
21570x00001ea4,0x00000347,0x00050051,0x00000006, 22820x000700f5,0x0000002f,0x000020ab,0x000020a3,
21580x00001f8d,0x00001f8c,0x00000001,0x00050051, 22830x000020a2,0x000020a9,0x000020a4,0x000300f7,
21590x00000006,0x00001f8e,0x00001f8c,0x00000000, 22840x00001d41,0x00000000,0x000400fa,0x000020ab,
21600x00050080,0x00000006,0x00001f93,0x00001eac, 22850x00001d3d,0x00001d41,0x000200f8,0x00001d3d,
21610x00001f8d,0x00050050,0x00000007,0x00001f94, 22860x000500c2,0x00000006,0x00001d3f,0x00001eaa,
21620x00001f8e,0x00001f93,0x0004007c,0x00000014, 22870x0000047e,0x000500ab,0x0000002f,0x00001d40,
21630x00001f84,0x00001f94,0x00060041,0x000000db, 22880x00001d3f,0x000000a6,0x000200f9,0x00001d41,
21640x00001f7b,0x00001f84,0x000000da,0x000000da, 22890x000200f8,0x00001d41,0x000700f5,0x0000002f,
21650x0006003d,0x00000006,0x00001f7c,0x00001f7b, 22900x00001d42,0x000020ab,0x000020aa,0x00001d40,
21660x00000002,0x00000004,0x0004007c,0x00000027, 22910x00001d3d,0x000300f7,0x00001db2,0x00000000,
21670x00001c37,0x00001f7c,0x000500bc,0x0000002f, 22920x000400fa,0x00001d42,0x00001d43,0x00001db2,
21680x00001f9b,0x00001c27,0x00001c31,0x000300f7, 22930x000200f8,0x00001d43,0x000200f9,0x00001d44,
21690x00001fa2,0x00000000,0x000400fa,0x00001f9b, 22940x000200f8,0x00001d44,0x000700f5,0x0000004b,
21700x00001f9c,0x00001fa2,0x000200f8,0x00001f9c, 22950x00003227,0x000032a7,0x00001d43,0x00001dad,
21710x000500bc,0x0000002f,0x00001fa1,0x00001c2a, 22960x00001d48,0x000700f5,0x0000004b,0x00003215,
21720x00001c34,0x000200f9,0x00001fa2,0x000200f8, 22970x000032a5,0x00001d43,0x00001daa,0x00001d48,
21730x00001fa2,0x000700f5,0x0000002f,0x00001fa3, 22980x000700f5,0x00000006,0x000031f2,0x000000a6,
21740x00001f9b,0x00001c1e,0x00001fa1,0x00001f9c, 22990x00001d43,0x00001db0,0x00001d48,0x000500b0,
21750x000300f7,0x00001faa,0x00000000,0x000400fa, 23000x0000002f,0x00001d47,0x000031f2,0x00000111,
21760x00001fa3,0x00001fa4,0x00001faa,0x000200f8, 23010x000400f6,0x00001db1,0x00001d48,0x00000000,
21770x00001fa4,0x000500bc,0x0000002f,0x00001fa9, 23020x000400fa,0x00001d47,0x00001d48,0x00001db1,
21780x00001c2d,0x00001c37,0x000200f9,0x00001faa, 23030x000200f8,0x00001d48,0x000500c7,0x00000006,
21790x000200f8,0x00001faa,0x000700f5,0x0000002f, 23040x00001d4a,0x000031f2,0x000000b0,0x000500ab,
21800x00001fab,0x00001fa3,0x00001fa2,0x00001fa9, 23050x0000002f,0x00001d4b,0x00001d4a,0x000000a6,
21810x00001fa4,0x000300f7,0x00001c41,0x00000000, 23060x000600a9,0x00000027,0x000032ad,0x00001d4b,
21820x000400fa,0x00001fab,0x00001c3d,0x00001c41, 23070x00001d31,0x00001d27,0x000500c7,0x00000006,
21830x000200f8,0x00001c3d,0x000500c2,0x00000006, 23080x00001d55,0x000031f2,0x00000170,0x000500ab,
21840x00001c3f,0x00001daa,0x0000047e,0x000500ab, 23090x0000002f,0x00001d56,0x00001d55,0x000000a6,
21850x0000002f,0x00001c40,0x00001c3f,0x000000a6, 23100x000600a9,0x00000027,0x000032ae,0x00001d56,
21860x000200f9,0x00001c41,0x000200f8,0x00001c41, 23110x00001d34,0x00001d2a,0x000500c7,0x00000006,
21870x000700f5,0x0000002f,0x00001c42,0x00001fab, 23120x00001d60,0x000031f2,0x0000010a,0x000500ab,
21880x00001faa,0x00001c40,0x00001c3d,0x000300f7, 23130x0000002f,0x00001d61,0x00001d60,0x000000a6,
21890x00001cb2,0x00000000,0x000400fa,0x00001c42, 23140x000600a9,0x00000027,0x000032af,0x00001d61,
21900x00001c43,0x00001cb2,0x000200f8,0x00001c43, 23150x00001d37,0x00001d2d,0x00050041,0x00000028,
21910x000200f9,0x00001c44,0x000200f8,0x00001c44, 23160x00001d6b,0x00001c65,0x000000da,0x0004003d,
21920x000700f5,0x0000004b,0x0000311b,0x0000319b, 23170x00000027,0x00001d6c,0x00001d6b,0x00050085,
21930x00001c43,0x00001cad,0x00001c48,0x000700f5, 23180x00000027,0x00001d6f,0x00001d6c,0x000032ad,
21940x0000004b,0x00003109,0x00003199,0x00001c43, 23190x00050041,0x00000028,0x00001d70,0x00001c65,
21950x00001caa,0x00001c48,0x000700f5,0x00000006, 23200x00000154,0x0004003d,0x00000027,0x00001d71,
21960x000030e6,0x000000a6,0x00001c43,0x00001cb0, 23210x00001d70,0x00050085,0x00000027,0x00001d74,
21970x00001c48,0x000500b0,0x0000002f,0x00001c47, 23220x00001d71,0x000032ae,0x00050081,0x00000027,
21980x000030e6,0x00000111,0x000400f6,0x00001cb1, 23230x00001d75,0x00001d6f,0x00001d74,0x00050041,
21990x00001c48,0x00000000,0x000400fa,0x00001c47, 23240x00000028,0x00001d76,0x00001c65,0x00000205,
22000x00001c48,0x00001cb1,0x000200f8,0x00001c48, 23250x0004003d,0x00000027,0x00001d77,0x00001d76,
22010x000500c7,0x00000006,0x00001c4a,0x000030e6, 23260x00050085,0x00000027,0x00001d7a,0x00001d77,
22020x000000b0,0x000500ab,0x0000002f,0x00001c4b, 23270x000032af,0x00050081,0x00000027,0x00001d7b,
22030x00001c4a,0x000000a6,0x000600a9,0x00000027, 23280x00001d75,0x00001d7a,0x00050041,0x00000028,
22040x000031a1,0x00001c4b,0x00001c31,0x00001c27, 23290x00001d7c,0x00001c65,0x0000020d,0x0004003d,
22050x000500c7,0x00000006,0x00001c55,0x000030e6, 23300x00000027,0x00001d7d,0x00001d7c,0x00050081,
22060x00000170,0x000500ab,0x0000002f,0x00001c56, 23310x00000027,0x00001d7e,0x00001d7b,0x00001d7d,
22070x00001c55,0x000000a6,0x000600a9,0x00000027, 23320x00050041,0x00000028,0x00001d7f,0x00001c65,
22080x000031a2,0x00001c56,0x00001c34,0x00001c2a, 23330x00000215,0x0004003d,0x00000027,0x00001d80,
22090x000500c7,0x00000006,0x00001c60,0x000030e6, 23340x00001d7f,0x00050085,0x00000027,0x00001d83,
22100x0000010a,0x000500ab,0x0000002f,0x00001c61, 23350x00001d80,0x000032ad,0x00050041,0x00000028,
22110x00001c60,0x000000a6,0x000600a9,0x00000027, 23360x00001d84,0x00001c65,0x0000021d,0x0004003d,
22120x000031a3,0x00001c61,0x00001c37,0x00001c2d, 23370x00000027,0x00001d85,0x00001d84,0x00050085,
22130x00050041,0x00000028,0x00001c6b,0x00001b65, 23380x00000027,0x00001d88,0x00001d85,0x000032ae,
22140x000000da,0x0004003d,0x00000027,0x00001c6c, 23390x00050081,0x00000027,0x00001d89,0x00001d83,
22150x00001c6b,0x00050085,0x00000027,0x00001c6f, 23400x00001d88,0x00050041,0x00000028,0x00001d8a,
22160x00001c6c,0x000031a1,0x00050041,0x00000028, 23410x00001c65,0x00000233,0x0004003d,0x00000027,
22170x00001c70,0x00001b65,0x00000154,0x0004003d, 23420x00001d8b,0x00001d8a,0x00050085,0x00000027,
22180x00000027,0x00001c71,0x00001c70,0x00050085, 23430x00001d8e,0x00001d8b,0x000032af,0x00050081,
22190x00000027,0x00001c74,0x00001c71,0x000031a2, 23440x00000027,0x00001d8f,0x00001d89,0x00001d8e,
22200x00050081,0x00000027,0x00001c75,0x00001c6f, 23450x00050041,0x00000028,0x00001d90,0x00001c65,
22210x00001c74,0x00050041,0x00000028,0x00001c76, 23460x000004d8,0x0004003d,0x00000027,0x00001d91,
22220x00001b65,0x00000205,0x0004003d,0x00000027, 23470x00001d90,0x00050081,0x00000027,0x00001d92,
22230x00001c77,0x00001c76,0x00050085,0x00000027, 23480x00001d8f,0x00001d91,0x00050041,0x00000028,
22240x00001c7a,0x00001c77,0x000031a3,0x00050081, 23490x00001d93,0x00001c65,0x00000308,0x0004003d,
22250x00000027,0x00001c7b,0x00001c75,0x00001c7a, 23500x00000027,0x00001d94,0x00001d93,0x00050085,
22260x00050041,0x00000028,0x00001c7c,0x00001b65, 23510x00000027,0x00001d97,0x00001d94,0x000032ad,
22270x0000020d,0x0004003d,0x00000027,0x00001c7d, 23520x00050041,0x00000028,0x00001d98,0x00001c65,
22280x00001c7c,0x00050081,0x00000027,0x00001c7e, 23530x00000250,0x0004003d,0x00000027,0x00001d99,
22290x00001c7b,0x00001c7d,0x00050041,0x00000028, 23540x00001d98,0x00050085,0x00000027,0x00001d9c,
22300x00001c7f,0x00001b65,0x00000215,0x0004003d, 23550x00001d99,0x000032ae,0x00050081,0x00000027,
22310x00000027,0x00001c80,0x00001c7f,0x00050085, 23560x00001d9d,0x00001d97,0x00001d9c,0x00050041,
22320x00000027,0x00001c83,0x00001c80,0x000031a1, 23570x00000028,0x00001d9e,0x00001c65,0x00000266,
22330x00050041,0x00000028,0x00001c84,0x00001b65, 23580x0004003d,0x00000027,0x00001d9f,0x00001d9e,
22340x0000021d,0x0004003d,0x00000027,0x00001c85, 23590x00050085,0x00000027,0x00001da2,0x00001d9f,
22350x00001c84,0x00050085,0x00000027,0x00001c88, 23600x000032af,0x00050081,0x00000027,0x00001da3,
22360x00001c85,0x000031a2,0x00050081,0x00000027, 23610x00001d9d,0x00001da2,0x00050041,0x00000028,
22370x00001c89,0x00001c83,0x00001c88,0x00050041, 23620x00001da4,0x00001c65,0x0000027b,0x0004003d,
22380x00000028,0x00001c8a,0x00001b65,0x00000233, 23630x00000027,0x00001da5,0x00001da4,0x00050081,
22390x0004003d,0x00000027,0x00001c8b,0x00001c8a, 23640x00000027,0x00001da6,0x00001da3,0x00001da5,
22400x00050085,0x00000027,0x00001c8e,0x00001c8b, 23650x00060050,0x0000004b,0x00001da7,0x00001d7e,
22410x000031a3,0x00050081,0x00000027,0x00001c8f, 23660x00001d92,0x00001da6,0x0007000c,0x0000004b,
22420x00001c89,0x00001c8e,0x00050041,0x00000028, 23670x00001daa,0x00000001,0x00000025,0x00003215,
22430x00001c90,0x00001b65,0x000004d8,0x0004003d, 23680x00001da7,0x0007000c,0x0000004b,0x00001dad,
22440x00000027,0x00001c91,0x00001c90,0x00050081, 23690x00000001,0x00000028,0x00003227,0x00001da7,
22450x00000027,0x00001c92,0x00001c8f,0x00001c91, 23700x00050080,0x00000006,0x00001db0,0x000031f2,
22460x00050041,0x00000028,0x00001c93,0x00001b65, 23710x00000154,0x000200f9,0x00001d44,0x000200f8,
22470x00000308,0x0004003d,0x00000027,0x00001c94, 23720x00001db1,0x000200f9,0x00001db2,0x000200f8,
22480x00001c93,0x00050085,0x00000027,0x00001c97, 23730x00001db2,0x000700f5,0x0000004b,0x00003223,
22490x00001c94,0x000031a1,0x00050041,0x00000028, 23740x000032a7,0x00001d41,0x00003227,0x00001db1,
22500x00001c98,0x00001b65,0x00000250,0x0004003d, 23750x000700f5,0x0000004b,0x00003211,0x000032a5,
22510x00000027,0x00001c99,0x00001c98,0x00050085, 23760x00001d41,0x00003215,0x00001db1,0x000200f9,
22520x00000027,0x00001c9c,0x00001c99,0x000031a2, 23770x00001db3,0x000200f8,0x00001db3,0x000700f5,
22530x00050081,0x00000027,0x00001c9d,0x00001c97, 23780x0000004b,0x00003221,0x000032a7,0x00001f98,
22540x00001c9c,0x00050041,0x00000028,0x00001c9e, 23790x00003223,0x00001db2,0x000700f5,0x0000004b,
22550x00001b65,0x00000266,0x0004003d,0x00000027, 23800x0000320f,0x000032a5,0x00001f98,0x00003211,
22560x00001c9f,0x00001c9e,0x00050085,0x00000027, 23810x00001db2,0x000700f5,0x00000006,0x000031fb,
22570x00001ca2,0x00001c9f,0x000031a3,0x00050081, 23820x00000380,0x00001f98,0x00001fb6,0x00001db2,
22580x00000027,0x00001ca3,0x00001c9d,0x00001ca2, 23830x00050041,0x00000028,0x00001db4,0x00001c65,
22590x00050041,0x00000028,0x00001ca4,0x00001b65, 23840x000000da,0x0004003d,0x00000027,0x00001db5,
22600x0000027b,0x0004003d,0x00000027,0x00001ca5, 23850x00001db4,0x000500b4,0x0000002f,0x00001db6,
22610x00001ca4,0x00050081,0x00000027,0x00001ca6, 23860x00001db5,0x000004fc,0x000300f7,0x00001dbb,
22620x00001ca3,0x00001ca5,0x00060050,0x0000004b, 23870x00000000,0x000400fa,0x00001db6,0x00001db7,
22630x00001ca7,0x00001c7e,0x00001c92,0x00001ca6, 23880x00001dbb,0x000200f8,0x00001db7,0x00050041,
22640x0007000c,0x0000004b,0x00001caa,0x00000001, 23890x00000028,0x00001db8,0x00001c65,0x00000154,
22650x00000025,0x00003109,0x00001ca7,0x0007000c, 23900x0004003d,0x00000027,0x00001db9,0x00001db8,
22660x0000004b,0x00001cad,0x00000001,0x00000028, 23910x000500b4,0x0000002f,0x00001dba,0x00001db9,
22670x0000311b,0x00001ca7,0x00050080,0x00000006, 23920x0000026d,0x000200f9,0x00001dbb,0x000200f8,
22680x00001cb0,0x000030e6,0x00000154,0x000200f9, 23930x00001dbb,0x000700f5,0x0000002f,0x00001dbc,
22690x00001c44,0x000200f8,0x00001cb1,0x000200f9, 23940x00001db6,0x00001db3,0x00001dba,0x00001db7,
22700x00001cb2,0x000200f8,0x00001cb2,0x000700f5, 23950x000300f7,0x00001dc1,0x00000000,0x000400fa,
22710x0000004b,0x00003117,0x0000319b,0x00001c41, 23960x00001dbc,0x00001dbd,0x00001dc1,0x000200f8,
22720x0000311b,0x00001cb1,0x000700f5,0x0000004b, 23970x00001dbd,0x00050041,0x00000028,0x00001dbe,
22730x00003105,0x00003199,0x00001c41,0x00003109, 23980x00001c65,0x00000205,0x0004003d,0x00000027,
22740x00001cb1,0x000200f9,0x00001cb3,0x000200f8, 23990x00001dbf,0x00001dbe,0x000500b4,0x0000002f,
22750x00001cb3,0x000700f5,0x0000004b,0x00003115, 24000x00001dc0,0x00001dbf,0x0000026d,0x000200f9,
22760x0000319b,0x00001e98,0x00003117,0x00001cb2, 24010x00001dc1,0x000200f8,0x00001dc1,0x000700f5,
22770x000700f5,0x0000004b,0x00003103,0x00003199, 24020x0000002f,0x00001dc2,0x00001dbc,0x00001dbb,
22780x00001e98,0x00003105,0x00001cb2,0x000700f5, 24030x00001dc0,0x00001dbd,0x000300f7,0x00001dc7,
22790x00000006,0x000030ef,0x00000380,0x00001e98, 24040x00000000,0x000400fa,0x00001dc2,0x00001dc3,
22800x00001eb6,0x00001cb2,0x00050041,0x00000028, 24050x00001dc7,0x000200f8,0x00001dc3,0x00050041,
22810x00001cb4,0x00001b65,0x000000da,0x0004003d, 24060x00000028,0x00001dc4,0x00001c65,0x00000215,
22820x00000027,0x00001cb5,0x00001cb4,0x000500b4, 24070x0004003d,0x00000027,0x00001dc5,0x00001dc4,
22830x0000002f,0x00001cb6,0x00001cb5,0x000004fc, 24080x000500b4,0x0000002f,0x00001dc6,0x00001dc5,
22840x000300f7,0x00001cbb,0x00000000,0x000400fa, 24090x0000026d,0x000200f9,0x00001dc7,0x000200f8,
22850x00001cb6,0x00001cb7,0x00001cbb,0x000200f8, 24100x00001dc7,0x000700f5,0x0000002f,0x00001dc8,
22860x00001cb7,0x00050041,0x00000028,0x00001cb8, 24110x00001dc2,0x00001dc1,0x00001dc6,0x00001dc3,
22870x00001b65,0x00000154,0x0004003d,0x00000027, 24120x000300f7,0x00001dcd,0x00000000,0x000400fa,
22880x00001cb9,0x00001cb8,0x000500b4,0x0000002f, 24130x00001dc8,0x00001dc9,0x00001dcd,0x000200f8,
22890x00001cba,0x00001cb9,0x0000026d,0x000200f9, 24140x00001dc9,0x00050041,0x00000028,0x00001dca,
22900x00001cbb,0x000200f8,0x00001cbb,0x000700f5, 24150x00001c65,0x0000021d,0x0004003d,0x00000027,
22910x0000002f,0x00001cbc,0x00001cb6,0x00001cb3, 24160x00001dcb,0x00001dca,0x000500b4,0x0000002f,
22920x00001cba,0x00001cb7,0x000300f7,0x00001cc1, 24170x00001dcc,0x00001dcb,0x000004fc,0x000200f9,
22930x00000000,0x000400fa,0x00001cbc,0x00001cbd, 24180x00001dcd,0x000200f8,0x00001dcd,0x000700f5,
22940x00001cc1,0x000200f8,0x00001cbd,0x00050041, 24190x0000002f,0x00001dce,0x00001dc8,0x00001dc7,
22950x00000028,0x00001cbe,0x00001b65,0x00000205, 24200x00001dcc,0x00001dc9,0x000300f7,0x00001dd3,
22960x0004003d,0x00000027,0x00001cbf,0x00001cbe, 24210x00000000,0x000400fa,0x00001dce,0x00001dcf,
22970x000500b4,0x0000002f,0x00001cc0,0x00001cbf, 24220x00001dd3,0x000200f8,0x00001dcf,0x00050041,
22980x0000026d,0x000200f9,0x00001cc1,0x000200f8, 24230x00000028,0x00001dd0,0x00001c65,0x00000233,
22990x00001cc1,0x000700f5,0x0000002f,0x00001cc2, 24240x0004003d,0x00000027,0x00001dd1,0x00001dd0,
23000x00001cbc,0x00001cbb,0x00001cc0,0x00001cbd, 24250x000500b4,0x0000002f,0x00001dd2,0x00001dd1,
23010x000300f7,0x00001cc7,0x00000000,0x000400fa, 24260x0000026d,0x000200f9,0x00001dd3,0x000200f8,
23020x00001cc2,0x00001cc3,0x00001cc7,0x000200f8, 24270x00001dd3,0x000700f5,0x0000002f,0x00001dd4,
23030x00001cc3,0x00050041,0x00000028,0x00001cc4, 24280x00001dce,0x00001dcd,0x00001dd2,0x00001dcf,
23040x00001b65,0x00000215,0x0004003d,0x00000027, 24290x000300f7,0x00001dd9,0x00000000,0x000400fa,
23050x00001cc5,0x00001cc4,0x000500b4,0x0000002f, 24300x00001dd4,0x00001dd5,0x00001dd9,0x000200f8,
23060x00001cc6,0x00001cc5,0x0000026d,0x000200f9, 24310x00001dd5,0x00050041,0x00000028,0x00001dd6,
23070x00001cc7,0x000200f8,0x00001cc7,0x000700f5, 24320x00001c65,0x00000308,0x0004003d,0x00000027,
23080x0000002f,0x00001cc8,0x00001cc2,0x00001cc1, 24330x00001dd7,0x00001dd6,0x000500b4,0x0000002f,
23090x00001cc6,0x00001cc3,0x000300f7,0x00001ccd, 24340x00001dd8,0x00001dd7,0x0000026d,0x000200f9,
23100x00000000,0x000400fa,0x00001cc8,0x00001cc9, 24350x00001dd9,0x000200f8,0x00001dd9,0x000700f5,
23110x00001ccd,0x000200f8,0x00001cc9,0x00050041, 24360x0000002f,0x00001dda,0x00001dd4,0x00001dd3,
23120x00000028,0x00001cca,0x00001b65,0x0000021d, 24370x00001dd8,0x00001dd5,0x000300f7,0x00001ddf,
23130x0004003d,0x00000027,0x00001ccb,0x00001cca, 24380x00000000,0x000400fa,0x00001dda,0x00001ddb,
23140x000500b4,0x0000002f,0x00001ccc,0x00001ccb, 24390x00001ddf,0x000200f8,0x00001ddb,0x00050041,
23150x000004fc,0x000200f9,0x00001ccd,0x000200f8, 24400x00000028,0x00001ddc,0x00001c65,0x00000250,
23160x00001ccd,0x000700f5,0x0000002f,0x00001cce, 24410x0004003d,0x00000027,0x00001ddd,0x00001ddc,
23170x00001cc8,0x00001cc7,0x00001ccc,0x00001cc9, 24420x000500b4,0x0000002f,0x00001dde,0x00001ddd,
23180x000300f7,0x00001cd3,0x00000000,0x000400fa, 24430x0000026d,0x000200f9,0x00001ddf,0x000200f8,
23190x00001cce,0x00001ccf,0x00001cd3,0x000200f8, 24440x00001ddf,0x000700f5,0x0000002f,0x00001de0,
23200x00001ccf,0x00050041,0x00000028,0x00001cd0, 24450x00001dda,0x00001dd9,0x00001dde,0x00001ddb,
23210x00001b65,0x00000233,0x0004003d,0x00000027, 24460x000300f7,0x00001de5,0x00000000,0x000400fa,
23220x00001cd1,0x00001cd0,0x000500b4,0x0000002f, 24470x00001de0,0x00001de1,0x00001de5,0x000200f8,
23230x00001cd2,0x00001cd1,0x0000026d,0x000200f9, 24480x00001de1,0x00050041,0x00000028,0x00001de2,
23240x00001cd3,0x000200f8,0x00001cd3,0x000700f5, 24490x00001c65,0x00000266,0x0004003d,0x00000027,
23250x0000002f,0x00001cd4,0x00001cce,0x00001ccd, 24500x00001de3,0x00001de2,0x000500b4,0x0000002f,
23260x00001cd2,0x00001ccf,0x000300f7,0x00001cd9, 24510x00001de4,0x00001de3,0x000004fc,0x000200f9,
23270x00000000,0x000400fa,0x00001cd4,0x00001cd5, 24520x00001de5,0x000200f8,0x00001de5,0x000700f5,
23280x00001cd9,0x000200f8,0x00001cd5,0x00050041, 24530x0000002f,0x00001de6,0x00001de0,0x00001ddf,
23290x00000028,0x00001cd6,0x00001b65,0x00000308, 24540x00001de4,0x00001de1,0x00050080,0x00000006,
23300x0004003d,0x00000027,0x00001cd7,0x00001cd6, 24550x00001de8,0x00001cf7,0x0000037e,0x000500c7,
23310x000500b4,0x0000002f,0x00001cd8,0x00001cd7, 24560x00000006,0x00001dea,0x000031fb,0x00000531,
23320x0000026d,0x000200f9,0x00001cd9,0x000200f8, 24570x000600a9,0x00000006,0x00001dec,0x00001de6,
23330x00001cd9,0x000700f5,0x0000002f,0x00001cda, 24580x00000130,0x000000a6,0x000500c5,0x00000006,
23340x00001cd4,0x00001cd3,0x00001cd8,0x00001cd5, 24590x00001ded,0x00001dea,0x00001dec,0x00050095,
23350x000300f7,0x00001cdf,0x00000000,0x000400fa, 24600x000000ab,0x000020c4,0x00001f64,0x00001de8,
23360x00001cda,0x00001cdb,0x00001cdf,0x000200f8, 24610x00050051,0x00000006,0x000020c5,0x000020c4,
23370x00001cdb,0x00050041,0x00000028,0x00001cdc, 24620x00000001,0x00050051,0x00000006,0x000020c6,
23380x00001b65,0x00000250,0x0004003d,0x00000027, 24630x000020c4,0x00000000,0x00050080,0x00000006,
23390x00001cdd,0x00001cdc,0x000500b4,0x0000002f, 24640x000020cb,0x00001f6b,0x000020c5,0x00050050,
23400x00001cde,0x00001cdd,0x0000026d,0x000200f9, 24650x00000007,0x000020cc,0x000020c6,0x000020cb,
23410x00001cdf,0x000200f8,0x00001cdf,0x000700f5, 24660x0004007c,0x00000014,0x000020bc,0x000020cc,
23420x0000002f,0x00001ce0,0x00001cda,0x00001cd9, 24670x00060041,0x000000db,0x000020b4,0x000020bc,
23430x00001cde,0x00001cdb,0x000300f7,0x00001ce5, 24680x000000da,0x000000da,0x0005003e,0x000020b4,
23440x00000000,0x000400fa,0x00001ce0,0x00001ce1, 24690x00001ded,0x00000002,0x00000004,0x00050080,
23450x00001ce5,0x000200f8,0x00001ce1,0x00050041, 24700x00000006,0x00001df2,0x00001cf7,0x00000388,
23460x00000028,0x00001ce2,0x00001b65,0x00000266, 24710x000500c2,0x00000006,0x00001df5,0x00001eec,
23470x0004003d,0x00000027,0x00001ce3,0x00001ce2, 24720x00000308,0x000500c4,0x00000006,0x00001df8,
23480x000500b4,0x0000002f,0x00001ce4,0x00001ce3, 24730x00001f0d,0x0000047e,0x000500c5,0x00000006,
23490x000004fc,0x000200f9,0x00001ce5,0x000200f8, 24740x00001df9,0x00001df5,0x00001df8,0x00050095,
23500x00001ce5,0x000700f5,0x0000002f,0x00001ce6, 24750x000000ab,0x000020e4,0x00001f64,0x00001df2,
23510x00001ce0,0x00001cdf,0x00001ce4,0x00001ce1, 24760x00050051,0x00000006,0x000020e5,0x000020e4,
23520x00050080,0x00000006,0x00001ce8,0x00001bf7, 24770x00000001,0x00050051,0x00000006,0x000020e6,
23530x0000037e,0x000500c7,0x00000006,0x00001cea, 24780x000020e4,0x00000000,0x00050080,0x00000006,
23540x000030ef,0x00000531,0x000600a9,0x00000006, 24790x000020eb,0x00001f6b,0x000020e5,0x00050050,
23550x00001cec,0x00001ce6,0x00000130,0x000000a6, 24800x00000007,0x000020ec,0x000020e6,0x000020eb,
23560x000500c5,0x00000006,0x00001ced,0x00001cea, 24810x0004007c,0x00000014,0x000020dc,0x000020ec,
23570x00001cec,0x00050095,0x000000ab,0x00001fc4, 24820x00060041,0x000000db,0x000020d4,0x000020dc,
23580x00001e64,0x00001ce8,0x00050051,0x00000006, 24830x000000da,0x000000da,0x0005003e,0x000020d4,
23590x00001fc5,0x00001fc4,0x00000001,0x00050051, 24840x00001df9,0x00000002,0x00000004,0x0004003d,
23600x00000006,0x00001fc6,0x00001fc4,0x00000000, 24850x00000027,0x00001dfe,0x00001db4,0x00050041,
23610x00050080,0x00000006,0x00001fcb,0x00001e6b, 24860x00000028,0x00001dff,0x00001c65,0x00000215,
23620x00001fc5,0x00050050,0x00000007,0x00001fcc, 24870x0004003d,0x00000027,0x00001e00,0x00001dff,
23630x00001fc6,0x00001fcb,0x0004007c,0x00000014, 24880x00050041,0x00000028,0x00001e01,0x00001c65,
23640x00001fbc,0x00001fcc,0x00060041,0x000000db, 24890x00000308,0x0004003d,0x00000027,0x00001e02,
23650x00001fb4,0x00001fbc,0x000000da,0x000000da, 24900x00001e01,0x00050041,0x00000028,0x00001e03,
23660x0005003e,0x00001fb4,0x00001ced,0x00000002, 24910x00001c65,0x00000154,0x0004003d,0x00000027,
23670x00000004,0x00050080,0x00000006,0x00001cf2, 24920x00001e04,0x00001e03,0x00050041,0x00000028,
23680x00001bf7,0x00000388,0x000500c2,0x00000006, 24930x00001e05,0x00001c65,0x0000021d,0x0004003d,
23690x00001cf5,0x00001dec,0x00000308,0x000500c4, 24940x00000027,0x00001e06,0x00001e05,0x00050041,
23700x00000006,0x00001cf8,0x00001e0d,0x0000047e, 24950x00000028,0x00001e07,0x00001c65,0x00000250,
23710x000500c5,0x00000006,0x00001cf9,0x00001cf5, 24960x0004003d,0x00000027,0x00001e08,0x00001e07,
23720x00001cf8,0x00050095,0x000000ab,0x00001fe4, 24970x00050041,0x00000028,0x00001e09,0x00001c65,
23730x00001e64,0x00001cf2,0x00050051,0x00000006, 24980x00000205,0x0004003d,0x00000027,0x00001e0a,
23740x00001fe5,0x00001fe4,0x00000001,0x00050051, 24990x00001e09,0x00050041,0x00000028,0x00001e0b,
23750x00000006,0x00001fe6,0x00001fe4,0x00000000, 25000x00001c65,0x00000233,0x0004003d,0x00000027,
23760x00050080,0x00000006,0x00001feb,0x00001e6b, 25010x00001e0c,0x00001e0b,0x00050041,0x00000028,
23770x00001fe5,0x00050050,0x00000007,0x00001fec, 25020x00001e0d,0x00001c65,0x00000266,0x0004003d,
23780x00001fe6,0x00001feb,0x0004007c,0x00000014, 25030x00000027,0x00001e0e,0x00001e0d,0x00060050,
23790x00001fdc,0x00001fec,0x00060041,0x000000db, 25040x0000004b,0x00001e0f,0x00001dfe,0x00001e00,
23800x00001fd4,0x00001fdc,0x000000da,0x000000da, 25050x00001e02,0x00060050,0x0000004b,0x00001e10,
23810x0005003e,0x00001fd4,0x00001cf9,0x00000002, 25060x00001e04,0x00001e06,0x00001e08,0x00060050,
23820x00000004,0x0004003d,0x00000027,0x00001cfe, 25070x0000004b,0x00001e11,0x00001e0a,0x00001e0c,
23830x00001cb4,0x00050041,0x00000028,0x00001cff, 25080x00001e0e,0x00060050,0x0000054b,0x00001e12,
23840x00001b65,0x00000215,0x0004003d,0x00000027, 25090x00001e0f,0x00001e10,0x00001e11,0x0006000c,
23850x00001d00,0x00001cff,0x00050041,0x00000028, 25100x00000027,0x00001e14,0x00000001,0x00000021,
23860x00001d01,0x00001b65,0x00000308,0x0004003d, 25110x00001e12,0x000500b7,0x0000002f,0x00001e16,
23870x00000027,0x00001d02,0x00001d01,0x00050041, 25120x00001e14,0x0000026d,0x000300f7,0x00001e1b,
23880x00000028,0x00001d03,0x00001b65,0x00000154, 25130x00000000,0x000400fa,0x00001e16,0x00001e17,
23890x0004003d,0x00000027,0x00001d04,0x00001d03, 25140x00001e1a,0x000200f8,0x00001e17,0x0006000c,
23900x00050041,0x00000028,0x00001d05,0x00001b65, 25150x0000054b,0x00001e19,0x00000001,0x00000022,
23910x0000021d,0x0004003d,0x00000027,0x00001d06, 25160x00001e12,0x000200f9,0x00001e1b,0x000200f8,
23920x00001d05,0x00050041,0x00000028,0x00001d07, 25170x00001e1a,0x000200f9,0x00001e1b,0x000200f8,
23930x00001b65,0x00000250,0x0004003d,0x00000027, 25180x00001e1b,0x000700f5,0x0000054b,0x00003202,
23940x00001d08,0x00001d07,0x00050041,0x00000028, 25190x00001e19,0x00001e17,0x00000571,0x00001e1a,
23950x00001d09,0x00001b65,0x00000205,0x0004003d, 25200x0003003e,0x00001ca6,0x00003202,0x00050041,
23960x00000027,0x00001d0a,0x00001d09,0x00050041, 25210x00000028,0x00001e1d,0x00001c65,0x0000020d,
23970x00000028,0x00001d0b,0x00001b65,0x00000233, 25220x0004003d,0x00000027,0x00001e1e,0x00001e1d,
23980x0004003d,0x00000027,0x00001d0c,0x00001d0b, 25230x00050041,0x00000028,0x00001e1f,0x00001c65,
23990x00050041,0x00000028,0x00001d0d,0x00001b65, 25240x000004d8,0x0004003d,0x00000027,0x00001e20,
24000x00000266,0x0004003d,0x00000027,0x00001d0e, 25250x00001e1f,0x00050041,0x00000028,0x00001e21,
24010x00001d0d,0x00060050,0x0000004b,0x00001d0f, 25260x00001c65,0x0000027b,0x0004003d,0x00000027,
24020x00001cfe,0x00001d00,0x00001d02,0x00060050, 25270x00001e22,0x00001e21,0x00060050,0x0000004b,
24030x0000004b,0x00001d10,0x00001d04,0x00001d06, 25280x00001e23,0x00001e1e,0x00001e20,0x00001e22,
24040x00001d08,0x00060050,0x0000004b,0x00001d11, 25290x00050091,0x0000004b,0x00001e26,0x00003202,
24050x00001d0a,0x00001d0c,0x00001d0e,0x00060050, 25300x00001e23,0x0004007f,0x0000004b,0x00001e27,
24060x0000054b,0x00001d12,0x00001d0f,0x00001d10, 25310x00001e26,0x0003003e,0x00001ca9,0x00001e27,
24070x00001d11,0x0006000c,0x00000027,0x00001d14, 25320x000200f9,0x00001e28,0x000200f8,0x00001e28,
24080x00000001,0x00000021,0x00001d12,0x000500b7, 25330x000700f5,0x00000006,0x00003203,0x000000a6,
24090x0000002f,0x00001d16,0x00001d14,0x0000026d, 25340x00001e1b,0x00001e5b,0x00001e2c,0x000500b0,
24100x000300f7,0x00001d1b,0x00000000,0x000400fa, 25350x0000002f,0x00001e2b,0x00003203,0x000002b7,
24110x00001d16,0x00001d17,0x00001d1a,0x000200f8, 25360x000400f6,0x00001e5c,0x00001e2c,0x00000000,
24120x00001d17,0x0006000c,0x0000054b,0x00001d19, 25370x000400fa,0x00001e2b,0x00001e2c,0x00001e5c,
24130x00000001,0x00000022,0x00001d12,0x000200f9, 25380x000200f8,0x00001e2c,0x00050080,0x00000006,
24140x00001d1b,0x000200f8,0x00001d1a,0x000200f9, 25390x00001e2e,0x00001cf7,0x00000107,0x00050084,
24150x00001d1b,0x000200f8,0x00001d1b,0x000700f5, 25400x00000006,0x00001e30,0x0000011f,0x00003203,
24160x0000054b,0x000030f6,0x00001d19,0x00001d17, 25410x00050080,0x00000006,0x00001e31,0x00001e2e,
24170x00000571,0x00001d1a,0x0003003e,0x00001ba6, 25420x00001e30,0x00060041,0x00000028,0x00001e35,
24180x000030f6,0x00050041,0x00000028,0x00001d1d, 25430x00001ca6,0x000000da,0x00003203,0x0004003d,
24190x00001b65,0x0000020d,0x0004003d,0x00000027, 25440x00000027,0x00001e36,0x00001e35,0x0004007c,
24200x00001d1e,0x00001d1d,0x00050041,0x00000028, 25450x00000006,0x000020f2,0x00001e36,0x00050095,
24210x00001d1f,0x00001b65,0x000004d8,0x0004003d, 25460x000000ab,0x0000210d,0x00001f64,0x00001e31,
24220x00000027,0x00001d20,0x00001d1f,0x00050041, 25470x00050051,0x00000006,0x0000210e,0x0000210d,
24230x00000028,0x00001d21,0x00001b65,0x0000027b, 25480x00000001,0x00050051,0x00000006,0x0000210f,
24240x0004003d,0x00000027,0x00001d22,0x00001d21, 25490x0000210d,0x00000000,0x00050080,0x00000006,
24250x00060050,0x0000004b,0x00001d23,0x00001d1e, 25500x00002114,0x00001f6b,0x0000210e,0x00050050,
24260x00001d20,0x00001d22,0x00050091,0x0000004b, 25510x00000007,0x00002115,0x0000210f,0x00002114,
24270x00001d26,0x000030f6,0x00001d23,0x0004007f, 25520x0004007c,0x00000014,0x00002105,0x00002115,
24280x0000004b,0x00001d27,0x00001d26,0x0003003e, 25530x00060041,0x000000db,0x000020fd,0x00002105,
24290x00001ba9,0x00001d27,0x000200f9,0x00001d28, 25540x000000da,0x000000da,0x0005003e,0x000020fd,
24300x000200f8,0x00001d28,0x000700f5,0x00000006, 25550x000020f2,0x00000002,0x00000004,0x00050080,
24310x000030f7,0x000000a6,0x00001d1b,0x00001d5b, 25560x00000006,0x00001e39,0x00001cf7,0x00000597,
24320x00001d2c,0x000500b0,0x0000002f,0x00001d2b, 25570x00050080,0x00000006,0x00001e3c,0x00001e39,
24330x000030f7,0x000002b7,0x000400f6,0x00001d5c, 25580x00001e30,0x00060041,0x00000028,0x00001e40,
24340x00001d2c,0x00000000,0x000400fa,0x00001d2b, 25590x00001ca6,0x00000154,0x00003203,0x0004003d,
24350x00001d2c,0x00001d5c,0x000200f8,0x00001d2c, 25600x00000027,0x00001e41,0x00001e40,0x0004007c,
24360x00050080,0x00000006,0x00001d2e,0x00001bf7, 25610x00000006,0x0000211b,0x00001e41,0x00050095,
24370x00000107,0x00050084,0x00000006,0x00001d30, 25620x000000ab,0x00002136,0x00001f64,0x00001e3c,
24380x0000011f,0x000030f7,0x00050080,0x00000006, 25630x00050051,0x00000006,0x00002137,0x00002136,
24390x00001d31,0x00001d2e,0x00001d30,0x00060041, 25640x00000001,0x00050051,0x00000006,0x00002138,
24400x00000028,0x00001d35,0x00001ba6,0x000000da, 25650x00002136,0x00000000,0x00050080,0x00000006,
24410x000030f7,0x0004003d,0x00000027,0x00001d36, 25660x0000213d,0x00001f6b,0x00002137,0x00050050,
24420x00001d35,0x0004007c,0x00000006,0x00001ff2, 25670x00000007,0x0000213e,0x00002138,0x0000213d,
24430x00001d36,0x00050095,0x000000ab,0x0000200d, 25680x0004007c,0x00000014,0x0000212e,0x0000213e,
24440x00001e64,0x00001d31,0x00050051,0x00000006, 25690x00060041,0x000000db,0x00002126,0x0000212e,
24450x0000200e,0x0000200d,0x00000001,0x00050051, 25700x000000da,0x000000da,0x0005003e,0x00002126,
24460x00000006,0x0000200f,0x0000200d,0x00000000, 25710x0000211b,0x00000002,0x00000004,0x00050080,
24470x00050080,0x00000006,0x00002014,0x00001e6b, 25720x00000006,0x00001e44,0x00001cf7,0x000005a6,
24480x0000200e,0x00050050,0x00000007,0x00002015, 25730x00050080,0x00000006,0x00001e47,0x00001e44,
24490x0000200f,0x00002014,0x0004007c,0x00000014, 25740x00001e30,0x00060041,0x00000028,0x00001e4b,
24500x00002005,0x00002015,0x00060041,0x000000db, 25750x00001ca6,0x00000205,0x00003203,0x0004003d,
24510x00001ffd,0x00002005,0x000000da,0x000000da, 25760x00000027,0x00001e4c,0x00001e4b,0x0004007c,
24520x0005003e,0x00001ffd,0x00001ff2,0x00000002, 25770x00000006,0x00002144,0x00001e4c,0x00050095,
24530x00000004,0x00050080,0x00000006,0x00001d39, 25780x000000ab,0x0000215f,0x00001f64,0x00001e47,
24540x00001bf7,0x00000597,0x00050080,0x00000006, 25790x00050051,0x00000006,0x00002160,0x0000215f,
24550x00001d3c,0x00001d39,0x00001d30,0x00060041, 25800x00000001,0x00050051,0x00000006,0x00002161,
24560x00000028,0x00001d40,0x00001ba6,0x00000154, 25810x0000215f,0x00000000,0x00050080,0x00000006,
24570x000030f7,0x0004003d,0x00000027,0x00001d41, 25820x00002166,0x00001f6b,0x00002160,0x00050050,
24580x00001d40,0x0004007c,0x00000006,0x0000201b, 25830x00000007,0x00002167,0x00002161,0x00002166,
24590x00001d41,0x00050095,0x000000ab,0x00002036, 25840x0004007c,0x00000014,0x00002157,0x00002167,
24600x00001e64,0x00001d3c,0x00050051,0x00000006, 25850x00060041,0x000000db,0x0000214f,0x00002157,
24610x00002037,0x00002036,0x00000001,0x00050051, 25860x000000da,0x000000da,0x0005003e,0x0000214f,
24620x00000006,0x00002038,0x00002036,0x00000000, 25870x00002144,0x00000002,0x00000004,0x00050080,
24630x00050080,0x00000006,0x0000203d,0x00001e6b, 25880x00000006,0x00001e4f,0x00001cf7,0x000005b5,
24640x00002037,0x00050050,0x00000007,0x0000203e, 25890x00050080,0x00000006,0x00001e52,0x00001e4f,
24650x00002038,0x0000203d,0x0004007c,0x00000014, 25900x00001e30,0x00050041,0x00000028,0x00001e56,
24660x0000202e,0x0000203e,0x00060041,0x000000db, 25910x00001ca9,0x00003203,0x0004003d,0x00000027,
24670x00002026,0x0000202e,0x000000da,0x000000da, 25920x00001e57,0x00001e56,0x0004007c,0x00000006,
24680x0005003e,0x00002026,0x0000201b,0x00000002, 25930x0000216d,0x00001e57,0x00050095,0x000000ab,
24690x00000004,0x00050080,0x00000006,0x00001d44, 25940x00002188,0x00001f64,0x00001e52,0x00050051,
24700x00001bf7,0x000005a6,0x00050080,0x00000006, 25950x00000006,0x00002189,0x00002188,0x00000001,
24710x00001d47,0x00001d44,0x00001d30,0x00060041, 25960x00050051,0x00000006,0x0000218a,0x00002188,
24720x00000028,0x00001d4b,0x00001ba6,0x00000205, 25970x00000000,0x00050080,0x00000006,0x0000218f,
24730x000030f7,0x0004003d,0x00000027,0x00001d4c, 25980x00001f6b,0x00002189,0x00050050,0x00000007,
24740x00001d4b,0x0004007c,0x00000006,0x00002044, 25990x00002190,0x0000218a,0x0000218f,0x0004007c,
24750x00001d4c,0x00050095,0x000000ab,0x0000205f, 26000x00000014,0x00002180,0x00002190,0x00060041,
24760x00001e64,0x00001d47,0x00050051,0x00000006, 26010x000000db,0x00002178,0x00002180,0x000000da,
24770x00002060,0x0000205f,0x00000001,0x00050051, 26020x000000da,0x0005003e,0x00002178,0x0000216d,
24780x00000006,0x00002061,0x0000205f,0x00000000,
24790x00050080,0x00000006,0x00002066,0x00001e6b,
24800x00002060,0x00050050,0x00000007,0x00002067,
24810x00002061,0x00002066,0x0004007c,0x00000014,
24820x00002057,0x00002067,0x00060041,0x000000db,
24830x0000204f,0x00002057,0x000000da,0x000000da,
24840x0005003e,0x0000204f,0x00002044,0x00000002,
24850x00000004,0x00050080,0x00000006,0x00001d4f,
24860x00001bf7,0x000005b5,0x00050080,0x00000006,
24870x00001d52,0x00001d4f,0x00001d30,0x00050041,
24880x00000028,0x00001d56,0x00001ba9,0x000030f7,
24890x0004003d,0x00000027,0x00001d57,0x00001d56,
24900x0004007c,0x00000006,0x0000206d,0x00001d57,
24910x00050095,0x000000ab,0x00002088,0x00001e64,
24920x00001d52,0x00050051,0x00000006,0x00002089,
24930x00002088,0x00000001,0x00050051,0x00000006,
24940x0000208a,0x00002088,0x00000000,0x00050080,
24950x00000006,0x0000208f,0x00001e6b,0x00002089,
24960x00050050,0x00000007,0x00002090,0x0000208a,
24970x0000208f,0x0004007c,0x00000014,0x00002080,
24980x00002090,0x00060041,0x000000db,0x00002078,
24990x00002080,0x000000da,0x000000da,0x0005003e,
25000x00002078,0x0000206d,0x00000002,0x00000004,
25010x00050080,0x00000006,0x00001d5b,0x000030f7,
25020x00000154,0x000200f9,0x00001d28,0x000200f8,
25030x00001d5c,0x00050080,0x00000006,0x00001d5e,
25040x00001bf7,0x000005c6,0x00050095,0x000000ab,
25050x000020a8,0x00001e64,0x00001d5e,0x00050051,
25060x00000006,0x000020a9,0x000020a8,0x00000001,
25070x00050051,0x00000006,0x000020aa,0x000020a8,
25080x00000000,0x00050080,0x00000006,0x000020af,
25090x00001e6b,0x000020a9,0x00050050,0x00000007,
25100x000020b0,0x000020aa,0x000020af,0x0004007c,
25110x00000014,0x000020a0,0x000020b0,0x00060041,
25120x000000db,0x00002098,0x000020a0,0x000000da,
25130x000000da,0x0005003e,0x00002098,0x00000b11,
25140x00000002,0x00000004,0x00050080,0x00000006, 26030x00000002,0x00000004,0x00050080,0x00000006,
25150x00001d64,0x00001bf7,0x000005d0,0x00050095, 26040x00001e5b,0x00003203,0x00000154,0x000200f9,
25160x000000ab,0x000020c8,0x00001e64,0x00001d64, 26050x00001e28,0x000200f8,0x00001e5c,0x00050080,
25170x00050051,0x00000006,0x000020c9,0x000020c8, 26060x00000006,0x00001e5e,0x00001cf7,0x000005c6,
25180x00000001,0x00050051,0x00000006,0x000020ca, 26070x00050095,0x000000ab,0x000021a8,0x00001f64,
25190x000020c8,0x00000000,0x00050080,0x00000006, 26080x00001e5e,0x00050051,0x00000006,0x000021a9,
25200x000020cf,0x00001e6b,0x000020c9,0x00050050, 26090x000021a8,0x00000001,0x00050051,0x00000006,
25210x00000007,0x000020d0,0x000020ca,0x000020cf, 26100x000021aa,0x000021a8,0x00000000,0x00050080,
25220x0004007c,0x00000014,0x000020c0,0x000020d0, 26110x00000006,0x000021af,0x00001f6b,0x000021a9,
25230x00060041,0x000000db,0x000020b8,0x000020c0, 26120x00050050,0x00000007,0x000021b0,0x000021aa,
25240x000000da,0x000000da,0x0005003e,0x000020b8, 26130x000021af,0x0004007c,0x00000014,0x000021a0,
25250x00000380,0x00000002,0x00000004,0x00050080, 26140x000021b0,0x00060041,0x000000db,0x00002198,
25260x00000006,0x00001d69,0x00001bf7,0x000005d9, 26150x000021a0,0x000000da,0x000000da,0x0005003e,
25270x00050095,0x000000ab,0x000020e8,0x00001e64, 26160x00002198,0x00000b11,0x00000002,0x00000004,
25280x00001d69,0x00050051,0x00000006,0x000020e9, 26170x00050080,0x00000006,0x00001e64,0x00001cf7,
25290x000020e8,0x00000001,0x00050051,0x00000006, 26180x000005d0,0x00050095,0x000000ab,0x000021c8,
25300x000020ea,0x000020e8,0x00000000,0x00050080, 26190x00001f64,0x00001e64,0x00050051,0x00000006,
25310x00000006,0x000020ef,0x00001e6b,0x000020e9, 26200x000021c9,0x000021c8,0x00000001,0x00050051,
25320x00050050,0x00000007,0x000020f0,0x000020ea, 26210x00000006,0x000021ca,0x000021c8,0x00000000,
25330x000020ef,0x0004007c,0x00000014,0x000020e0, 26220x00050080,0x00000006,0x000021cf,0x00001f6b,
25340x000020f0,0x00060041,0x000000db,0x000020d8, 26230x000021c9,0x00050050,0x00000007,0x000021d0,
25350x000020e0,0x000000da,0x000000da,0x0005003e, 26240x000021ca,0x000021cf,0x0004007c,0x00000014,
25360x000020d8,0x000000a6,0x00000002,0x00000004, 26250x000021c0,0x000021d0,0x00060041,0x000000db,
25370x00050080,0x00000006,0x00001d6e,0x00001bf7, 26260x000021b8,0x000021c0,0x000000da,0x000000da,
25380x000005e2,0x00050095,0x000000ab,0x00002108, 26270x0005003e,0x000021b8,0x00000380,0x00000002,
25390x00001e64,0x00001d6e,0x00050051,0x00000006, 26280x00000004,0x00050080,0x00000006,0x00001e69,
25400x00002109,0x00002108,0x00000001,0x00050051, 26290x00001cf7,0x000005d9,0x00050095,0x000000ab,
25410x00000006,0x0000210a,0x00002108,0x00000000, 26300x000021e8,0x00001f64,0x00001e69,0x00050051,
25420x00050080,0x00000006,0x0000210f,0x00001e6b, 26310x00000006,0x000021e9,0x000021e8,0x00000001,
25430x00002109,0x00050050,0x00000007,0x00002110, 26320x00050051,0x00000006,0x000021ea,0x000021e8,
25440x0000210a,0x0000210f,0x0004007c,0x00000014, 26330x00000000,0x00050080,0x00000006,0x000021ef,
25450x00002100,0x00002110,0x00060041,0x000000db, 26340x00001f6b,0x000021e9,0x00050050,0x00000007,
25460x000020f8,0x00002100,0x000000da,0x000000da, 26350x000021f0,0x000021ea,0x000021ef,0x0004007c,
25470x0005003e,0x000020f8,0x000000a6,0x00000002, 26360x00000014,0x000021e0,0x000021f0,0x00060041,
25480x00000004,0x000500b4,0x0000002f,0x00001d73, 26370x000000db,0x000021d8,0x000021e0,0x000000da,
25490x00001d14,0x0000026d,0x00060050,0x00000395, 26380x000000da,0x0005003e,0x000021d8,0x000000a6,
25500x000031a4,0x00001d73,0x00001d73,0x00001d73, 26390x00000002,0x00000004,0x00050080,0x00000006,
25510x000600a9,0x0000004b,0x000031a5,0x000031a4, 26400x00001e6e,0x00001cf7,0x000005e2,0x00050095,
25520x0000319b,0x00003115,0x000600a9,0x0000004b, 26410x000000ab,0x00002208,0x00001f64,0x00001e6e,
25530x000031a7,0x000031a4,0x00003199,0x00003103, 26420x00050051,0x00000006,0x00002209,0x00002208,
25540x00050041,0x000000fe,0x0000215a,0x000000fc, 26430x00000001,0x00050051,0x00000006,0x0000220a,
25550x000000fd,0x0004003d,0x00000006,0x0000215b, 26440x00002208,0x00000000,0x00050080,0x00000006,
25560x0000215a,0x00050084,0x00000006,0x0000215c, 26450x0000220f,0x00001f6b,0x00002209,0x00050050,
25570x0000011f,0x0000215b,0x00050080,0x00000006, 26460x00000007,0x00002210,0x0000220a,0x0000220f,
25580x0000215d,0x00000107,0x0000215c,0x00050080, 26470x0004007c,0x00000014,0x00002200,0x00002210,
25590x00000006,0x00002163,0x0000215b,0x0000319c, 26480x00060041,0x000000db,0x000021f8,0x00002200,
25600x00050086,0x00000006,0x00002164,0x00002163, 26490x000000da,0x000000da,0x0005003e,0x000021f8,
25610x00000101,0x00050084,0x00000006,0x00002156, 26500x000000a6,0x00000002,0x00000004,0x000500b4,
25620x00000107,0x00002164,0x00050080,0x00000006, 26510x0000002f,0x00001e73,0x00001e14,0x0000026d,
25630x00002157,0x0000215d,0x00002156,0x00050084, 26520x00060050,0x00000395,0x000032b0,0x00001e73,
25640x00000006,0x00002127,0x00000150,0x00000b11, 26530x00001e73,0x00001e73,0x000600a9,0x0000004b,
25650x00050080,0x00000006,0x00002128,0x00002157, 26540x000032b1,0x000032b0,0x000032a7,0x00003221,
25660x00002127,0x00050041,0x00000156,0x00002129, 26550x000600a9,0x0000004b,0x000032b3,0x000032b0,
25670x000000fc,0x00000154,0x0004003d,0x00000007, 26560x000032a5,0x0000320f,0x00050041,0x000000fe,
25680x0000212a,0x00002129,0x00050051,0x00000027, 26570x0000225a,0x000000fc,0x000000fd,0x0004003d,
25690x0000212d,0x000031a7,0x00000000,0x0004007c, 26580x00000006,0x0000225b,0x0000225a,0x00050084,
25700x00000006,0x0000216a,0x0000212d,0x00050051, 26590x00000006,0x0000225c,0x0000011f,0x0000225b,
25710x00000006,0x00002183,0x0000212a,0x00000000, 26600x00050080,0x00000006,0x0000225d,0x00000107,
25720x00050095,0x000000ab,0x00002185,0x00002183, 26610x0000225c,0x00050080,0x00000006,0x00002263,
25730x00002128,0x00050051,0x00000006,0x00002186, 26620x0000225b,0x000032a8,0x00050086,0x00000006,
25740x00002185,0x00000001,0x00050051,0x00000006, 26630x00002264,0x00002263,0x00000101,0x00050084,
25750x00002187,0x00002185,0x00000000,0x00050051, 26640x00000006,0x00002256,0x00000107,0x00002264,
25760x00000006,0x0000218a,0x0000212a,0x00000001, 26650x00050080,0x00000006,0x00002257,0x0000225d,
25770x00050080,0x00000006,0x0000218c,0x0000218a, 26660x00002256,0x00050084,0x00000006,0x00002227,
25780x00002186,0x00050050,0x00000007,0x0000218d, 26670x00000150,0x00000b11,0x00050080,0x00000006,
25790x00002187,0x0000218c,0x0004007c,0x00000014, 26680x00002228,0x00002257,0x00002227,0x00050041,
25800x0000217d,0x0000218d,0x00060041,0x000000db, 26690x00000156,0x00002229,0x000000fc,0x00000154,
25810x00002175,0x0000217d,0x000000da,0x000000da, 26700x0004003d,0x00000007,0x0000222a,0x00002229,
25820x0005003e,0x00002175,0x0000216a,0x00000002, 26710x00050051,0x00000027,0x0000222d,0x000032b3,
25830x00000004,0x00050080,0x00000006,0x00002130, 26720x00000000,0x0004007c,0x00000006,0x0000226a,
25840x00002128,0x0000010a,0x00050051,0x00000027, 26730x0000222d,0x00050051,0x00000006,0x00002283,
25850x00002134,0x000031a7,0x00000001,0x0004007c, 26740x0000222a,0x00000000,0x00050095,0x000000ab,
25860x00000006,0x00002193,0x00002134,0x00050095, 26750x00002285,0x00002283,0x00002228,0x00050051,
25870x000000ab,0x000021ae,0x00002183,0x00002130, 26760x00000006,0x00002286,0x00002285,0x00000001,
25880x00050051,0x00000006,0x000021af,0x000021ae, 26770x00050051,0x00000006,0x00002287,0x00002285,
25890x00000001,0x00050051,0x00000006,0x000021b0, 26780x00000000,0x00050051,0x00000006,0x0000228a,
25900x000021ae,0x00000000,0x00050080,0x00000006, 26790x0000222a,0x00000001,0x00050080,0x00000006,
25910x000021b5,0x0000218a,0x000021af,0x00050050, 26800x0000228c,0x0000228a,0x00002286,0x00050050,
25920x00000007,0x000021b6,0x000021b0,0x000021b5, 26810x00000007,0x0000228d,0x00002287,0x0000228c,
25930x0004007c,0x00000014,0x000021a6,0x000021b6, 26820x0004007c,0x00000014,0x0000227d,0x0000228d,
25940x00060041,0x000000db,0x0000219e,0x000021a6, 26830x00060041,0x000000db,0x00002275,0x0000227d,
25950x000000da,0x000000da,0x0005003e,0x0000219e, 26840x000000da,0x000000da,0x0005003e,0x00002275,
25960x00002193,0x00000002,0x00000004,0x00050080, 26850x0000226a,0x00000002,0x00000004,0x00050080,
25970x00000006,0x00002137,0x00002128,0x00000111, 26860x00000006,0x00002230,0x00002228,0x0000010a,
25980x00050051,0x00000027,0x0000213b,0x000031a7, 26870x00050051,0x00000027,0x00002234,0x000032b3,
25990x00000002,0x0004007c,0x00000006,0x000021bc, 26880x00000001,0x0004007c,0x00000006,0x00002293,
26000x0000213b,0x00050095,0x000000ab,0x000021d7, 26890x00002234,0x00050095,0x000000ab,0x000022ae,
26010x00002183,0x00002137,0x00050051,0x00000006, 26900x00002283,0x00002230,0x00050051,0x00000006,
26020x000021d8,0x000021d7,0x00000001,0x00050051, 26910x000022af,0x000022ae,0x00000001,0x00050051,
26030x00000006,0x000021d9,0x000021d7,0x00000000, 26920x00000006,0x000022b0,0x000022ae,0x00000000,
26040x00050080,0x00000006,0x000021de,0x0000218a, 26930x00050080,0x00000006,0x000022b5,0x0000228a,
26050x000021d8,0x00050050,0x00000007,0x000021df, 26940x000022af,0x00050050,0x00000007,0x000022b6,
26060x000021d9,0x000021de,0x0004007c,0x00000014, 26950x000022b0,0x000022b5,0x0004007c,0x00000014,
26070x000021cf,0x000021df,0x00060041,0x000000db, 26960x000022a6,0x000022b6,0x00060041,0x000000db,
26080x000021c7,0x000021cf,0x000000da,0x000000da, 26970x0000229e,0x000022a6,0x000000da,0x000000da,
26090x0005003e,0x000021c7,0x000021bc,0x00000002, 26980x0005003e,0x0000229e,0x00002293,0x00000002,
26100x00000004,0x00050080,0x00000006,0x0000213e, 26990x00000004,0x00050080,0x00000006,0x00002237,
26110x00002128,0x00000118,0x00050051,0x00000027, 27000x00002228,0x00000111,0x00050051,0x00000027,
26120x00002142,0x000031a5,0x00000000,0x0004007c, 27010x0000223b,0x000032b3,0x00000002,0x0004007c,
26130x00000006,0x000021e5,0x00002142,0x00050095, 27020x00000006,0x000022bc,0x0000223b,0x00050095,
26140x000000ab,0x00002200,0x00002183,0x0000213e, 27030x000000ab,0x000022d7,0x00002283,0x00002237,
26150x00050051,0x00000006,0x00002201,0x00002200, 27040x00050051,0x00000006,0x000022d8,0x000022d7,
26160x00000001,0x00050051,0x00000006,0x00002202, 27050x00000001,0x00050051,0x00000006,0x000022d9,
26170x00002200,0x00000000,0x00050080,0x00000006, 27060x000022d7,0x00000000,0x00050080,0x00000006,
26180x00002207,0x0000218a,0x00002201,0x00050050, 27070x000022de,0x0000228a,0x000022d8,0x00050050,
26190x00000007,0x00002208,0x00002202,0x00002207, 27080x00000007,0x000022df,0x000022d9,0x000022de,
26200x0004007c,0x00000014,0x000021f8,0x00002208, 27090x0004007c,0x00000014,0x000022cf,0x000022df,
26210x00060041,0x000000db,0x000021f0,0x000021f8, 27100x00060041,0x000000db,0x000022c7,0x000022cf,
26220x000000da,0x000000da,0x0005003e,0x000021f0, 27110x000000da,0x000000da,0x0005003e,0x000022c7,
26230x000021e5,0x00000002,0x00000004,0x00050080, 27120x000022bc,0x00000002,0x00000004,0x00050080,
26240x00000006,0x00002145,0x00002128,0x0000011f, 27130x00000006,0x0000223e,0x00002228,0x00000118,
26250x00050051,0x00000027,0x00002149,0x000031a5, 27140x00050051,0x00000027,0x00002242,0x000032b1,
26260x00000001,0x0004007c,0x00000006,0x0000220e, 27150x00000000,0x0004007c,0x00000006,0x000022e5,
26270x00002149,0x00050095,0x000000ab,0x00002229, 27160x00002242,0x00050095,0x000000ab,0x00002300,
26280x00002183,0x00002145,0x00050051,0x00000006, 27170x00002283,0x0000223e,0x00050051,0x00000006,
26290x0000222a,0x00002229,0x00000001,0x00050051, 27180x00002301,0x00002300,0x00000001,0x00050051,
26300x00000006,0x0000222b,0x00002229,0x00000000, 27190x00000006,0x00002302,0x00002300,0x00000000,
26310x00050080,0x00000006,0x00002230,0x0000218a, 27200x00050080,0x00000006,0x00002307,0x0000228a,
26320x0000222a,0x00050050,0x00000007,0x00002231, 27210x00002301,0x00050050,0x00000007,0x00002308,
26330x0000222b,0x00002230,0x0004007c,0x00000014, 27220x00002302,0x00002307,0x0004007c,0x00000014,
26340x00002221,0x00002231,0x00060041,0x000000db, 27230x000022f8,0x00002308,0x00060041,0x000000db,
26350x00002219,0x00002221,0x000000da,0x000000da, 27240x000022f0,0x000022f8,0x000000da,0x000000da,
26360x0005003e,0x00002219,0x0000220e,0x00000002, 27250x0005003e,0x000022f0,0x000022e5,0x00000002,
26370x00000004,0x00050080,0x00000006,0x0000214c, 27260x00000004,0x00050080,0x00000006,0x00002245,
26380x00002128,0x00000189,0x00050051,0x00000027, 27270x00002228,0x0000011f,0x00050051,0x00000027,
26390x00002150,0x000031a5,0x00000002,0x0004007c, 27280x00002249,0x000032b1,0x00000001,0x0004007c,
26400x00000006,0x00002237,0x00002150,0x00050095, 27290x00000006,0x0000230e,0x00002249,0x00050095,
26410x000000ab,0x00002252,0x00002183,0x0000214c, 27300x000000ab,0x00002329,0x00002283,0x00002245,
26420x00050051,0x00000006,0x00002253,0x00002252, 27310x00050051,0x00000006,0x0000232a,0x00002329,
26430x00000001,0x00050051,0x00000006,0x00002254, 27320x00000001,0x00050051,0x00000006,0x0000232b,
26440x00002252,0x00000000,0x00050080,0x00000006, 27330x00002329,0x00000000,0x00050080,0x00000006,
26450x00002259,0x0000218a,0x00002253,0x00050050, 27340x00002330,0x0000228a,0x0000232a,0x00050050,
26460x00000007,0x0000225a,0x00002254,0x00002259, 27350x00000007,0x00002331,0x0000232b,0x00002330,
26470x0004007c,0x00000014,0x0000224a,0x0000225a, 27360x0004007c,0x00000014,0x00002321,0x00002331,
26480x00060041,0x000000db,0x00002242,0x0000224a, 27370x00060041,0x000000db,0x00002319,0x00002321,
26490x000000da,0x000000da,0x0005003e,0x00002242, 27380x000000da,0x000000da,0x0005003e,0x00002319,
26500x00002237,0x00000002,0x00000004,0x000300f7, 27390x0000230e,0x00000002,0x00000004,0x00050080,
26510x0000229a,0x00000000,0x000300fb,0x000000a6, 27400x00000006,0x0000224c,0x00002228,0x00000189,
26520x00002269,0x000200f8,0x00002269,0x000500bc, 27410x00050051,0x00000027,0x00002250,0x000032b1,
26530x0000002f,0x000022a1,0x0000212d,0x00002142, 27420x00000002,0x0004007c,0x00000006,0x00002337,
26540x000300f7,0x000022a8,0x00000000,0x000400fa, 27430x00002250,0x00050095,0x000000ab,0x00002352,
26550x000022a1,0x000022a2,0x000022a8,0x000200f8, 27440x00002283,0x0000224c,0x00050051,0x00000006,
26560x000022a2,0x000500bc,0x0000002f,0x000022a7, 27450x00002353,0x00002352,0x00000001,0x00050051,
26570x00002134,0x00002149,0x000200f9,0x000022a8, 27460x00000006,0x00002354,0x00002352,0x00000000,
26580x000200f8,0x000022a8,0x000700f5,0x0000002f, 27470x00050080,0x00000006,0x00002359,0x0000228a,
26590x000022a9,0x000022a1,0x00002269,0x000022a7, 27480x00002353,0x00050050,0x00000007,0x0000235a,
26600x000022a2,0x000300f7,0x000022b0,0x00000000, 27490x00002354,0x00002359,0x0004007c,0x00000014,
26610x000400fa,0x000022a9,0x000022aa,0x000022b0, 27500x0000234a,0x0000235a,0x00060041,0x000000db,
26620x000200f8,0x000022aa,0x000500bc,0x0000002f, 27510x00002342,0x0000234a,0x000000da,0x000000da,
26630x000022af,0x0000213b,0x00002150,0x000200f9, 27520x0005003e,0x00002342,0x00002337,0x00000002,
26640x000022b0,0x000200f8,0x000022b0,0x000700f5, 27530x00000004,0x000300f7,0x0000239a,0x00000000,
26650x0000002f,0x000022b1,0x000022a9,0x000022a8, 27540x000300fb,0x000000a6,0x00002369,0x000200f8,
26660x000022af,0x000022aa,0x000400a8,0x0000002f, 27550x00002369,0x000500bc,0x0000002f,0x000023a1,
26670x000022b2,0x000022b1,0x000300f7,0x0000226e, 27560x0000222d,0x00002242,0x000300f7,0x000023a8,
26680x00000000,0x000400fa,0x000022b2,0x0000226d, 27570x00000000,0x000400fa,0x000023a1,0x000023a2,
26690x0000226e,0x000200f8,0x0000226d,0x000200f9, 27580x000023a8,0x000200f8,0x000023a2,0x000500bc,
26700x0000229a,0x000200f8,0x0000226e,0x00050081, 27590x0000002f,0x000023a7,0x00002234,0x00002249,
26710x0000004b,0x00002271,0x000031a7,0x000031a5, 27600x000200f9,0x000023a8,0x000200f8,0x000023a8,
26720x0005008e,0x0000004b,0x00002272,0x00002271, 27610x000700f5,0x0000002f,0x000023a9,0x000023a1,
26730x000001ed,0x00050095,0x000000ab,0x000022c2, 27620x00002369,0x000023a7,0x000023a2,0x000300f7,
26740x00002183,0x000000a6,0x00050051,0x00000006, 27630x000023b0,0x00000000,0x000400fa,0x000023a9,
26750x000022c3,0x000022c2,0x00000001,0x00050051, 27640x000023aa,0x000023b0,0x000200f8,0x000023aa,
26760x00000006,0x000022c4,0x000022c2,0x00000000, 27650x000500bc,0x0000002f,0x000023af,0x0000223b,
26770x00050080,0x00000006,0x000022c9,0x0000218a, 27660x00002250,0x000200f9,0x000023b0,0x000200f8,
26780x000022c3,0x00050050,0x00000007,0x000022ca, 27670x000023b0,0x000700f5,0x0000002f,0x000023b1,
26790x000022c4,0x000022c9,0x0004007c,0x00000014, 27680x000023a9,0x000023a8,0x000023af,0x000023aa,
26800x000022ba,0x000022ca,0x00060041,0x000000db, 27690x000400a8,0x0000002f,0x000023b2,0x000023b1,
26810x00002277,0x000022ba,0x000000da,0x000000da, 27700x000300f7,0x0000236e,0x00000000,0x000400fa,
26820x00050051,0x00000027,0x00002279,0x00002272, 27710x000023b2,0x0000236d,0x0000236e,0x000200f8,
26830x00000000,0x0004007c,0x00000006,0x000022d0, 27720x0000236d,0x000200f9,0x0000239a,0x000200f8,
26840x00002279,0x000500c7,0x00000006,0x000022d2, 27730x0000236e,0x00050081,0x0000004b,0x00002371,
26850x000022d0,0x00000130,0x000500ab,0x0000002f, 27740x000032b3,0x000032b1,0x0005008e,0x0000004b,
26860x000022d3,0x000022d2,0x000000a6,0x000300f7, 27750x00002372,0x00002371,0x000001ed,0x00050095,
26870x000022da,0x00000000,0x000400fa,0x000022d3, 27760x000000ab,0x000023c2,0x00002283,0x000000a6,
26880x000022d4,0x000022d7,0x000200f8,0x000022d4, 27770x00050051,0x00000006,0x000023c3,0x000023c2,
26890x000400c8,0x00000006,0x000022d6,0x000022d0, 27780x00000001,0x00050051,0x00000006,0x000023c4,
26900x000200f9,0x000022da,0x000200f8,0x000022d7, 27790x000023c2,0x00000000,0x00050080,0x00000006,
26910x000500c5,0x00000006,0x000022d9,0x000022d0, 27800x000023c9,0x0000228a,0x000023c3,0x00050050,
26920x00000130,0x000200f9,0x000022da,0x000200f8, 27810x00000007,0x000023ca,0x000023c4,0x000023c9,
26930x000022da,0x000700f5,0x00000006,0x0000311c, 27820x0004007c,0x00000014,0x000023ba,0x000023ca,
26940x000022d6,0x000022d4,0x000022d9,0x000022d7, 27830x00060041,0x000000db,0x00002377,0x000023ba,
26950x000700ed,0x00000006,0x0000227b,0x00002277, 27840x000000da,0x000000da,0x00050051,0x00000027,
26960x000000b0,0x000000a6,0x0000311c,0x00060041, 27850x00002379,0x00002372,0x00000000,0x0004007c,
26970x000000db,0x0000227d,0x000022ba,0x000000da, 27860x00000006,0x000023d0,0x00002379,0x000500c7,
26980x00000154,0x00050051,0x00000027,0x0000227f, 27870x00000006,0x000023d2,0x000023d0,0x00000130,
26990x00002272,0x00000001,0x0004007c,0x00000006, 27880x000500ab,0x0000002f,0x000023d3,0x000023d2,
27000x000022e1,0x0000227f,0x000500c7,0x00000006, 27890x000000a6,0x000300f7,0x000023da,0x00000000,
27010x000022e3,0x000022e1,0x00000130,0x000500ab, 27900x000400fa,0x000023d3,0x000023d4,0x000023d7,
27020x0000002f,0x000022e4,0x000022e3,0x000000a6, 27910x000200f8,0x000023d4,0x000400c8,0x00000006,
27030x000300f7,0x000022eb,0x00000000,0x000400fa, 27920x000023d6,0x000023d0,0x000200f9,0x000023da,
27040x000022e4,0x000022e5,0x000022e8,0x000200f8, 27930x000200f8,0x000023d7,0x000500c5,0x00000006,
27050x000022e5,0x000400c8,0x00000006,0x000022e7, 27940x000023d9,0x000023d0,0x00000130,0x000200f9,
27060x000022e1,0x000200f9,0x000022eb,0x000200f8, 27950x000023da,0x000200f8,0x000023da,0x000700f5,
27070x000022e8,0x000500c5,0x00000006,0x000022ea, 27960x00000006,0x00003228,0x000023d6,0x000023d4,
27080x000022e1,0x00000130,0x000200f9,0x000022eb, 27970x000023d9,0x000023d7,0x000700ed,0x00000006,
27090x000200f8,0x000022eb,0x000700f5,0x00000006, 27980x0000237b,0x00002377,0x000000b0,0x000000a6,
27100x0000311d,0x000022e7,0x000022e5,0x000022ea, 27990x00003228,0x00060041,0x000000db,0x0000237d,
27110x000022e8,0x000700ed,0x00000006,0x00002281, 28000x000023ba,0x000000da,0x00000154,0x00050051,
27120x0000227d,0x000000b0,0x000000a6,0x0000311d, 28010x00000027,0x0000237f,0x00002372,0x00000001,
27130x00060041,0x000000db,0x00002283,0x000022ba, 28020x0004007c,0x00000006,0x000023e1,0x0000237f,
27140x000000da,0x00000205,0x00050051,0x00000027, 28030x000500c7,0x00000006,0x000023e3,0x000023e1,
27150x00002285,0x00002272,0x00000002,0x0004007c, 28040x00000130,0x000500ab,0x0000002f,0x000023e4,
27160x00000006,0x000022f2,0x00002285,0x000500c7, 28050x000023e3,0x000000a6,0x000300f7,0x000023eb,
27170x00000006,0x000022f4,0x000022f2,0x00000130, 28060x00000000,0x000400fa,0x000023e4,0x000023e5,
27180x000500ab,0x0000002f,0x000022f5,0x000022f4, 28070x000023e8,0x000200f8,0x000023e5,0x000400c8,
27190x000000a6,0x000300f7,0x000022fc,0x00000000, 28080x00000006,0x000023e7,0x000023e1,0x000200f9,
27200x000400fa,0x000022f5,0x000022f6,0x000022f9, 28090x000023eb,0x000200f8,0x000023e8,0x000500c5,
27210x000200f8,0x000022f6,0x000400c8,0x00000006, 28100x00000006,0x000023ea,0x000023e1,0x00000130,
27220x000022f8,0x000022f2,0x000200f9,0x000022fc, 28110x000200f9,0x000023eb,0x000200f8,0x000023eb,
27230x000200f8,0x000022f9,0x000500c5,0x00000006, 28120x000700f5,0x00000006,0x00003229,0x000023e7,
27240x000022fb,0x000022f2,0x00000130,0x000200f9, 28130x000023e5,0x000023ea,0x000023e8,0x000700ed,
27250x000022fc,0x000200f8,0x000022fc,0x000700f5, 28140x00000006,0x00002381,0x0000237d,0x000000b0,
27260x00000006,0x0000311e,0x000022f8,0x000022f6, 28150x000000a6,0x00003229,0x00060041,0x000000db,
27270x000022fb,0x000022f9,0x000700ed,0x00000006, 28160x00002383,0x000023ba,0x000000da,0x00000205,
27280x00002287,0x00002283,0x000000b0,0x000000a6, 28170x00050051,0x00000027,0x00002385,0x00002372,
27290x0000311e,0x00060041,0x000000db,0x00002289, 28180x00000002,0x0004007c,0x00000006,0x000023f2,
27300x000022ba,0x000000da,0x0000020d,0x000300f7, 28190x00002385,0x000500c7,0x00000006,0x000023f4,
27310x0000230d,0x00000000,0x000400fa,0x000022d3, 28200x000023f2,0x00000130,0x000500ab,0x0000002f,
27320x00002307,0x0000230a,0x000200f8,0x00002307, 28210x000023f5,0x000023f4,0x000000a6,0x000300f7,
27330x000400c8,0x00000006,0x00002309,0x000022d0, 28220x000023fc,0x00000000,0x000400fa,0x000023f5,
27340x000200f9,0x0000230d,0x000200f8,0x0000230a, 28230x000023f6,0x000023f9,0x000200f8,0x000023f6,
27350x000500c5,0x00000006,0x0000230c,0x000022d0, 28240x000400c8,0x00000006,0x000023f8,0x000023f2,
27360x00000130,0x000200f9,0x0000230d,0x000200f8, 28250x000200f9,0x000023fc,0x000200f8,0x000023f9,
27370x0000230d,0x000700f5,0x00000006,0x0000311f, 28260x000500c5,0x00000006,0x000023fb,0x000023f2,
27380x00002309,0x00002307,0x0000230c,0x0000230a, 28270x00000130,0x000200f9,0x000023fc,0x000200f8,
27390x000700ef,0x00000006,0x0000228d,0x00002289, 28280x000023fc,0x000700f5,0x00000006,0x0000322a,
27400x000000b0,0x000000a6,0x0000311f,0x00060041, 28290x000023f8,0x000023f6,0x000023fb,0x000023f9,
27410x000000db,0x0000228f,0x000022ba,0x000000da, 28300x000700ed,0x00000006,0x00002387,0x00002383,
27420x00000215,0x000300f7,0x0000231e,0x00000000, 28310x000000b0,0x000000a6,0x0000322a,0x00060041,
27430x000400fa,0x000022e4,0x00002318,0x0000231b, 28320x000000db,0x00002389,0x000023ba,0x000000da,
27440x000200f8,0x00002318,0x000400c8,0x00000006, 28330x0000020d,0x000300f7,0x0000240d,0x00000000,
27450x0000231a,0x000022e1,0x000200f9,0x0000231e, 28340x000400fa,0x000023d3,0x00002407,0x0000240a,
27460x000200f8,0x0000231b,0x000500c5,0x00000006, 28350x000200f8,0x00002407,0x000400c8,0x00000006,
27470x0000231d,0x000022e1,0x00000130,0x000200f9, 28360x00002409,0x000023d0,0x000200f9,0x0000240d,
27480x0000231e,0x000200f8,0x0000231e,0x000700f5, 28370x000200f8,0x0000240a,0x000500c5,0x00000006,
27490x00000006,0x00003120,0x0000231a,0x00002318, 28380x0000240c,0x000023d0,0x00000130,0x000200f9,
27500x0000231d,0x0000231b,0x000700ef,0x00000006, 28390x0000240d,0x000200f8,0x0000240d,0x000700f5,
27510x00002293,0x0000228f,0x000000b0,0x000000a6, 28400x00000006,0x0000322b,0x00002409,0x00002407,
27520x00003120,0x00060041,0x000000db,0x00002295, 28410x0000240c,0x0000240a,0x000700ef,0x00000006,
27530x000022ba,0x000000da,0x0000021d,0x000300f7, 28420x0000238d,0x00002389,0x000000b0,0x000000a6,
27540x0000232f,0x00000000,0x000400fa,0x000022f5, 28430x0000322b,0x00060041,0x000000db,0x0000238f,
27550x00002329,0x0000232c,0x000200f8,0x00002329, 28440x000023ba,0x000000da,0x00000215,0x000300f7,
27560x000400c8,0x00000006,0x0000232b,0x000022f2, 28450x0000241e,0x00000000,0x000400fa,0x000023e4,
27570x000200f9,0x0000232f,0x000200f8,0x0000232c, 28460x00002418,0x0000241b,0x000200f8,0x00002418,
27580x000500c5,0x00000006,0x0000232e,0x000022f2, 28470x000400c8,0x00000006,0x0000241a,0x000023e1,
27590x00000130,0x000200f9,0x0000232f,0x000200f8, 28480x000200f9,0x0000241e,0x000200f8,0x0000241b,
27600x0000232f,0x000700f5,0x00000006,0x00003121, 28490x000500c5,0x00000006,0x0000241d,0x000023e1,
27610x0000232b,0x00002329,0x0000232e,0x0000232c, 28500x00000130,0x000200f9,0x0000241e,0x000200f8,
27620x000700ef,0x00000006,0x00002299,0x00002295, 28510x0000241e,0x000700f5,0x00000006,0x0000322c,
27630x000000b0,0x000000a6,0x00003121,0x000200f9, 28520x0000241a,0x00002418,0x0000241d,0x0000241b,
27640x0000229a,0x000200f8,0x0000229a,0x000200f9, 28530x000700ef,0x00000006,0x00002393,0x0000238f,
27650x00000b9e,0x000200f8,0x00000ba2,0x000500aa, 28540x000000b0,0x000000a6,0x0000322c,0x00060041,
27660x0000002f,0x00000ba5,0x00000b13,0x000002b7, 28550x000000db,0x00002395,0x000023ba,0x000000da,
27670x000300f7,0x00000ba7,0x00000000,0x000400fa, 28560x0000021d,0x000300f7,0x0000242f,0x00000000,
27680x00000ba5,0x00000ba6,0x00000bab,0x000200f8, 28570x000400fa,0x000023f5,0x00002429,0x0000242c,
27690x00000ba6,0x00050041,0x000000fe,0x000023e4, 28580x000200f8,0x00002429,0x000400c8,0x00000006,
27700x000000fc,0x000000fd,0x0004003d,0x00000006, 28590x0000242b,0x000023f2,0x000200f9,0x0000242f,
27710x000023e5,0x000023e4,0x00050084,0x00000006, 28600x000200f8,0x0000242c,0x000500c5,0x00000006,
27720x000023e6,0x0000011f,0x000023e5,0x00050080, 28610x0000242e,0x000023f2,0x00000130,0x000200f9,
27730x00000006,0x000023e7,0x00000107,0x000023e6, 28620x0000242f,0x000200f8,0x0000242f,0x000700f5,
27740x00050080,0x00000006,0x000023ed,0x000023e5, 28630x00000006,0x0000322d,0x0000242b,0x00002429,
27750x0000319c,0x00050086,0x00000006,0x000023ee, 28640x0000242e,0x0000242c,0x000700ef,0x00000006,
27760x000023ed,0x00000101,0x00050084,0x00000006, 28650x00002399,0x00002395,0x000000b0,0x000000a6,
27770x000023e0,0x00000107,0x000023ee,0x00050080, 28660x0000322d,0x000200f9,0x0000239a,0x000200f8,
27780x00000006,0x000023e1,0x000023e7,0x000023e0, 28670x0000239a,0x000200f9,0x00000bdb,0x000200f8,
27790x00050084,0x00000006,0x000023b5,0x00000150, 28680x00000bdf,0x000500aa,0x0000002f,0x00000be2,
27800x00000b11,0x00050080,0x00000006,0x000023b6, 28690x00000b13,0x000002b7,0x000300f7,0x00000be4,
27810x000023e1,0x000023b5,0x00050041,0x00000156, 28700x00000000,0x000400fa,0x00000be2,0x00000be3,
27820x000023b7,0x000000fc,0x00000154,0x0004003d, 28710x00000be8,0x000200f8,0x00000be3,0x00050041,
27830x00000007,0x000023b8,0x000023b7,0x00050051, 28720x000000fe,0x000024e4,0x000000fc,0x000000fd,
27840x00000006,0x00002405,0x000023b8,0x00000000, 28730x0004003d,0x00000006,0x000024e5,0x000024e4,
27850x00050095,0x000000ab,0x00002407,0x00002405, 28740x00050084,0x00000006,0x000024e6,0x0000011f,
27860x000023b6,0x00050051,0x00000006,0x00002408, 28750x000024e5,0x00050080,0x00000006,0x000024e7,
27870x00002407,0x00000001,0x00050051,0x00000006, 28760x00000107,0x000024e6,0x00050080,0x00000006,
27880x00002409,0x00002407,0x00000000,0x00050051, 28770x000024ed,0x000024e5,0x000032a8,0x00050086,
27890x00000006,0x0000240c,0x000023b8,0x00000001, 28780x00000006,0x000024ee,0x000024ed,0x00000101,
27900x00050080,0x00000006,0x0000240e,0x0000240c, 28790x00050084,0x00000006,0x000024e0,0x00000107,
27910x00002408,0x00050050,0x00000007,0x0000240f, 28800x000024ee,0x00050080,0x00000006,0x000024e1,
27920x00002409,0x0000240e,0x0004007c,0x00000014, 28810x000024e7,0x000024e0,0x00050084,0x00000006,
27930x000023ff,0x0000240f,0x00060041,0x000000db, 28820x000024b5,0x00000150,0x00000b11,0x00050080,
27940x000023f6,0x000023ff,0x000000da,0x000000da, 28830x00000006,0x000024b6,0x000024e1,0x000024b5,
27950x0006003d,0x00000006,0x000023f7,0x000023f6, 28840x00050041,0x00000156,0x000024b7,0x000000fc,
27960x00000002,0x00000004,0x0004007c,0x00000027, 28850x00000154,0x0004003d,0x00000007,0x000024b8,
27970x000023bb,0x000023f7,0x00050080,0x00000006, 28860x000024b7,0x00050051,0x00000006,0x00002505,
27980x000023bd,0x000023b6,0x0000010a,0x00050095, 28870x000024b8,0x00000000,0x00050095,0x000000ab,
27990x000000ab,0x00002428,0x00002405,0x000023bd, 28880x00002507,0x00002505,0x000024b6,0x00050051,
28000x00050051,0x00000006,0x00002429,0x00002428, 28890x00000006,0x00002508,0x00002507,0x00000001,
28010x00000001,0x00050051,0x00000006,0x0000242a, 28900x00050051,0x00000006,0x00002509,0x00002507,
28020x00002428,0x00000000,0x00050080,0x00000006, 28910x00000000,0x00050051,0x00000006,0x0000250c,
28030x0000242f,0x0000240c,0x00002429,0x00050050, 28920x000024b8,0x00000001,0x00050080,0x00000006,
28040x00000007,0x00002430,0x0000242a,0x0000242f, 28930x0000250e,0x0000250c,0x00002508,0x00050050,
28050x0004007c,0x00000014,0x00002420,0x00002430, 28940x00000007,0x0000250f,0x00002509,0x0000250e,
28060x00060041,0x000000db,0x00002417,0x00002420, 28950x0004007c,0x00000014,0x000024ff,0x0000250f,
28960x00060041,0x000000db,0x000024f6,0x000024ff,
28070x000000da,0x000000da,0x0006003d,0x00000006, 28970x000000da,0x000000da,0x0006003d,0x00000006,
28080x00002418,0x00002417,0x00000002,0x00000004, 28980x000024f7,0x000024f6,0x00000002,0x00000004,
28090x0004007c,0x00000027,0x000023c1,0x00002418, 28990x0004007c,0x00000027,0x000024bb,0x000024f7,
28100x00050080,0x00000006,0x000023c3,0x000023b6, 29000x00050080,0x00000006,0x000024bd,0x000024b6,
28110x00000111,0x00050095,0x000000ab,0x00002449, 29010x0000010a,0x00050095,0x000000ab,0x00002528,
28120x00002405,0x000023c3,0x00050051,0x00000006, 29020x00002505,0x000024bd,0x00050051,0x00000006,
28130x0000244a,0x00002449,0x00000001,0x00050051, 29030x00002529,0x00002528,0x00000001,0x00050051,
28140x00000006,0x0000244b,0x00002449,0x00000000, 29040x00000006,0x0000252a,0x00002528,0x00000000,
28150x00050080,0x00000006,0x00002450,0x0000240c, 29050x00050080,0x00000006,0x0000252f,0x0000250c,
28160x0000244a,0x00050050,0x00000007,0x00002451, 29060x00002529,0x00050050,0x00000007,0x00002530,
28170x0000244b,0x00002450,0x0004007c,0x00000014, 29070x0000252a,0x0000252f,0x0004007c,0x00000014,
28180x00002441,0x00002451,0x00060041,0x000000db, 29080x00002520,0x00002530,0x00060041,0x000000db,
28190x00002438,0x00002441,0x000000da,0x000000da, 29090x00002517,0x00002520,0x000000da,0x000000da,
28200x0006003d,0x00000006,0x00002439,0x00002438, 29100x0006003d,0x00000006,0x00002518,0x00002517,
28210x00000002,0x00000004,0x0004007c,0x00000027,
28220x000023c7,0x00002439,0x00060050,0x0000004b,
28230x000023c8,0x000023bb,0x000023c1,0x000023c7,
28240x00050080,0x00000006,0x000023ca,0x000023b6,
28250x00000118,0x00050095,0x000000ab,0x0000246a,
28260x00002405,0x000023ca,0x00050051,0x00000006,
28270x0000246b,0x0000246a,0x00000001,0x00050051,
28280x00000006,0x0000246c,0x0000246a,0x00000000,
28290x00050080,0x00000006,0x00002471,0x0000240c,
28300x0000246b,0x00050050,0x00000007,0x00002472,
28310x0000246c,0x00002471,0x0004007c,0x00000014,
28320x00002462,0x00002472,0x00060041,0x000000db,
28330x00002459,0x00002462,0x000000da,0x000000da,
28340x0006003d,0x00000006,0x0000245a,0x00002459,
28350x00000002,0x00000004,0x0004007c,0x00000027, 29110x00000002,0x00000004,0x0004007c,0x00000027,
28360x000023ce,0x0000245a,0x00050080,0x00000006, 29120x000024c1,0x00002518,0x00050080,0x00000006,
28370x000023d0,0x000023b6,0x0000011f,0x00050095, 29130x000024c3,0x000024b6,0x00000111,0x00050095,
28380x000000ab,0x0000248b,0x00002405,0x000023d0, 29140x000000ab,0x00002549,0x00002505,0x000024c3,
28390x00050051,0x00000006,0x0000248c,0x0000248b, 29150x00050051,0x00000006,0x0000254a,0x00002549,
28400x00000001,0x00050051,0x00000006,0x0000248d, 29160x00000001,0x00050051,0x00000006,0x0000254b,
28410x0000248b,0x00000000,0x00050080,0x00000006, 29170x00002549,0x00000000,0x00050080,0x00000006,
28420x00002492,0x0000240c,0x0000248c,0x00050050, 29180x00002550,0x0000250c,0x0000254a,0x00050050,
28430x00000007,0x00002493,0x0000248d,0x00002492, 29190x00000007,0x00002551,0x0000254b,0x00002550,
28440x0004007c,0x00000014,0x00002483,0x00002493, 29200x0004007c,0x00000014,0x00002541,0x00002551,
28450x00060041,0x000000db,0x0000247a,0x00002483, 29210x00060041,0x000000db,0x00002538,0x00002541,
28460x000000da,0x000000da,0x0006003d,0x00000006, 29220x000000da,0x000000da,0x0006003d,0x00000006,
28470x0000247b,0x0000247a,0x00000002,0x00000004, 29230x00002539,0x00002538,0x00000002,0x00000004,
28480x0004007c,0x00000027,0x000023d4,0x0000247b, 29240x0004007c,0x00000027,0x000024c7,0x00002539,
28490x00050080,0x00000006,0x000023d6,0x000023b6, 29250x00060050,0x0000004b,0x000024c8,0x000024bb,
28500x00000189,0x00050095,0x000000ab,0x000024ac, 29260x000024c1,0x000024c7,0x00050080,0x00000006,
28510x00002405,0x000023d6,0x00050051,0x00000006, 29270x000024ca,0x000024b6,0x00000118,0x00050095,
28520x000024ad,0x000024ac,0x00000001,0x00050051, 29280x000000ab,0x0000256a,0x00002505,0x000024ca,
28530x00000006,0x000024ae,0x000024ac,0x00000000, 29290x00050051,0x00000006,0x0000256b,0x0000256a,
28540x00050080,0x00000006,0x000024b3,0x0000240c, 29300x00000001,0x00050051,0x00000006,0x0000256c,
28550x000024ad,0x00050050,0x00000007,0x000024b4, 29310x0000256a,0x00000000,0x00050080,0x00000006,
28560x000024ae,0x000024b3,0x0004007c,0x00000014, 29320x00002571,0x0000250c,0x0000256b,0x00050050,
28570x000024a4,0x000024b4,0x00060041,0x000000db, 29330x00000007,0x00002572,0x0000256c,0x00002571,
28580x0000249b,0x000024a4,0x000000da,0x000000da, 29340x0004007c,0x00000014,0x00002562,0x00002572,
28590x0006003d,0x00000006,0x0000249c,0x0000249b, 29350x00060041,0x000000db,0x00002559,0x00002562,
29360x000000da,0x000000da,0x0006003d,0x00000006,
29370x0000255a,0x00002559,0x00000002,0x00000004,
29380x0004007c,0x00000027,0x000024ce,0x0000255a,
29390x00050080,0x00000006,0x000024d0,0x000024b6,
29400x0000011f,0x00050095,0x000000ab,0x0000258b,
29410x00002505,0x000024d0,0x00050051,0x00000006,
29420x0000258c,0x0000258b,0x00000001,0x00050051,
29430x00000006,0x0000258d,0x0000258b,0x00000000,
29440x00050080,0x00000006,0x00002592,0x0000250c,
29450x0000258c,0x00050050,0x00000007,0x00002593,
29460x0000258d,0x00002592,0x0004007c,0x00000014,
29470x00002583,0x00002593,0x00060041,0x000000db,
29480x0000257a,0x00002583,0x000000da,0x000000da,
29490x0006003d,0x00000006,0x0000257b,0x0000257a,
28600x00000002,0x00000004,0x0004007c,0x00000027, 29500x00000002,0x00000004,0x0004007c,0x00000027,
28610x000023da,0x0000249c,0x00060050,0x0000004b, 29510x000024d4,0x0000257b,0x00050080,0x00000006,
28620x000023db,0x000023ce,0x000023d4,0x000023da, 29520x000024d6,0x000024b6,0x00000189,0x00050095,
28630x000500bc,0x0000002f,0x000024bb,0x000023bb, 29530x000000ab,0x000025ac,0x00002505,0x000024d6,
28640x000023ce,0x000300f7,0x000024c2,0x00000000, 29540x00050051,0x00000006,0x000025ad,0x000025ac,
28650x000400fa,0x000024bb,0x000024bc,0x000024c2, 29550x00000001,0x00050051,0x00000006,0x000025ae,
28660x000200f8,0x000024bc,0x000500bc,0x0000002f, 29560x000025ac,0x00000000,0x00050080,0x00000006,
28670x000024c1,0x000023c1,0x000023d4,0x000200f9, 29570x000025b3,0x0000250c,0x000025ad,0x00050050,
28680x000024c2,0x000200f8,0x000024c2,0x000700f5, 29580x00000007,0x000025b4,0x000025ae,0x000025b3,
28690x0000002f,0x000024c3,0x000024bb,0x00000ba6, 29590x0004007c,0x00000014,0x000025a4,0x000025b4,
28700x000024c1,0x000024bc,0x000300f7,0x000024ca, 29600x00060041,0x000000db,0x0000259b,0x000025a4,
28710x00000000,0x000400fa,0x000024c3,0x000024c4, 29610x000000da,0x000000da,0x0006003d,0x00000006,
28720x000024ca,0x000200f8,0x000024c4,0x000500bc, 29620x0000259c,0x0000259b,0x00000002,0x00000004,
28730x0000002f,0x000024c9,0x000023c7,0x000023da, 29630x0004007c,0x00000027,0x000024da,0x0000259c,
28740x000200f9,0x000024ca,0x000200f8,0x000024ca, 29640x00060050,0x0000004b,0x000024db,0x000024ce,
28750x000700f5,0x0000002f,0x000024cb,0x000024c3, 29650x000024d4,0x000024da,0x000500bc,0x0000002f,
28760x000024c2,0x000024c9,0x000024c4,0x000300f7, 29660x000025bb,0x000024bb,0x000024ce,0x000300f7,
28770x00002394,0x00000000,0x000400fa,0x000024cb, 29670x000025c2,0x00000000,0x000400fa,0x000025bb,
28780x00002358,0x00002394,0x000200f8,0x00002358, 29680x000025bc,0x000025c2,0x000200f8,0x000025bc,
28790x00050095,0x000000ab,0x000024dc,0x00002405, 29690x000500bc,0x0000002f,0x000025c1,0x000024c1,
28800x000000a6,0x00050051,0x00000006,0x000024dd, 29700x000024d4,0x000200f9,0x000025c2,0x000200f8,
28810x000024dc,0x00000001,0x00050051,0x00000006, 29710x000025c2,0x000700f5,0x0000002f,0x000025c3,
28820x000024de,0x000024dc,0x00000000,0x00050080, 29720x000025bb,0x00000be3,0x000025c1,0x000025bc,
28830x00000006,0x000024e3,0x0000240c,0x000024dd, 29730x000300f7,0x000025ca,0x00000000,0x000400fa,
28840x00050050,0x00000007,0x000024e4,0x000024de, 29740x000025c3,0x000025c4,0x000025ca,0x000200f8,
28850x000024e3,0x0004007c,0x00000014,0x000024d4, 29750x000025c4,0x000500bc,0x0000002f,0x000025c9,
28860x000024e4,0x00060041,0x000000db,0x0000235d, 29760x000024c7,0x000024da,0x000200f9,0x000025ca,
28870x000024d4,0x000000da,0x000000da,0x0006003d, 29770x000200f8,0x000025ca,0x000700f5,0x0000002f,
28880x00000006,0x0000235e,0x0000235d,0x00000002, 29780x000025cb,0x000025c3,0x000025c2,0x000025c9,
28890x00000004,0x000500c7,0x00000006,0x000024e9, 29790x000025c4,0x000300f7,0x00002494,0x00000000,
28900x0000235e,0x00000130,0x000500ab,0x0000002f, 29800x000400fa,0x000025cb,0x00002458,0x00002494,
28910x000024ea,0x000024e9,0x000000a6,0x000300f7, 29810x000200f8,0x00002458,0x00050095,0x000000ab,
28920x000024f1,0x00000000,0x000400fa,0x000024ea, 29820x000025dc,0x00002505,0x000000a6,0x00050051,
28930x000024eb,0x000024ee,0x000200f8,0x000024eb, 29830x00000006,0x000025dd,0x000025dc,0x00000001,
28940x000500c7,0x00000006,0x000024ed,0x0000235e, 29840x00050051,0x00000006,0x000025de,0x000025dc,
28950x00000145,0x000200f9,0x000024f1,0x000200f8, 29850x00000000,0x00050080,0x00000006,0x000025e3,
28960x000024ee,0x000400c8,0x00000006,0x000024f0, 29860x0000250c,0x000025dd,0x00050050,0x00000007,
28970x0000235e,0x000200f9,0x000024f1,0x000200f8, 29870x000025e4,0x000025de,0x000025e3,0x0004007c,
28980x000024f1,0x000700f5,0x00000006,0x000030db, 29880x00000014,0x000025d4,0x000025e4,0x00060041,
28990x000024ed,0x000024eb,0x000024f0,0x000024ee, 29890x000000db,0x0000245d,0x000025d4,0x000000da,
29000x0004007c,0x00000027,0x000024f3,0x000030db, 29900x000000da,0x0006003d,0x00000006,0x0000245e,
29010x00060041,0x000000db,0x00002361,0x000024d4, 29910x0000245d,0x00000002,0x00000004,0x000500c7,
29020x000000da,0x00000154,0x0006003d,0x00000006, 29920x00000006,0x000025e9,0x0000245e,0x00000130,
29030x00002362,0x00002361,0x00000002,0x00000004, 29930x000500ab,0x0000002f,0x000025ea,0x000025e9,
29040x000500c7,0x00000006,0x000024f8,0x00002362, 29940x000000a6,0x000300f7,0x000025f1,0x00000000,
29050x00000130,0x000500ab,0x0000002f,0x000024f9, 29950x000400fa,0x000025ea,0x000025eb,0x000025ee,
29060x000024f8,0x000000a6,0x000300f7,0x00002500, 29960x000200f8,0x000025eb,0x000500c7,0x00000006,
29070x00000000,0x000400fa,0x000024f9,0x000024fa, 29970x000025ed,0x0000245e,0x00000145,0x000200f9,
29080x000024fd,0x000200f8,0x000024fa,0x000500c7, 29980x000025f1,0x000200f8,0x000025ee,0x000400c8,
29090x00000006,0x000024fc,0x00002362,0x00000145, 29990x00000006,0x000025f0,0x0000245e,0x000200f9,
29100x000200f9,0x00002500,0x000200f8,0x000024fd, 30000x000025f1,0x000200f8,0x000025f1,0x000700f5,
29110x000400c8,0x00000006,0x000024ff,0x00002362, 30010x00000006,0x000031e7,0x000025ed,0x000025eb,
29120x000200f9,0x00002500,0x000200f8,0x00002500, 30020x000025f0,0x000025ee,0x0004007c,0x00000027,
29130x000700f5,0x00000006,0x000030dc,0x000024fc, 30030x000025f3,0x000031e7,0x00060041,0x000000db,
29140x000024fa,0x000024ff,0x000024fd,0x0004007c, 30040x00002461,0x000025d4,0x000000da,0x00000154,
29150x00000027,0x00002502,0x000030dc,0x00060041, 30050x0006003d,0x00000006,0x00002462,0x00002461,
29160x000000db,0x00002365,0x000024d4,0x000000da,
29170x00000205,0x0006003d,0x00000006,0x00002366,
29180x00002365,0x00000002,0x00000004,0x000500c7,
29190x00000006,0x00002507,0x00002366,0x00000130,
29200x000500ab,0x0000002f,0x00002508,0x00002507,
29210x000000a6,0x000300f7,0x0000250f,0x00000000,
29220x000400fa,0x00002508,0x00002509,0x0000250c,
29230x000200f8,0x00002509,0x000500c7,0x00000006,
29240x0000250b,0x00002366,0x00000145,0x000200f9,
29250x0000250f,0x000200f8,0x0000250c,0x000400c8,
29260x00000006,0x0000250e,0x00002366,0x000200f9,
29270x0000250f,0x000200f8,0x0000250f,0x000700f5,
29280x00000006,0x000030dd,0x0000250b,0x00002509,
29290x0000250e,0x0000250c,0x0004007c,0x00000027,
29300x00002511,0x000030dd,0x00060050,0x0000004b,
29310x00002368,0x000024f3,0x00002502,0x00002511,
29320x00060041,0x000000db,0x0000236a,0x000024d4,
29330x000000da,0x0000020d,0x0006003d,0x00000006,
29340x0000236b,0x0000236a,0x00000002,0x00000004,
29350x000500c7,0x00000006,0x00002516,0x0000236b,
29360x00000130,0x000500ab,0x0000002f,0x00002517,
29370x00002516,0x000000a6,0x000300f7,0x0000251e,
29380x00000000,0x000400fa,0x00002517,0x00002518,
29390x0000251b,0x000200f8,0x00002518,0x000500c7,
29400x00000006,0x0000251a,0x0000236b,0x00000145,
29410x000200f9,0x0000251e,0x000200f8,0x0000251b,
29420x000400c8,0x00000006,0x0000251d,0x0000236b,
29430x000200f9,0x0000251e,0x000200f8,0x0000251e,
29440x000700f5,0x00000006,0x000030de,0x0000251a,
29450x00002518,0x0000251d,0x0000251b,0x0004007c,
29460x00000027,0x00002520,0x000030de,0x00060041,
29470x000000db,0x0000236e,0x000024d4,0x000000da,
29480x00000215,0x0006003d,0x00000006,0x0000236f,
29490x0000236e,0x00000002,0x00000004,0x000500c7,
29500x00000006,0x00002525,0x0000236f,0x00000130,
29510x000500ab,0x0000002f,0x00002526,0x00002525,
29520x000000a6,0x000300f7,0x0000252d,0x00000000,
29530x000400fa,0x00002526,0x00002527,0x0000252a,
29540x000200f8,0x00002527,0x000500c7,0x00000006,
29550x00002529,0x0000236f,0x00000145,0x000200f9,
29560x0000252d,0x000200f8,0x0000252a,0x000400c8,
29570x00000006,0x0000252c,0x0000236f,0x000200f9,
29580x0000252d,0x000200f8,0x0000252d,0x000700f5,
29590x00000006,0x000030df,0x00002529,0x00002527,
29600x0000252c,0x0000252a,0x0004007c,0x00000027,
29610x0000252f,0x000030df,0x00060041,0x000000db,
29620x00002372,0x000024d4,0x000000da,0x0000021d,
29630x0006003d,0x00000006,0x00002373,0x00002372,
29640x00000002,0x00000004,0x000500c7,0x00000006, 30060x00000002,0x00000004,0x000500c7,0x00000006,
29650x00002534,0x00002373,0x00000130,0x000500ab, 30070x000025f8,0x00002462,0x00000130,0x000500ab,
29660x0000002f,0x00002535,0x00002534,0x000000a6, 30080x0000002f,0x000025f9,0x000025f8,0x000000a6,
29670x000300f7,0x0000253c,0x00000000,0x000400fa, 30090x000300f7,0x00002600,0x00000000,0x000400fa,
29680x00002535,0x00002536,0x00002539,0x000200f8, 30100x000025f9,0x000025fa,0x000025fd,0x000200f8,
29690x00002536,0x000500c7,0x00000006,0x00002538, 30110x000025fa,0x000500c7,0x00000006,0x000025fc,
29700x00002373,0x00000145,0x000200f9,0x0000253c, 30120x00002462,0x00000145,0x000200f9,0x00002600,
29710x000200f8,0x00002539,0x000400c8,0x00000006, 30130x000200f8,0x000025fd,0x000400c8,0x00000006,
29720x0000253b,0x00002373,0x000200f9,0x0000253c, 30140x000025ff,0x00002462,0x000200f9,0x00002600,
29730x000200f8,0x0000253c,0x000700f5,0x00000006, 30150x000200f8,0x00002600,0x000700f5,0x00000006,
29740x000030e0,0x00002538,0x00002536,0x0000253b, 30160x000031e8,0x000025fc,0x000025fa,0x000025ff,
29750x00002539,0x0004007c,0x00000027,0x0000253e, 30170x000025fd,0x0004007c,0x00000027,0x00002602,
29760x000030e0,0x00060050,0x0000004b,0x00002375, 30180x000031e8,0x00060041,0x000000db,0x00002465,
29770x00002520,0x0000252f,0x0000253e,0x00050083, 30190x000025d4,0x000000da,0x00000205,0x0006003d,
29780x0000004b,0x00002378,0x00002375,0x00002368, 30200x00000006,0x00002466,0x00002465,0x00000002,
29790x0007000c,0x0000004b,0x00002379,0x00000001, 30210x00000004,0x000500c7,0x00000006,0x00002607,
29800x00000028,0x00002378,0x0000065b,0x00050081, 30220x00002466,0x00000130,0x000500ab,0x0000002f,
29810x0000004b,0x0000237c,0x000023c8,0x000023db, 30230x00002608,0x00002607,0x000000a6,0x000300f7,
29820x0005008e,0x0000004b,0x0000237d,0x0000237c, 30240x0000260f,0x00000000,0x000400fa,0x00002608,
29830x000001ed,0x00050083,0x0000004b,0x0000237f, 30250x00002609,0x0000260c,0x000200f8,0x00002609,
29840x0000237d,0x00002368,0x00050088,0x0000004b, 30260x000500c7,0x00000006,0x0000260b,0x00002466,
29850x00002381,0x0000237f,0x00002379,0x0008000c, 30270x00000145,0x000200f9,0x0000260f,0x000200f8,
29860x0000004b,0x00002384,0x00000001,0x0000002b, 30280x0000260c,0x000400c8,0x00000006,0x0000260e,
29870x00002381,0x00000570,0x00003196,0x0005008e, 30290x00002466,0x000200f9,0x0000260f,0x000200f8,
29880x0000004b,0x00002385,0x00002384,0x0000066b, 30300x0000260f,0x000700f5,0x00000006,0x000031e9,
29890x0004006d,0x0000065d,0x00002386,0x00002385, 30310x0000260b,0x00002609,0x0000260e,0x0000260c,
29900x00050051,0x00000006,0x00002388,0x00002386, 30320x0004007c,0x00000027,0x00002611,0x000031e9,
29910x00000000,0x000500c7,0x00000006,0x00002542, 30330x00060050,0x0000004b,0x00002468,0x000025f3,
29920x00002388,0x000005fe,0x000500c4,0x00000006, 30340x00002602,0x00002611,0x00060041,0x000000db,
29930x00002545,0x00002542,0x0000023e,0x000500c5, 30350x0000246a,0x000025d4,0x000000da,0x0000020d,
29940x00000006,0x00002546,0x00002542,0x00002545, 30360x0006003d,0x00000006,0x0000246b,0x0000246a,
29950x000500c7,0x00000006,0x00002547,0x00002546, 30370x00000002,0x00000004,0x000500c7,0x00000006,
29960x00000605,0x000500c4,0x00000006,0x0000254a, 30380x00002616,0x0000246b,0x00000130,0x000500ab,
29970x00002547,0x00000308,0x000500c5,0x00000006, 30390x0000002f,0x00002617,0x00002616,0x000000a6,
29980x0000254b,0x00002547,0x0000254a,0x000500c7, 30400x000300f7,0x0000261e,0x00000000,0x000400fa,
29990x00000006,0x0000254c,0x0000254b,0x0000060b, 30410x00002617,0x00002618,0x0000261b,0x000200f8,
30000x000500c4,0x00000006,0x0000254f,0x0000254c, 30420x00002618,0x000500c7,0x00000006,0x0000261a,
30010x00000215,0x000500c5,0x00000006,0x00002550, 30430x0000246b,0x00000145,0x000200f9,0x0000261e,
30020x0000254c,0x0000254f,0x000500c7,0x00000006, 30440x000200f8,0x0000261b,0x000400c8,0x00000006,
30030x00002551,0x00002550,0x00000611,0x000500c4, 30450x0000261d,0x0000246b,0x000200f9,0x0000261e,
30040x00000006,0x00002554,0x00002551,0x00000205, 30460x000200f8,0x0000261e,0x000700f5,0x00000006,
30050x000500c5,0x00000006,0x00002555,0x00002551, 30470x000031ea,0x0000261a,0x00002618,0x0000261d,
30060x00002554,0x000500c7,0x00000006,0x00002556, 30480x0000261b,0x0004007c,0x00000027,0x00002620,
30070x00002555,0x00000617,0x000500c4,0x00000006, 30490x000031ea,0x00060041,0x000000db,0x0000246e,
30080x0000238a,0x00002556,0x00000205,0x00050051, 30500x000025d4,0x000000da,0x00000215,0x0006003d,
30090x00000006,0x0000238c,0x00002386,0x00000001, 30510x00000006,0x0000246f,0x0000246e,0x00000002,
30100x000500c7,0x00000006,0x0000255b,0x0000238c, 30520x00000004,0x000500c7,0x00000006,0x00002625,
30110x000005fe,0x000500c4,0x00000006,0x0000255e, 30530x0000246f,0x00000130,0x000500ab,0x0000002f,
30120x0000255b,0x0000023e,0x000500c5,0x00000006, 30540x00002626,0x00002625,0x000000a6,0x000300f7,
30130x0000255f,0x0000255b,0x0000255e,0x000500c7, 30550x0000262d,0x00000000,0x000400fa,0x00002626,
30140x00000006,0x00002560,0x0000255f,0x00000605, 30560x00002627,0x0000262a,0x000200f8,0x00002627,
30150x000500c4,0x00000006,0x00002563,0x00002560, 30570x000500c7,0x00000006,0x00002629,0x0000246f,
30160x00000308,0x000500c5,0x00000006,0x00002564, 30580x00000145,0x000200f9,0x0000262d,0x000200f8,
30170x00002560,0x00002563,0x000500c7,0x00000006, 30590x0000262a,0x000400c8,0x00000006,0x0000262c,
30180x00002565,0x00002564,0x0000060b,0x000500c4, 30600x0000246f,0x000200f9,0x0000262d,0x000200f8,
30190x00000006,0x00002568,0x00002565,0x00000215, 30610x0000262d,0x000700f5,0x00000006,0x000031eb,
30200x000500c5,0x00000006,0x00002569,0x00002565, 30620x00002629,0x00002627,0x0000262c,0x0000262a,
30210x00002568,0x000500c7,0x00000006,0x0000256a, 30630x0004007c,0x00000027,0x0000262f,0x000031eb,
30220x00002569,0x00000611,0x000500c4,0x00000006, 30640x00060041,0x000000db,0x00002472,0x000025d4,
30230x0000256d,0x0000256a,0x00000205,0x000500c5, 30650x000000da,0x0000021d,0x0006003d,0x00000006,
30240x00000006,0x0000256e,0x0000256a,0x0000256d, 30660x00002473,0x00002472,0x00000002,0x00000004,
30250x000500c7,0x00000006,0x0000256f,0x0000256e, 30670x000500c7,0x00000006,0x00002634,0x00002473,
30260x00000617,0x000500c4,0x00000006,0x0000238e, 30680x00000130,0x000500ab,0x0000002f,0x00002635,
30270x0000256f,0x00000154,0x000500c5,0x00000006, 30690x00002634,0x000000a6,0x000300f7,0x0000263c,
30280x0000238f,0x0000238a,0x0000238e,0x00050051, 30700x00000000,0x000400fa,0x00002635,0x00002636,
30290x00000006,0x00002391,0x00002386,0x00000002, 30710x00002639,0x000200f8,0x00002636,0x000500c7,
30300x000500c7,0x00000006,0x00002574,0x00002391, 30720x00000006,0x00002638,0x00002473,0x00000145,
30310x000005fe,0x000500c4,0x00000006,0x00002577, 30730x000200f9,0x0000263c,0x000200f8,0x00002639,
30320x00002574,0x0000023e,0x000500c5,0x00000006, 30740x000400c8,0x00000006,0x0000263b,0x00002473,
30330x00002578,0x00002574,0x00002577,0x000500c7, 30750x000200f9,0x0000263c,0x000200f8,0x0000263c,
30340x00000006,0x00002579,0x00002578,0x00000605, 30760x000700f5,0x00000006,0x000031ec,0x00002638,
30350x000500c4,0x00000006,0x0000257c,0x00002579, 30770x00002636,0x0000263b,0x00002639,0x0004007c,
30360x00000308,0x000500c5,0x00000006,0x0000257d, 30780x00000027,0x0000263e,0x000031ec,0x00060050,
30370x00002579,0x0000257c,0x000500c7,0x00000006, 30790x0000004b,0x00002475,0x00002620,0x0000262f,
30380x0000257e,0x0000257d,0x0000060b,0x000500c4, 30800x0000263e,0x00050083,0x0000004b,0x00002478,
30390x00000006,0x00002581,0x0000257e,0x00000215, 30810x00002475,0x00002468,0x0007000c,0x0000004b,
30400x000500c5,0x00000006,0x00002582,0x0000257e, 30820x00002479,0x00000001,0x00000028,0x00002478,
30410x00002581,0x000500c7,0x00000006,0x00002583, 30830x0000065b,0x00050081,0x0000004b,0x0000247c,
30420x00002582,0x00000611,0x000500c4,0x00000006, 30840x000024c8,0x000024db,0x0005008e,0x0000004b,
30430x00002586,0x00002583,0x00000205,0x000500c5, 30850x0000247d,0x0000247c,0x000001ed,0x00050083,
30440x00000006,0x00002587,0x00002583,0x00002586, 30860x0000004b,0x0000247f,0x0000247d,0x00002468,
30450x000500c7,0x00000006,0x00002588,0x00002587, 30870x00050088,0x0000004b,0x00002481,0x0000247f,
30460x00000617,0x000500c5,0x00000006,0x00002393, 30880x00002479,0x0008000c,0x0000004b,0x00002484,
30470x0000238f,0x00002588,0x000200f9,0x00002394, 30890x00000001,0x0000002b,0x00002481,0x00000570,
30480x000200f8,0x00002394,0x000700f5,0x00000006, 30900x000032a2,0x0005008e,0x0000004b,0x00002485,
30490x000030e1,0x00000531,0x000024ca,0x00002393, 30910x00002484,0x0000066b,0x0004006d,0x0000065d,
30500x0000253c,0x00050084,0x00000006,0x00002397, 30920x00002486,0x00002485,0x00050051,0x00000006,
30510x0000010a,0x00000b11,0x00050080,0x00000006, 30930x00002488,0x00002486,0x00000000,0x000500c7,
30520x00002398,0x00000107,0x00002397,0x00050095, 30940x00000006,0x00002642,0x00002488,0x000005fe,
30530x000000ab,0x000025a3,0x00002405,0x00002398, 30950x000500c4,0x00000006,0x00002645,0x00002642,
30540x00050051,0x00000006,0x000025a4,0x000025a3, 30960x0000023e,0x000500c5,0x00000006,0x00002646,
30550x00000001,0x00050051,0x00000006,0x000025a5, 30970x00002642,0x00002645,0x000500c7,0x00000006,
30560x000025a3,0x00000000,0x00050080,0x00000006, 30980x00002647,0x00002646,0x00000605,0x000500c4,
30570x000025aa,0x0000240c,0x000025a4,0x00050050, 30990x00000006,0x0000264a,0x00002647,0x00000308,
30580x00000007,0x000025ab,0x000025a5,0x000025aa, 31000x000500c5,0x00000006,0x0000264b,0x00002647,
30590x0004007c,0x00000014,0x0000259b,0x000025ab, 31010x0000264a,0x000500c7,0x00000006,0x0000264c,
30600x00060041,0x000000db,0x00002593,0x0000259b, 31020x0000264b,0x0000060b,0x000500c4,0x00000006,
30610x000000da,0x000000da,0x0005003e,0x00002593, 31030x0000264f,0x0000264c,0x00000215,0x000500c5,
30620x000030e1,0x00000002,0x00000004,0x00050084, 31040x00000006,0x00002650,0x0000264c,0x0000264f,
30630x00000006,0x000025b0,0x0000010a,0x000023e5, 31050x000500c7,0x00000006,0x00002651,0x00002650,
30640x00050080,0x00000006,0x000025b1,0x00000107, 31060x00000611,0x000500c4,0x00000006,0x00002654,
30650x000025b0,0x00050080,0x00000006,0x000023a0, 31070x00002651,0x00000205,0x000500c5,0x00000006,
30660x000025b1,0x00002397,0x00050095,0x000000ab, 31080x00002655,0x00002651,0x00002654,0x000500c7,
30670x000025c9,0x00002405,0x000023a0,0x00050051, 31090x00000006,0x00002656,0x00002655,0x00000617,
30680x00000006,0x000025ca,0x000025c9,0x00000001, 31100x000500c4,0x00000006,0x0000248a,0x00002656,
30690x00050051,0x00000006,0x000025cb,0x000025c9, 31110x00000205,0x00050051,0x00000006,0x0000248c,
30700x00000000,0x00050080,0x00000006,0x000025d0, 31120x00002486,0x00000001,0x000500c7,0x00000006,
30710x0000240c,0x000025ca,0x00050050,0x00000007, 31130x0000265b,0x0000248c,0x000005fe,0x000500c4,
30720x000025d1,0x000025cb,0x000025d0,0x0004007c, 31140x00000006,0x0000265e,0x0000265b,0x0000023e,
30730x00000014,0x000025c1,0x000025d1,0x00060041, 31150x000500c5,0x00000006,0x0000265f,0x0000265b,
30740x000000db,0x000025b9,0x000025c1,0x000000da, 31160x0000265e,0x000500c7,0x00000006,0x00002660,
30750x000000da,0x0005003e,0x000025b9,0x00000b11, 31170x0000265f,0x00000605,0x000500c4,0x00000006,
30760x00000002,0x00000004,0x000200f9,0x00000ba7, 31180x00002663,0x00002660,0x00000308,0x000500c5,
30770x000200f8,0x00000bab,0x000500aa,0x0000002f, 31190x00000006,0x00002664,0x00002660,0x00002663,
30780x00000bae,0x00000b13,0x00000246,0x000300f7, 31200x000500c7,0x00000006,0x00002665,0x00002664,
30790x00000bb0,0x00000000,0x000400fa,0x00000bae, 31210x0000060b,0x000500c4,0x00000006,0x00002668,
30800x00000baf,0x00000bb0,0x000200f8,0x00000baf, 31220x00002665,0x00000215,0x000500c5,0x00000006,
30810x00050041,0x000000fe,0x00002620,0x000000fc, 31230x00002669,0x00002665,0x00002668,0x000500c7,
30820x00000308,0x0004003d,0x00000006,0x00002621, 31240x00000006,0x0000266a,0x00002669,0x00000611,
30830x00002620,0x00050080,0x00000006,0x00002623, 31250x000500c4,0x00000006,0x0000266d,0x0000266a,
30840x00002621,0x00000b11,0x00050041,0x000000fe, 31260x00000205,0x000500c5,0x00000006,0x0000266e,
30850x00002729,0x000000fc,0x0000023e,0x0004003d, 31270x0000266a,0x0000266d,0x000500c7,0x00000006,
30860x00000006,0x0000272a,0x00002729,0x00050084, 31280x0000266f,0x0000266e,0x00000617,0x000500c4,
30870x00000006,0x0000272c,0x00002623,0x00000228, 31290x00000006,0x0000248e,0x0000266f,0x00000154,
30880x00050080,0x00000006,0x0000272d,0x0000272a, 31300x000500c5,0x00000006,0x0000248f,0x0000248a,
30890x0000272c,0x000500c2,0x00000006,0x0000272e, 31310x0000248e,0x00050051,0x00000006,0x00002491,
30900x0000272d,0x00000233,0x000500c4,0x00000006, 31320x00002486,0x00000002,0x000500c7,0x00000006,
30910x0000272f,0x0000272e,0x0000020d,0x000500c5, 31330x00002674,0x00002491,0x000005fe,0x000500c4,
30920x00000006,0x00002730,0x0000272f,0x00000246, 31340x00000006,0x00002677,0x00002674,0x0000023e,
30930x000200f9,0x0000262f,0x000200f8,0x0000262f, 31350x000500c5,0x00000006,0x00002678,0x00002674,
30940x000700f5,0x0000004b,0x00003096,0x0000319b, 31360x00002677,0x000500c7,0x00000006,0x00002679,
30950x00000baf,0x0000317f,0x0000270b,0x000700f5, 31370x00002678,0x00000605,0x000500c4,0x00000006,
30960x0000004b,0x00003094,0x00003199,0x00000baf, 31380x0000267c,0x00002679,0x00000308,0x000500c5,
30970x0000317a,0x0000270b,0x000700f5,0x00000006, 31390x00000006,0x0000267d,0x00002679,0x0000267c,
30980x00003091,0x000000a6,0x00000baf,0x0000270d, 31400x000500c7,0x00000006,0x0000267e,0x0000267d,
30990x0000270b,0x000500b0,0x0000002f,0x00002632, 31410x0000060b,0x000500c4,0x00000006,0x00002681,
31000x00003091,0x0000010a,0x000400f6,0x0000270e, 31420x0000267e,0x00000215,0x000500c5,0x00000006,
31010x0000270b,0x00000000,0x000400fa,0x00002632, 31430x00002682,0x0000267e,0x00002681,0x000500c7,
31020x00002633,0x0000270e,0x000200f8,0x00002633, 31440x00000006,0x00002683,0x00002682,0x00000611,
31030x00050084,0x00000006,0x00002635,0x0000010a, 31450x000500c4,0x00000006,0x00002686,0x00002683,
31040x00000b11,0x00050080,0x00000006,0x00002637, 31460x00000205,0x000500c5,0x00000006,0x00002687,
31050x00002635,0x00003091,0x00050041,0x000000fe, 31470x00002683,0x00002686,0x000500c7,0x00000006,
31060x0000263c,0x000000fc,0x0000027b,0x0004003d, 31480x00002688,0x00002687,0x00000617,0x000500c5,
31070x00000006,0x0000263d,0x0000263c,0x000500aa, 31490x00000006,0x00002493,0x0000248f,0x00002688,
31080x0000002f,0x0000263e,0x0000263d,0x000000b0, 31500x000200f9,0x00002494,0x000200f8,0x00002494,
31090x000300f7,0x000026d4,0x00000000,0x000400fa, 31510x000700f5,0x00000006,0x000031ed,0x00000531,
31100x0000263e,0x0000263f,0x00002684,0x000200f8, 31520x000025ca,0x00002493,0x0000263c,0x00050084,
31110x0000263f,0x00050084,0x00000006,0x00002642, 31530x00000006,0x00002497,0x0000010a,0x00000b11,
31120x0000010a,0x00003091,0x00050080,0x00000006, 31540x00050080,0x00000006,0x00002498,0x00000107,
31130x00002643,0x0000272d,0x00002642,0x00050041, 31550x00002497,0x00050095,0x000000ab,0x000026a3,
31140x00000156,0x00002644,0x000000fc,0x000000da, 31560x00002505,0x00002498,0x00050051,0x00000006,
31150x0004003d,0x00000007,0x00002645,0x00002644, 31570x000026a4,0x000026a3,0x00000001,0x00050051,
31160x00050051,0x00000006,0x00002747,0x00002645, 31580x00000006,0x000026a5,0x000026a3,0x00000000,
31170x00000000,0x00050095,0x000000ab,0x00002749, 31590x00050080,0x00000006,0x000026aa,0x0000250c,
31180x00002747,0x00002643,0x00050051,0x00000006, 31600x000026a4,0x00050050,0x00000007,0x000026ab,
31190x0000274a,0x00002749,0x00000001,0x00050051, 31610x000026a5,0x000026aa,0x0004007c,0x00000014,
31200x00000006,0x0000274b,0x00002749,0x00000000, 31620x0000269b,0x000026ab,0x00060041,0x000000db,
31210x00050051,0x00000006,0x0000274e,0x00002645, 31630x00002693,0x0000269b,0x000000da,0x000000da,
31220x00000001,0x00050080,0x00000006,0x00002750, 31640x0005003e,0x00002693,0x000031ed,0x00000002,
31230x0000274e,0x0000274a,0x00050050,0x00000007, 31650x00000004,0x00050084,0x00000006,0x000026b0,
31240x00002751,0x0000274b,0x00002750,0x0004007c, 31660x0000010a,0x000024e5,0x00050080,0x00000006,
31250x00000014,0x00002741,0x00002751,0x00060041, 31670x000026b1,0x00000107,0x000026b0,0x00050080,
31260x000000db,0x00002738,0x00002741,0x000000da, 31680x00000006,0x000024a0,0x000026b1,0x00002497,
31270x000000da,0x0006003d,0x00000006,0x00002739, 31690x00050095,0x000000ab,0x000026c9,0x00002505,
31280x00002738,0x00000002,0x00000004,0x000500ab, 31700x000024a0,0x00050051,0x00000006,0x000026ca,
31290x0000002f,0x00002648,0x00002739,0x00000380, 31710x000026c9,0x00000001,0x00050051,0x00000006,
31300x000300f7,0x00002683,0x00000000,0x000400fa, 31720x000026cb,0x000026c9,0x00000000,0x00050080,
31310x00002648,0x00002649,0x00002683,0x000200f8, 31730x00000006,0x000026d0,0x0000250c,0x000026ca,
31320x00002649,0x000500c2,0x00000006,0x00002755, 31740x00050050,0x00000007,0x000026d1,0x000026cb,
31330x00002739,0x0000020d,0x00050084,0x00000006, 31750x000026d0,0x0004007c,0x00000014,0x000026c1,
31340x0000264c,0x00002755,0x00000107,0x000500c7, 31760x000026d1,0x00060041,0x000000db,0x000026b9,
31350x00000006,0x0000264e,0x00002739,0x00000967, 31770x000026c1,0x000000da,0x000000da,0x0005003e,
31360x000500aa,0x0000002f,0x0000264f,0x0000264e, 31780x000026b9,0x00000b11,0x00000002,0x00000004,
31370x00000246,0x000300f7,0x00002676,0x00000000, 31790x000200f9,0x00000be4,0x000200f8,0x00000be8,
31380x000400fa,0x0000264f,0x00002650,0x0000265c, 31800x000500aa,0x0000002f,0x00000beb,0x00000b13,
31390x000200f8,0x00002650,0x00050041,0x000000fe, 31810x00000246,0x000300f7,0x00000bed,0x00000000,
31400x00002651,0x000000fc,0x0000096c,0x0004003d, 31820x000400fa,0x00000beb,0x00000bec,0x00000bed,
31410x00000006,0x00002652,0x00002651,0x00050082, 31830x000200f8,0x00000bec,0x00050041,0x000000fe,
31420x00000006,0x00002656,0x0000264c,0x0000272a, 31840x00002720,0x000000fc,0x00000308,0x0004003d,
31430x00050086,0x00000006,0x00002657,0x00002656, 31850x00000006,0x00002721,0x00002720,0x00050080,
31440x00000228,0x00050080,0x00000006,0x00002658, 31860x00000006,0x00002723,0x00002721,0x00000b11,
31450x00002652,0x00002657,0x00050041,0x000000fe, 31870x00050041,0x000000fe,0x00002829,0x000000fc,
31460x00002795,0x000000fc,0x000000fd,0x0004003d, 31880x0000023e,0x0004003d,0x00000006,0x0000282a,
31470x00000006,0x00002796,0x00002795,0x00050084, 31890x00002829,0x00050084,0x00000006,0x0000282c,
31480x00000006,0x00002797,0x0000011f,0x00002796, 31900x00002723,0x00000228,0x00050080,0x00000006,
31490x00050080,0x00000006,0x00002798,0x00000107, 31910x0000282d,0x0000282a,0x0000282c,0x000500c2,
31500x00002797,0x00050080,0x00000006,0x0000279e, 31920x00000006,0x0000282e,0x0000282d,0x00000233,
31510x00002796,0x0000319c,0x00050086,0x00000006, 31930x000500c4,0x00000006,0x0000282f,0x0000282e,
31520x0000279f,0x0000279e,0x00000101,0x00050084, 31940x0000020d,0x000500c5,0x00000006,0x00002830,
31530x00000006,0x00002791,0x00000107,0x0000279f, 31950x0000282f,0x00000246,0x000200f9,0x0000272f,
31540x00050080,0x00000006,0x00002792,0x00002798, 31960x000200f8,0x0000272f,0x000700f5,0x0000004b,
31550x00002791,0x00050084,0x00000006,0x00002766, 31970x000031a2,0x000032a7,0x00000bec,0x0000328b,
31560x00000150,0x00002658,0x00050080,0x00000006, 31980x0000280b,0x000700f5,0x0000004b,0x000031a0,
31570x00002767,0x00002792,0x00002766,0x00050041, 31990x000032a5,0x00000bec,0x00003286,0x0000280b,
31580x00000156,0x00002768,0x000000fc,0x00000154, 32000x000700f5,0x00000006,0x0000319d,0x000000a6,
31590x0004003d,0x00000007,0x00002769,0x00002768, 32010x00000bec,0x0000280d,0x0000280b,0x000500b0,
31600x00050051,0x00000006,0x000027b6,0x00002769, 32020x0000002f,0x00002732,0x0000319d,0x0000010a,
31610x00000000,0x00050095,0x000000ab,0x000027b8, 32030x000400f6,0x0000280e,0x0000280b,0x00000000,
31620x000027b6,0x00002767,0x00050051,0x00000006, 32040x000400fa,0x00002732,0x00002733,0x0000280e,
31630x000027b9,0x000027b8,0x00000001,0x00050051, 32050x000200f8,0x00002733,0x00050084,0x00000006,
31640x00000006,0x000027ba,0x000027b8,0x00000000, 32060x00002735,0x0000010a,0x00000b11,0x00050080,
31650x00050051,0x00000006,0x000027bd,0x00002769, 32070x00000006,0x00002737,0x00002735,0x0000319d,
31660x00000001,0x00050080,0x00000006,0x000027bf, 32080x00050041,0x000000fe,0x0000273c,0x000000fc,
31670x000027bd,0x000027b9,0x00050050,0x00000007, 32090x0000027b,0x0004003d,0x00000006,0x0000273d,
31680x000027c0,0x000027ba,0x000027bf,0x0004007c, 32100x0000273c,0x000500aa,0x0000002f,0x0000273e,
31690x00000014,0x000027b0,0x000027c0,0x00060041, 32110x0000273d,0x000000b0,0x000300f7,0x000027d4,
31700x000000db,0x000027a7,0x000027b0,0x000000da, 32120x00000000,0x000400fa,0x0000273e,0x0000273f,
31710x000000da,0x0006003d,0x00000006,0x000027a8, 32130x00002784,0x000200f8,0x0000273f,0x00050084,
31720x000027a7,0x00000002,0x00000004,0x0004007c, 32140x00000006,0x00002742,0x0000010a,0x0000319d,
31730x00000027,0x0000276c,0x000027a8,0x00050080, 32150x00050080,0x00000006,0x00002743,0x0000282d,
31740x00000006,0x0000276e,0x00002767,0x0000010a, 32160x00002742,0x00050041,0x00000156,0x00002744,
31750x00050095,0x000000ab,0x000027d9,0x000027b6,
31760x0000276e,0x00050051,0x00000006,0x000027da,
31770x000027d9,0x00000001,0x00050051,0x00000006,
31780x000027db,0x000027d9,0x00000000,0x00050080,
31790x00000006,0x000027e0,0x000027bd,0x000027da,
31800x00050050,0x00000007,0x000027e1,0x000027db,
31810x000027e0,0x0004007c,0x00000014,0x000027d1,
31820x000027e1,0x00060041,0x000000db,0x000027c8,
31830x000027d1,0x000000da,0x000000da,0x0006003d,
31840x00000006,0x000027c9,0x000027c8,0x00000002,
31850x00000004,0x0004007c,0x00000027,0x00002772,
31860x000027c9,0x00050080,0x00000006,0x00002774,
31870x00002767,0x00000111,0x00050095,0x000000ab,
31880x000027fa,0x000027b6,0x00002774,0x00050051,
31890x00000006,0x000027fb,0x000027fa,0x00000001,
31900x00050051,0x00000006,0x000027fc,0x000027fa,
31910x00000000,0x00050080,0x00000006,0x00002801,
31920x000027bd,0x000027fb,0x00050050,0x00000007,
31930x00002802,0x000027fc,0x00002801,0x0004007c,
31940x00000014,0x000027f2,0x00002802,0x00060041,
31950x000000db,0x000027e9,0x000027f2,0x000000da,
31960x000000da,0x0006003d,0x00000006,0x000027ea,
31970x000027e9,0x00000002,0x00000004,0x0004007c,
31980x00000027,0x00002778,0x000027ea,0x00060050,
31990x0000004b,0x00002779,0x0000276c,0x00002772,
32000x00002778,0x00050080,0x00000006,0x0000277b,
32010x00002767,0x00000118,0x00050095,0x000000ab,
32020x0000281b,0x000027b6,0x0000277b,0x00050051,
32030x00000006,0x0000281c,0x0000281b,0x00000001,
32040x00050051,0x00000006,0x0000281d,0x0000281b,
32050x00000000,0x00050080,0x00000006,0x00002822,
32060x000027bd,0x0000281c,0x00050050,0x00000007,
32070x00002823,0x0000281d,0x00002822,0x0004007c,
32080x00000014,0x00002813,0x00002823,0x00060041,
32090x000000db,0x0000280a,0x00002813,0x000000da,
32100x000000da,0x0006003d,0x00000006,0x0000280b,
32110x0000280a,0x00000002,0x00000004,0x0004007c,
32120x00000027,0x0000277f,0x0000280b,0x00050080,
32130x00000006,0x00002781,0x00002767,0x0000011f,
32140x00050095,0x000000ab,0x0000283c,0x000027b6,
32150x00002781,0x00050051,0x00000006,0x0000283d,
32160x0000283c,0x00000001,0x00050051,0x00000006,
32170x0000283e,0x0000283c,0x00000000,0x00050080,
32180x00000006,0x00002843,0x000027bd,0x0000283d,
32190x00050050,0x00000007,0x00002844,0x0000283e,
32200x00002843,0x0004007c,0x00000014,0x00002834,
32210x00002844,0x00060041,0x000000db,0x0000282b,
32220x00002834,0x000000da,0x000000da,0x0006003d,
32230x00000006,0x0000282c,0x0000282b,0x00000002,
32240x00000004,0x0004007c,0x00000027,0x00002785,
32250x0000282c,0x00050080,0x00000006,0x00002787,
32260x00002767,0x00000189,0x00050095,0x000000ab,
32270x0000285d,0x000027b6,0x00002787,0x00050051,
32280x00000006,0x0000285e,0x0000285d,0x00000001,
32290x00050051,0x00000006,0x0000285f,0x0000285d,
32300x00000000,0x00050080,0x00000006,0x00002864,
32310x000027bd,0x0000285e,0x00050050,0x00000007,
32320x00002865,0x0000285f,0x00002864,0x0004007c,
32330x00000014,0x00002855,0x00002865,0x00060041,
32340x000000db,0x0000284c,0x00002855,0x000000da,
32350x000000da,0x0006003d,0x00000006,0x0000284d,
32360x0000284c,0x00000002,0x00000004,0x0004007c,
32370x00000027,0x0000278b,0x0000284d,0x00060050,
32380x0000004b,0x0000278c,0x0000277f,0x00002785,
32390x0000278b,0x000200f9,0x00002676,0x000200f8,
32400x0000265c,0x00050041,0x000000fe,0x0000265e,
32410x000000fc,0x0000022c,0x0004003d,0x00000006,
32420x0000265f,0x0000265e,0x00050082,0x00000006,
32430x00002660,0x0000264c,0x0000265f,0x00050041,
32440x000000fe,0x00002868,0x000000fc,0x00000224,
32450x0004003d,0x00000006,0x00002869,0x00002868,
32460x000500ab,0x0000002f,0x0000286a,0x00002869,
32470x000000a6,0x000600a9,0x00000006,0x0000286b,
32480x0000286a,0x00000228,0x00000107,0x00050086,
32490x00000006,0x00002662,0x00002660,0x0000286b,
32500x00050041,0x000000fe,0x000028ab,0x000000fc,
32510x000000fd,0x0004003d,0x00000006,0x000028ac,
32520x000028ab,0x00050084,0x00000006,0x000028ad,
32530x0000011f,0x000028ac,0x00050080,0x00000006,
32540x000028ae,0x00000107,0x000028ad,0x00050080,
32550x00000006,0x000028b4,0x000028ac,0x0000319c,
32560x00050086,0x00000006,0x000028b5,0x000028b4,
32570x00000101,0x00050084,0x00000006,0x000028a7,
32580x00000107,0x000028b5,0x00050080,0x00000006,
32590x000028a8,0x000028ae,0x000028a7,0x00050084,
32600x00000006,0x0000287c,0x00000150,0x00002662,
32610x00050080,0x00000006,0x0000287d,0x000028a8,
32620x0000287c,0x00050041,0x00000156,0x0000287e,
32630x000000fc,0x00000154,0x0004003d,0x00000007,
32640x0000287f,0x0000287e,0x00050051,0x00000006,
32650x000028cc,0x0000287f,0x00000000,0x00050095,
32660x000000ab,0x000028ce,0x000028cc,0x0000287d,
32670x00050051,0x00000006,0x000028cf,0x000028ce,
32680x00000001,0x00050051,0x00000006,0x000028d0,
32690x000028ce,0x00000000,0x00050051,0x00000006,
32700x000028d3,0x0000287f,0x00000001,0x00050080,
32710x00000006,0x000028d5,0x000028d3,0x000028cf,
32720x00050050,0x00000007,0x000028d6,0x000028d0,
32730x000028d5,0x0004007c,0x00000014,0x000028c6,
32740x000028d6,0x00060041,0x000000db,0x000028bd,
32750x000028c6,0x000000da,0x000000da,0x0006003d,
32760x00000006,0x000028be,0x000028bd,0x00000002,
32770x00000004,0x0004007c,0x00000027,0x00002882,
32780x000028be,0x00050080,0x00000006,0x00002884,
32790x0000287d,0x0000010a,0x00050095,0x000000ab,
32800x000028ef,0x000028cc,0x00002884,0x00050051,
32810x00000006,0x000028f0,0x000028ef,0x00000001,
32820x00050051,0x00000006,0x000028f1,0x000028ef,
32830x00000000,0x00050080,0x00000006,0x000028f6,
32840x000028d3,0x000028f0,0x00050050,0x00000007,
32850x000028f7,0x000028f1,0x000028f6,0x0004007c,
32860x00000014,0x000028e7,0x000028f7,0x00060041,
32870x000000db,0x000028de,0x000028e7,0x000000da,
32880x000000da,0x0006003d,0x00000006,0x000028df,
32890x000028de,0x00000002,0x00000004,0x0004007c,
32900x00000027,0x00002888,0x000028df,0x00050080,
32910x00000006,0x0000288a,0x0000287d,0x00000111,
32920x00050095,0x000000ab,0x00002910,0x000028cc,
32930x0000288a,0x00050051,0x00000006,0x00002911,
32940x00002910,0x00000001,0x00050051,0x00000006,
32950x00002912,0x00002910,0x00000000,0x00050080,
32960x00000006,0x00002917,0x000028d3,0x00002911,
32970x00050050,0x00000007,0x00002918,0x00002912,
32980x00002917,0x0004007c,0x00000014,0x00002908,
32990x00002918,0x00060041,0x000000db,0x000028ff,
33000x00002908,0x000000da,0x000000da,0x0006003d,
33010x00000006,0x00002900,0x000028ff,0x00000002,
33020x00000004,0x0004007c,0x00000027,0x0000288e,
33030x00002900,0x00060050,0x0000004b,0x0000288f,
33040x00002882,0x00002888,0x0000288e,0x00050080,
33050x00000006,0x00002891,0x0000287d,0x00000118,
33060x00050095,0x000000ab,0x00002931,0x000028cc,
33070x00002891,0x00050051,0x00000006,0x00002932,
33080x00002931,0x00000001,0x00050051,0x00000006,
33090x00002933,0x00002931,0x00000000,0x00050080,
33100x00000006,0x00002938,0x000028d3,0x00002932,
33110x00050050,0x00000007,0x00002939,0x00002933,
33120x00002938,0x0004007c,0x00000014,0x00002929,
33130x00002939,0x00060041,0x000000db,0x00002920,
33140x00002929,0x000000da,0x000000da,0x0006003d,
33150x00000006,0x00002921,0x00002920,0x00000002,
33160x00000004,0x0004007c,0x00000027,0x00002895,
33170x00002921,0x00050080,0x00000006,0x00002897,
33180x0000287d,0x0000011f,0x00050095,0x000000ab,
33190x00002952,0x000028cc,0x00002897,0x00050051,
33200x00000006,0x00002953,0x00002952,0x00000001,
33210x00050051,0x00000006,0x00002954,0x00002952,
33220x00000000,0x00050080,0x00000006,0x00002959,
33230x000028d3,0x00002953,0x00050050,0x00000007,
33240x0000295a,0x00002954,0x00002959,0x0004007c,
33250x00000014,0x0000294a,0x0000295a,0x00060041,
33260x000000db,0x00002941,0x0000294a,0x000000da,
33270x000000da,0x0006003d,0x00000006,0x00002942,
33280x00002941,0x00000002,0x00000004,0x0004007c,
33290x00000027,0x0000289b,0x00002942,0x00050080,
33300x00000006,0x0000289d,0x0000287d,0x00000189,
33310x00050095,0x000000ab,0x00002973,0x000028cc,
33320x0000289d,0x00050051,0x00000006,0x00002974,
33330x00002973,0x00000001,0x00050051,0x00000006,
33340x00002975,0x00002973,0x00000000,0x00050080,
33350x00000006,0x0000297a,0x000028d3,0x00002974,
33360x00050050,0x00000007,0x0000297b,0x00002975,
33370x0000297a,0x0004007c,0x00000014,0x0000296b,
33380x0000297b,0x00060041,0x000000db,0x00002962,
33390x0000296b,0x000000da,0x000000da,0x0006003d,
33400x00000006,0x00002963,0x00002962,0x00000002,
33410x00000004,0x0004007c,0x00000027,0x000028a1,
33420x00002963,0x00060050,0x0000004b,0x000028a2,
33430x00002895,0x0000289b,0x000028a1,0x000300f7,
33440x00002675,0x00000000,0x000400fa,0x0000286a,
33450x0000266a,0x00002675,0x000200f8,0x0000266a,
33460x00050084,0x00000006,0x0000266e,0x00000228,
33470x00002662,0x00050080,0x00000006,0x0000266f,
33480x0000265f,0x0000266e,0x00050080,0x00000006,
33490x00002670,0x0000266f,0x000005d0,0x00050095,
33500x000000ab,0x00002993,0x00002747,0x00002670,
33510x00050051,0x00000006,0x00002994,0x00002993,
33520x00000001,0x00050051,0x00000006,0x00002995,
33530x00002993,0x00000000,0x00050080,0x00000006,
33540x0000299a,0x0000274e,0x00002994,0x00050050,
33550x00000007,0x0000299b,0x00002995,0x0000299a,
33560x0004007c,0x00000014,0x0000298b,0x0000299b,
33570x00060041,0x000000db,0x00002983,0x0000298b,
33580x000000da,0x000000da,0x0005003e,0x00002983,
33590x00002730,0x00000002,0x00000004,0x000200f9,
33600x00002675,0x000200f8,0x00002675,0x000200f9,
33610x00002676,0x000200f8,0x00002676,0x000700f5,
33620x0000004b,0x000030ab,0x0000278c,0x00002650,
33630x000028a2,0x00002675,0x000700f5,0x0000004b,
33640x000030a9,0x00002779,0x00002650,0x0000288f,
33650x00002675,0x00050051,0x00000027,0x0000299f,
33660x000030a9,0x00000000,0x00050051,0x00000027,
33670x000029a1,0x000030ab,0x00000000,0x000500bc,
33680x0000002f,0x000029a2,0x0000299f,0x000029a1,
33690x000300f7,0x000029a9,0x00000000,0x000400fa,
33700x000029a2,0x000029a3,0x000029a9,0x000200f8,
33710x000029a3,0x00050051,0x00000027,0x000029a5,
33720x000030a9,0x00000001,0x00050051,0x00000027,
33730x000029a7,0x000030ab,0x00000001,0x000500bc,
33740x0000002f,0x000029a8,0x000029a5,0x000029a7,
33750x000200f9,0x000029a9,0x000200f8,0x000029a9,
33760x000700f5,0x0000002f,0x000029aa,0x000029a2,
33770x00002676,0x000029a8,0x000029a3,0x000300f7,
33780x000029b1,0x00000000,0x000400fa,0x000029aa,
33790x000029ab,0x000029b1,0x000200f8,0x000029ab,
33800x00050051,0x00000027,0x000029ad,0x000030a9,
33810x00000002,0x00050051,0x00000027,0x000029af,
33820x000030ab,0x00000002,0x000500bc,0x0000002f,
33830x000029b0,0x000029ad,0x000029af,0x000200f9,
33840x000029b1,0x000200f8,0x000029b1,0x000700f5,
33850x0000002f,0x000029b2,0x000029aa,0x000029a9,
33860x000029b0,0x000029ab,0x000300f7,0x00002682,
33870x00000000,0x000400fa,0x000029b2,0x0000267b,
33880x00002682,0x000200f8,0x0000267b,0x0007000c,
33890x0000004b,0x0000267e,0x00000001,0x00000025,
33900x00003094,0x000030a9,0x0007000c,0x0000004b,
33910x00002681,0x00000001,0x00000028,0x00003096,
33920x000030ab,0x000200f9,0x00002682,0x000200f8,
33930x00002682,0x000700f5,0x0000004b,0x00003181,
33940x00003096,0x000029b1,0x00002681,0x0000267b,
33950x000700f5,0x0000004b,0x0000317c,0x00003094,
33960x000029b1,0x0000267e,0x0000267b,0x000200f9,
33970x00002683,0x000200f8,0x00002683,0x000700f5,
33980x0000004b,0x00003180,0x00003096,0x0000263f,
33990x00003181,0x00002682,0x000700f5,0x0000004b,
34000x0000317b,0x00003094,0x0000263f,0x0000317c,
34010x00002682,0x000700f5,0x0000004b,0x000030d7,
34020x0000319b,0x0000263f,0x000030ab,0x00002682,
34030x000700f5,0x0000004b,0x000030d2,0x00003199,
34040x0000263f,0x000030a9,0x00002682,0x000200f9,
34050x000026d4,0x000200f8,0x00002684,0x00050041,
34060x000000fe,0x00002686,0x000000fc,0x00000250,
34070x0004003d,0x00000006,0x00002687,0x00002686,
34080x000500b0,0x0000002f,0x00002688,0x00002637,
34090x00002687,0x000300f7,0x000026d3,0x00000000,
34100x000400fa,0x00002688,0x00002689,0x000026d3,
34110x000200f8,0x00002689,0x00050041,0x000000fe,
34120x0000268a,0x000000fc,0x00000266,0x0004003d,
34130x00000006,0x0000268b,0x0000268a,0x000500aa,
34140x0000002f,0x0000268c,0x0000268b,0x00000380,
34150x000300f7,0x000026b8,0x00000000,0x000400fa,
34160x0000268c,0x0000268d,0x000026aa,0x000200f8,
34170x0000268d,0x00050041,0x000000fe,0x000029b6,
34180x000000fc,0x000000fd,0x0004003d,0x00000006,
34190x000029b7,0x000029b6,0x00050084,0x00000006,
34200x000029b8,0x0000010a,0x000029b7,0x00050080,
34210x00000006,0x000029b9,0x00000107,0x000029b8,
34220x00050084,0x00000006,0x00002690,0x0000010a,
34230x00002637,0x00050080,0x00000006,0x00002691,
34240x000029b9,0x00002690,0x00050041,0x00000156,
34250x00002692,0x000000fc,0x00000154,0x0004003d,
34260x00000007,0x00002693,0x00002692,0x00050051,
34270x00000006,0x000029d0,0x00002693,0x00000000,
34280x00050095,0x000000ab,0x000029d2,0x000029d0,
34290x00002691,0x00050051,0x00000006,0x000029d3,
34300x000029d2,0x00000001,0x00050051,0x00000006,
34310x000029d4,0x000029d2,0x00000000,0x00050051,
34320x00000006,0x000029d7,0x00002693,0x00000001,
34330x00050080,0x00000006,0x000029d9,0x000029d7,
34340x000029d3,0x00050050,0x00000007,0x000029da,
34350x000029d4,0x000029d9,0x0004007c,0x00000014,
34360x000029ca,0x000029da,0x00060041,0x000000db,
34370x000029c1,0x000029ca,0x000000da,0x000000da,
34380x0006003d,0x00000006,0x000029c2,0x000029c1,
34390x00000002,0x00000004,0x00050041,0x000000fe,
34400x000029dd,0x000000fc,0x0000022c,0x0004003d,
34410x00000006,0x000029de,0x000029dd,0x00050041,
34420x000000fe,0x000029ec,0x000000fc,0x00000224,
34430x0004003d,0x00000006,0x000029ed,0x000029ec,
34440x000500ab,0x0000002f,0x000029ee,0x000029ed,
34450x000000a6,0x000600a9,0x00000006,0x000029ef,
34460x000029ee,0x00000228,0x00000107,0x00050084,
34470x00000006,0x000029e1,0x000029c2,0x000029ef,
34480x00050080,0x00000006,0x000029e2,0x000029de,
34490x000029e1,0x000500c2,0x00000006,0x000029e3,
34500x000029e2,0x00000233,0x000500c4,0x00000006,
34510x000029e4,0x000029e3,0x0000020d,0x000600a9,
34520x00000006,0x000029e8,0x000029ee,0x00000239,
34530x000000a6,0x000500c5,0x00000006,0x000029e9,
34540x000029e4,0x000029e8,0x00050084,0x00000006,
34550x00002a31,0x0000011f,0x000029b7,0x00050080,
34560x00000006,0x00002a32,0x00000107,0x00002a31,
34570x00050080,0x00000006,0x00002a38,0x000029b7,
34580x0000319c,0x00050086,0x00000006,0x00002a39,
34590x00002a38,0x00000101,0x00050084,0x00000006,
34600x00002a2b,0x00000107,0x00002a39,0x00050080,
34610x00000006,0x00002a2c,0x00002a32,0x00002a2b,
34620x00050084,0x00000006,0x00002a00,0x00000150,
34630x000029c2,0x00050080,0x00000006,0x00002a01,
34640x00002a2c,0x00002a00,0x00050095,0x000000ab,
34650x00002a52,0x000029d0,0x00002a01,0x00050051,
34660x00000006,0x00002a53,0x00002a52,0x00000001,
34670x00050051,0x00000006,0x00002a54,0x00002a52,
34680x00000000,0x00050080,0x00000006,0x00002a59,
34690x000029d7,0x00002a53,0x00050050,0x00000007,
34700x00002a5a,0x00002a54,0x00002a59,0x0004007c,
34710x00000014,0x00002a4a,0x00002a5a,0x00060041,
34720x000000db,0x00002a41,0x00002a4a,0x000000da,
34730x000000da,0x0006003d,0x00000006,0x00002a42,
34740x00002a41,0x00000002,0x00000004,0x0004007c,
34750x00000027,0x00002a06,0x00002a42,0x00050080,
34760x00000006,0x00002a08,0x00002a01,0x0000010a,
34770x00050095,0x000000ab,0x00002a73,0x000029d0,
34780x00002a08,0x00050051,0x00000006,0x00002a74,
34790x00002a73,0x00000001,0x00050051,0x00000006,
34800x00002a75,0x00002a73,0x00000000,0x00050080,
34810x00000006,0x00002a7a,0x000029d7,0x00002a74,
34820x00050050,0x00000007,0x00002a7b,0x00002a75,
34830x00002a7a,0x0004007c,0x00000014,0x00002a6b,
34840x00002a7b,0x00060041,0x000000db,0x00002a62,
34850x00002a6b,0x000000da,0x000000da,0x0006003d,
34860x00000006,0x00002a63,0x00002a62,0x00000002,
34870x00000004,0x0004007c,0x00000027,0x00002a0c,
34880x00002a63,0x00050080,0x00000006,0x00002a0e,
34890x00002a01,0x00000111,0x00050095,0x000000ab,
34900x00002a94,0x000029d0,0x00002a0e,0x00050051,
34910x00000006,0x00002a95,0x00002a94,0x00000001,
34920x00050051,0x00000006,0x00002a96,0x00002a94,
34930x00000000,0x00050080,0x00000006,0x00002a9b,
34940x000029d7,0x00002a95,0x00050050,0x00000007,
34950x00002a9c,0x00002a96,0x00002a9b,0x0004007c,
34960x00000014,0x00002a8c,0x00002a9c,0x00060041,
34970x000000db,0x00002a83,0x00002a8c,0x000000da,
34980x000000da,0x0006003d,0x00000006,0x00002a84,
34990x00002a83,0x00000002,0x00000004,0x0004007c,
35000x00000027,0x00002a12,0x00002a84,0x00060050,
35010x0000004b,0x00002a13,0x00002a06,0x00002a0c,
35020x00002a12,0x00050080,0x00000006,0x00002a15,
35030x00002a01,0x00000118,0x00050095,0x000000ab,
35040x00002ab5,0x000029d0,0x00002a15,0x00050051,
35050x00000006,0x00002ab6,0x00002ab5,0x00000001,
35060x00050051,0x00000006,0x00002ab7,0x00002ab5,
35070x00000000,0x00050080,0x00000006,0x00002abc,
35080x000029d7,0x00002ab6,0x00050050,0x00000007,
35090x00002abd,0x00002ab7,0x00002abc,0x0004007c,
35100x00000014,0x00002aad,0x00002abd,0x00060041,
35110x000000db,0x00002aa4,0x00002aad,0x000000da,
35120x000000da,0x0006003d,0x00000006,0x00002aa5,
35130x00002aa4,0x00000002,0x00000004,0x0004007c,
35140x00000027,0x00002a19,0x00002aa5,0x00050080,
35150x00000006,0x00002a1b,0x00002a01,0x0000011f,
35160x00050095,0x000000ab,0x00002ad6,0x000029d0,
35170x00002a1b,0x00050051,0x00000006,0x00002ad7,
35180x00002ad6,0x00000001,0x00050051,0x00000006,
35190x00002ad8,0x00002ad6,0x00000000,0x00050080,
35200x00000006,0x00002add,0x000029d7,0x00002ad7,
35210x00050050,0x00000007,0x00002ade,0x00002ad8,
35220x00002add,0x0004007c,0x00000014,0x00002ace,
35230x00002ade,0x00060041,0x000000db,0x00002ac5,
35240x00002ace,0x000000da,0x000000da,0x0006003d,
35250x00000006,0x00002ac6,0x00002ac5,0x00000002,
35260x00000004,0x0004007c,0x00000027,0x00002a1f,
35270x00002ac6,0x00050080,0x00000006,0x00002a21,
35280x00002a01,0x00000189,0x00050095,0x000000ab,
35290x00002af7,0x000029d0,0x00002a21,0x00050051,
35300x00000006,0x00002af8,0x00002af7,0x00000001,
35310x00050051,0x00000006,0x00002af9,0x00002af7,
35320x00000000,0x00050080,0x00000006,0x00002afe,
35330x000029d7,0x00002af8,0x00050050,0x00000007,
35340x00002aff,0x00002af9,0x00002afe,0x0004007c,
35350x00000014,0x00002aef,0x00002aff,0x00060041,
35360x000000db,0x00002ae6,0x00002aef,0x000000da,
35370x000000da,0x0006003d,0x00000006,0x00002ae7,
35380x00002ae6,0x00000002,0x00000004,0x0004007c,
35390x00000027,0x00002a25,0x00002ae7,0x00060050,
35400x0000004b,0x00002a26,0x00002a19,0x00002a1f,
35410x00002a25,0x000300f7,0x000026a9,0x00000000,
35420x000400fa,0x000029ee,0x0000269e,0x000026a9,
35430x000200f8,0x0000269e,0x00050084,0x00000006,
35440x000026a2,0x00000228,0x000029c2,0x00050080,
35450x00000006,0x000026a3,0x000029de,0x000026a2,
35460x00050080,0x00000006,0x000026a4,0x000026a3,
35470x000005d0,0x00050041,0x00000156,0x000026a5,
35480x000000fc,0x000000da,0x0004003d,0x00000007, 32170x000000fc,0x000000da,0x0004003d,0x00000007,
35490x000026a6,0x000026a5,0x00050051,0x00000006, 32180x00002745,0x00002744,0x00050051,0x00000006,
35500x00002b15,0x000026a6,0x00000000,0x00050095, 32190x00002847,0x00002745,0x00000000,0x00050095,
35510x000000ab,0x00002b17,0x00002b15,0x000026a4, 32200x000000ab,0x00002849,0x00002847,0x00002743,
35520x00050051,0x00000006,0x00002b18,0x00002b17, 32210x00050051,0x00000006,0x0000284a,0x00002849,
35530x00000001,0x00050051,0x00000006,0x00002b19, 32220x00000001,0x00050051,0x00000006,0x0000284b,
35540x00002b17,0x00000000,0x00050051,0x00000006, 32230x00002849,0x00000000,0x00050051,0x00000006,
35550x00002b1c,0x000026a6,0x00000001,0x00050080, 32240x0000284e,0x00002745,0x00000001,0x00050080,
35560x00000006,0x00002b1e,0x00002b1c,0x00002b18, 32250x00000006,0x00002850,0x0000284e,0x0000284a,
35570x00050050,0x00000007,0x00002b1f,0x00002b19, 32260x00050050,0x00000007,0x00002851,0x0000284b,
35580x00002b1e,0x0004007c,0x00000014,0x00002b0f, 32270x00002850,0x0004007c,0x00000014,0x00002841,
35590x00002b1f,0x00060041,0x000000db,0x00002b07, 32280x00002851,0x00060041,0x000000db,0x00002838,
35600x00002b0f,0x000000da,0x000000da,0x0005003e, 32290x00002841,0x000000da,0x000000da,0x0006003d,
35610x00002b07,0x00002730,0x00000002,0x00000004, 32300x00000006,0x00002839,0x00002838,0x00000002,
35620x000200f9,0x000026a9,0x000200f8,0x000026a9, 32310x00000004,0x000500ab,0x0000002f,0x00002748,
35630x000200f9,0x000026b8,0x000200f8,0x000026aa, 32320x00002839,0x00000380,0x000300f7,0x00002783,
35640x00050080,0x00000006,0x000026ae,0x0000268b, 32330x00000000,0x000400fa,0x00002748,0x00002749,
35650x00002637,0x00050084,0x00000006,0x00002b25, 32340x00002783,0x000200f8,0x00002749,0x000500c2,
35660x000026ae,0x00000228,0x00050080,0x00000006, 32350x00000006,0x00002855,0x00002839,0x0000020d,
35670x00002b26,0x0000272a,0x00002b25,0x000500c2, 32360x00050084,0x00000006,0x0000274c,0x00002855,
35680x00000006,0x00002b27,0x00002b26,0x00000233, 32370x00000107,0x000500c7,0x00000006,0x0000274e,
35690x000500c4,0x00000006,0x00002b28,0x00002b27, 32380x00002839,0x00000967,0x000500aa,0x0000002f,
35700x0000020d,0x000500c5,0x00000006,0x00002b29, 32390x0000274f,0x0000274e,0x00000246,0x000300f7,
35710x00002b28,0x00000246,0x00050041,0x000000fe, 32400x00002776,0x00000000,0x000400fa,0x0000274f,
35720x000026b1,0x000000fc,0x0000096c,0x0004003d, 32410x00002750,0x0000275c,0x000200f8,0x00002750,
35730x00000006,0x000026b2,0x000026b1,0x00050080, 32420x00050041,0x000000fe,0x00002751,0x000000fc,
35740x00000006,0x000026b4,0x000026b2,0x000026ae, 32430x0000096c,0x0004003d,0x00000006,0x00002752,
35750x00050041,0x000000fe,0x00002b69,0x000000fc, 32440x00002751,0x00050082,0x00000006,0x00002756,
35760x000000fd,0x0004003d,0x00000006,0x00002b6a, 32450x0000274c,0x0000282a,0x00050086,0x00000006,
35770x00002b69,0x00050084,0x00000006,0x00002b6b, 32460x00002757,0x00002756,0x00000228,0x00050080,
35780x0000011f,0x00002b6a,0x00050080,0x00000006, 32470x00000006,0x00002758,0x00002752,0x00002757,
35790x00002b6c,0x00000107,0x00002b6b,0x00050080, 32480x00050041,0x000000fe,0x00002895,0x000000fc,
35800x00000006,0x00002b72,0x00002b6a,0x0000319c, 32490x000000fd,0x0004003d,0x00000006,0x00002896,
35810x00050086,0x00000006,0x00002b73,0x00002b72, 32500x00002895,0x00050084,0x00000006,0x00002897,
35820x00000101,0x00050084,0x00000006,0x00002b65, 32510x0000011f,0x00002896,0x00050080,0x00000006,
35830x00000107,0x00002b73,0x00050080,0x00000006, 32520x00002898,0x00000107,0x00002897,0x00050080,
35840x00002b66,0x00002b6c,0x00002b65,0x00050084, 32530x00000006,0x0000289e,0x00002896,0x000032a8,
35850x00000006,0x00002b3a,0x00000150,0x000026b4, 32540x00050086,0x00000006,0x0000289f,0x0000289e,
35860x00050080,0x00000006,0x00002b3b,0x00002b66, 32550x00000101,0x00050084,0x00000006,0x00002891,
35870x00002b3a,0x00050041,0x00000156,0x00002b3c, 32560x00000107,0x0000289f,0x00050080,0x00000006,
32570x00002892,0x00002898,0x00002891,0x00050084,
32580x00000006,0x00002866,0x00000150,0x00002758,
32590x00050080,0x00000006,0x00002867,0x00002892,
32600x00002866,0x00050041,0x00000156,0x00002868,
35880x000000fc,0x00000154,0x0004003d,0x00000007, 32610x000000fc,0x00000154,0x0004003d,0x00000007,
35890x00002b3d,0x00002b3c,0x00050051,0x00000006, 32620x00002869,0x00002868,0x00050051,0x00000006,
35900x00002b8a,0x00002b3d,0x00000000,0x00050095, 32630x000028b6,0x00002869,0x00000000,0x00050095,
35910x000000ab,0x00002b8c,0x00002b8a,0x00002b3b, 32640x000000ab,0x000028b8,0x000028b6,0x00002867,
35920x00050051,0x00000006,0x00002b8d,0x00002b8c, 32650x00050051,0x00000006,0x000028b9,0x000028b8,
35930x00000001,0x00050051,0x00000006,0x00002b8e, 32660x00000001,0x00050051,0x00000006,0x000028ba,
35940x00002b8c,0x00000000,0x00050051,0x00000006, 32670x000028b8,0x00000000,0x00050051,0x00000006,
35950x00002b91,0x00002b3d,0x00000001,0x00050080, 32680x000028bd,0x00002869,0x00000001,0x00050080,
35960x00000006,0x00002b93,0x00002b91,0x00002b8d, 32690x00000006,0x000028bf,0x000028bd,0x000028b9,
35970x00050050,0x00000007,0x00002b94,0x00002b8e, 32700x00050050,0x00000007,0x000028c0,0x000028ba,
35980x00002b93,0x0004007c,0x00000014,0x00002b84, 32710x000028bf,0x0004007c,0x00000014,0x000028b0,
35990x00002b94,0x00060041,0x000000db,0x00002b7b, 32720x000028c0,0x00060041,0x000000db,0x000028a7,
36000x00002b84,0x000000da,0x000000da,0x0006003d, 32730x000028b0,0x000000da,0x000000da,0x0006003d,
36010x00000006,0x00002b7c,0x00002b7b,0x00000002, 32740x00000006,0x000028a8,0x000028a7,0x00000002,
36020x00000004,0x0004007c,0x00000027,0x00002b40, 32750x00000004,0x0004007c,0x00000027,0x0000286c,
36030x00002b7c,0x00050080,0x00000006,0x00002b42, 32760x000028a8,0x00050080,0x00000006,0x0000286e,
36040x00002b3b,0x0000010a,0x00050095,0x000000ab, 32770x00002867,0x0000010a,0x00050095,0x000000ab,
36050x00002bad,0x00002b8a,0x00002b42,0x00050051, 32780x000028d9,0x000028b6,0x0000286e,0x00050051,
36060x00000006,0x00002bae,0x00002bad,0x00000001, 32790x00000006,0x000028da,0x000028d9,0x00000001,
36070x00050051,0x00000006,0x00002baf,0x00002bad, 32800x00050051,0x00000006,0x000028db,0x000028d9,
36080x00000000,0x00050080,0x00000006,0x00002bb4, 32810x00000000,0x00050080,0x00000006,0x000028e0,
36090x00002b91,0x00002bae,0x00050050,0x00000007, 32820x000028bd,0x000028da,0x00050050,0x00000007,
36100x00002bb5,0x00002baf,0x00002bb4,0x0004007c, 32830x000028e1,0x000028db,0x000028e0,0x0004007c,
36110x00000014,0x00002ba5,0x00002bb5,0x00060041, 32840x00000014,0x000028d1,0x000028e1,0x00060041,
36120x000000db,0x00002b9c,0x00002ba5,0x000000da, 32850x000000db,0x000028c8,0x000028d1,0x000000da,
36130x000000da,0x0006003d,0x00000006,0x00002b9d, 32860x000000da,0x0006003d,0x00000006,0x000028c9,
36140x00002b9c,0x00000002,0x00000004,0x0004007c, 32870x000028c8,0x00000002,0x00000004,0x0004007c,
36150x00000027,0x00002b46,0x00002b9d,0x00050080, 32880x00000027,0x00002872,0x000028c9,0x00050080,
36160x00000006,0x00002b48,0x00002b3b,0x00000111, 32890x00000006,0x00002874,0x00002867,0x00000111,
36170x00050095,0x000000ab,0x00002bce,0x00002b8a, 32900x00050095,0x000000ab,0x000028fa,0x000028b6,
36180x00002b48,0x00050051,0x00000006,0x00002bcf, 32910x00002874,0x00050051,0x00000006,0x000028fb,
36190x00002bce,0x00000001,0x00050051,0x00000006, 32920x000028fa,0x00000001,0x00050051,0x00000006,
36200x00002bd0,0x00002bce,0x00000000,0x00050080, 32930x000028fc,0x000028fa,0x00000000,0x00050080,
36210x00000006,0x00002bd5,0x00002b91,0x00002bcf, 32940x00000006,0x00002901,0x000028bd,0x000028fb,
36220x00050050,0x00000007,0x00002bd6,0x00002bd0, 32950x00050050,0x00000007,0x00002902,0x000028fc,
36230x00002bd5,0x0004007c,0x00000014,0x00002bc6, 32960x00002901,0x0004007c,0x00000014,0x000028f2,
36240x00002bd6,0x00060041,0x000000db,0x00002bbd, 32970x00002902,0x00060041,0x000000db,0x000028e9,
36250x00002bc6,0x000000da,0x000000da,0x0006003d, 32980x000028f2,0x000000da,0x000000da,0x0006003d,
36260x00000006,0x00002bbe,0x00002bbd,0x00000002, 32990x00000006,0x000028ea,0x000028e9,0x00000002,
36270x00000004,0x0004007c,0x00000027,0x00002b4c, 33000x00000004,0x0004007c,0x00000027,0x00002878,
36280x00002bbe,0x00060050,0x0000004b,0x00002b4d, 33010x000028ea,0x00060050,0x0000004b,0x00002879,
36290x00002b40,0x00002b46,0x00002b4c,0x00050080, 33020x0000286c,0x00002872,0x00002878,0x00050080,
36300x00000006,0x00002b4f,0x00002b3b,0x00000118, 33030x00000006,0x0000287b,0x00002867,0x00000118,
36310x00050095,0x000000ab,0x00002bef,0x00002b8a, 33040x00050095,0x000000ab,0x0000291b,0x000028b6,
36320x00002b4f,0x00050051,0x00000006,0x00002bf0, 33050x0000287b,0x00050051,0x00000006,0x0000291c,
36330x00002bef,0x00000001,0x00050051,0x00000006, 33060x0000291b,0x00000001,0x00050051,0x00000006,
36340x00002bf1,0x00002bef,0x00000000,0x00050080, 33070x0000291d,0x0000291b,0x00000000,0x00050080,
36350x00000006,0x00002bf6,0x00002b91,0x00002bf0, 33080x00000006,0x00002922,0x000028bd,0x0000291c,
36360x00050050,0x00000007,0x00002bf7,0x00002bf1, 33090x00050050,0x00000007,0x00002923,0x0000291d,
36370x00002bf6,0x0004007c,0x00000014,0x00002be7, 33100x00002922,0x0004007c,0x00000014,0x00002913,
36380x00002bf7,0x00060041,0x000000db,0x00002bde, 33110x00002923,0x00060041,0x000000db,0x0000290a,
36390x00002be7,0x000000da,0x000000da,0x0006003d, 33120x00002913,0x000000da,0x000000da,0x0006003d,
36400x00000006,0x00002bdf,0x00002bde,0x00000002, 33130x00000006,0x0000290b,0x0000290a,0x00000002,
36410x00000004,0x0004007c,0x00000027,0x00002b53, 33140x00000004,0x0004007c,0x00000027,0x0000287f,
36420x00002bdf,0x00050080,0x00000006,0x00002b55, 33150x0000290b,0x00050080,0x00000006,0x00002881,
36430x00002b3b,0x0000011f,0x00050095,0x000000ab, 33160x00002867,0x0000011f,0x00050095,0x000000ab,
36440x00002c10,0x00002b8a,0x00002b55,0x00050051, 33170x0000293c,0x000028b6,0x00002881,0x00050051,
36450x00000006,0x00002c11,0x00002c10,0x00000001, 33180x00000006,0x0000293d,0x0000293c,0x00000001,
36460x00050051,0x00000006,0x00002c12,0x00002c10, 33190x00050051,0x00000006,0x0000293e,0x0000293c,
36470x00000000,0x00050080,0x00000006,0x00002c17, 33200x00000000,0x00050080,0x00000006,0x00002943,
36480x00002b91,0x00002c11,0x00050050,0x00000007, 33210x000028bd,0x0000293d,0x00050050,0x00000007,
36490x00002c18,0x00002c12,0x00002c17,0x0004007c, 33220x00002944,0x0000293e,0x00002943,0x0004007c,
36500x00000014,0x00002c08,0x00002c18,0x00060041, 33230x00000014,0x00002934,0x00002944,0x00060041,
36510x000000db,0x00002bff,0x00002c08,0x000000da, 33240x000000db,0x0000292b,0x00002934,0x000000da,
36520x000000da,0x0006003d,0x00000006,0x00002c00, 33250x000000da,0x0006003d,0x00000006,0x0000292c,
36530x00002bff,0x00000002,0x00000004,0x0004007c, 33260x0000292b,0x00000002,0x00000004,0x0004007c,
36540x00000027,0x00002b59,0x00002c00,0x00050080, 33270x00000027,0x00002885,0x0000292c,0x00050080,
36550x00000006,0x00002b5b,0x00002b3b,0x00000189, 33280x00000006,0x00002887,0x00002867,0x00000189,
36560x00050095,0x000000ab,0x00002c31,0x00002b8a, 33290x00050095,0x000000ab,0x0000295d,0x000028b6,
36570x00002b5b,0x00050051,0x00000006,0x00002c32, 33300x00002887,0x00050051,0x00000006,0x0000295e,
36580x00002c31,0x00000001,0x00050051,0x00000006, 33310x0000295d,0x00000001,0x00050051,0x00000006,
36590x00002c33,0x00002c31,0x00000000,0x00050080, 33320x0000295f,0x0000295d,0x00000000,0x00050080,
36600x00000006,0x00002c38,0x00002b91,0x00002c32, 33330x00000006,0x00002964,0x000028bd,0x0000295e,
36610x00050050,0x00000007,0x00002c39,0x00002c33, 33340x00050050,0x00000007,0x00002965,0x0000295f,
36620x00002c38,0x0004007c,0x00000014,0x00002c29, 33350x00002964,0x0004007c,0x00000014,0x00002955,
36630x00002c39,0x00060041,0x000000db,0x00002c20, 33360x00002965,0x00060041,0x000000db,0x0000294c,
36640x00002c29,0x000000da,0x000000da,0x0006003d, 33370x00002955,0x000000da,0x000000da,0x0006003d,
36650x00000006,0x00002c21,0x00002c20,0x00000002, 33380x00000006,0x0000294d,0x0000294c,0x00000002,
36660x00000004,0x0004007c,0x00000027,0x00002b5f, 33390x00000004,0x0004007c,0x00000027,0x0000288b,
36670x00002c21,0x00060050,0x0000004b,0x00002b60, 33400x0000294d,0x00060050,0x0000004b,0x0000288c,
36680x00002b53,0x00002b59,0x00002b5f,0x000200f9, 33410x0000287f,0x00002885,0x0000288b,0x000200f9,
36690x000026b8,0x000200f8,0x000026b8,0x000700f5, 33420x00002776,0x000200f8,0x0000275c,0x00050041,
36700x0000004b,0x0000309b,0x00002a26,0x000026a9, 33430x000000fe,0x0000275e,0x000000fc,0x0000022c,
36710x00002b60,0x000026aa,0x000700f5,0x0000004b, 33440x0004003d,0x00000006,0x0000275f,0x0000275e,
36720x00003099,0x00002a13,0x000026a9,0x00002b4d, 33450x00050082,0x00000006,0x00002760,0x0000274c,
36730x000026aa,0x000700f5,0x00000006,0x00003097, 33460x0000275f,0x00050041,0x000000fe,0x00002968,
36740x000029e9,0x000026a9,0x00002b29,0x000026aa, 33470x000000fc,0x00000224,0x0004003d,0x00000006,
36750x00050041,0x000000fe,0x000026b9,0x000000fc, 33480x00002969,0x00002968,0x000500ab,0x0000002f,
36760x000009ef,0x0004003d,0x00000006,0x000026ba, 33490x0000296a,0x00002969,0x000000a6,0x000600a9,
36770x000026b9,0x000500c2,0x00000006,0x00002c3d, 33500x00000006,0x0000296b,0x0000296a,0x00000228,
36780x00003097,0x0000020d,0x00050041,0x000000fe, 33510x00000107,0x00050086,0x00000006,0x00002762,
36790x000026bd,0x000000fc,0x0000022c,0x0004003d, 33520x00002760,0x0000296b,0x00050041,0x000000fe,
36800x00000006,0x000026be,0x000026bd,0x00050086, 33530x000029ab,0x000000fc,0x000000fd,0x0004003d,
36810x00000006,0x000026bf,0x000026be,0x00000107, 33540x00000006,0x000029ac,0x000029ab,0x00050084,
36820x00050082,0x00000006,0x000026c0,0x00002c3d, 33550x00000006,0x000029ad,0x0000011f,0x000029ac,
36830x000026bf,0x00050084,0x00000006,0x000026c1, 33560x00050080,0x00000006,0x000029ae,0x00000107,
36840x0000010a,0x000026c0,0x00050080,0x00000006, 33570x000029ad,0x00050080,0x00000006,0x000029b4,
36850x000026c2,0x000026ba,0x000026c1,0x00050041, 33580x000029ac,0x000032a8,0x00050086,0x00000006,
36860x00000156,0x000026c3,0x000000fc,0x000000da, 33590x000029b5,0x000029b4,0x00000101,0x00050084,
36870x0004003d,0x00000007,0x000026c4,0x000026c3, 33600x00000006,0x000029a7,0x00000107,0x000029b5,
36880x00050051,0x00000006,0x00002c53,0x000026c4, 33610x00050080,0x00000006,0x000029a8,0x000029ae,
36890x00000000,0x00050095,0x000000ab,0x00002c55, 33620x000029a7,0x00050084,0x00000006,0x0000297c,
36900x00002c53,0x000026c2,0x00050051,0x00000006, 33630x00000150,0x00002762,0x00050080,0x00000006,
36910x00002c56,0x00002c55,0x00000001,0x00050051, 33640x0000297d,0x000029a8,0x0000297c,0x00050041,
36920x00000006,0x00002c57,0x00002c55,0x00000000, 33650x00000156,0x0000297e,0x000000fc,0x00000154,
36930x00050051,0x00000006,0x00002c5a,0x000026c4, 33660x0004003d,0x00000007,0x0000297f,0x0000297e,
36940x00000001,0x00050080,0x00000006,0x00002c5c, 33670x00050051,0x00000006,0x000029cc,0x0000297f,
36950x00002c5a,0x00002c56,0x00050050,0x00000007, 33680x00000000,0x00050095,0x000000ab,0x000029ce,
36960x00002c5d,0x00002c57,0x00002c5c,0x0004007c, 33690x000029cc,0x0000297d,0x00050051,0x00000006,
36970x00000014,0x00002c4d,0x00002c5d,0x00060041, 33700x000029cf,0x000029ce,0x00000001,0x00050051,
36980x000000db,0x00002c45,0x00002c4d,0x000000da, 33710x00000006,0x000029d0,0x000029ce,0x00000000,
36990x000000da,0x0005003e,0x00002c45,0x00002730, 33720x00050051,0x00000006,0x000029d3,0x0000297f,
37000x00000002,0x00000004,0x00050051,0x00000027, 33730x00000001,0x00050080,0x00000006,0x000029d5,
37010x00002c61,0x00003099,0x00000000,0x00050051, 33740x000029d3,0x000029cf,0x00050050,0x00000007,
37020x00000027,0x00002c63,0x0000309b,0x00000000, 33750x000029d6,0x000029d0,0x000029d5,0x0004007c,
37030x000500bc,0x0000002f,0x00002c64,0x00002c61, 33760x00000014,0x000029c6,0x000029d6,0x00060041,
37040x00002c63,0x000300f7,0x00002c6b,0x00000000, 33770x000000db,0x000029bd,0x000029c6,0x000000da,
37050x000400fa,0x00002c64,0x00002c65,0x00002c6b, 33780x000000da,0x0006003d,0x00000006,0x000029be,
37060x000200f8,0x00002c65,0x00050051,0x00000027, 33790x000029bd,0x00000002,0x00000004,0x0004007c,
37070x00002c67,0x00003099,0x00000001,0x00050051, 33800x00000027,0x00002982,0x000029be,0x00050080,
37080x00000027,0x00002c69,0x0000309b,0x00000001, 33810x00000006,0x00002984,0x0000297d,0x0000010a,
37090x000500bc,0x0000002f,0x00002c6a,0x00002c67, 33820x00050095,0x000000ab,0x000029ef,0x000029cc,
37100x00002c69,0x000200f9,0x00002c6b,0x000200f8, 33830x00002984,0x00050051,0x00000006,0x000029f0,
37110x00002c6b,0x000700f5,0x0000002f,0x00002c6c, 33840x000029ef,0x00000001,0x00050051,0x00000006,
37120x00002c64,0x000026b8,0x00002c6a,0x00002c65, 33850x000029f1,0x000029ef,0x00000000,0x00050080,
37130x000300f7,0x00002c73,0x00000000,0x000400fa, 33860x00000006,0x000029f6,0x000029d3,0x000029f0,
37140x00002c6c,0x00002c6d,0x00002c73,0x000200f8, 33870x00050050,0x00000007,0x000029f7,0x000029f1,
37150x00002c6d,0x00050051,0x00000027,0x00002c6f, 33880x000029f6,0x0004007c,0x00000014,0x000029e7,
37160x00003099,0x00000002,0x00050051,0x00000027, 33890x000029f7,0x00060041,0x000000db,0x000029de,
37170x00002c71,0x0000309b,0x00000002,0x000500bc, 33900x000029e7,0x000000da,0x000000da,0x0006003d,
37180x0000002f,0x00002c72,0x00002c6f,0x00002c71, 33910x00000006,0x000029df,0x000029de,0x00000002,
37190x000200f9,0x00002c73,0x000200f8,0x00002c73, 33920x00000004,0x0004007c,0x00000027,0x00002988,
37200x000700f5,0x0000002f,0x00002c74,0x00002c6c, 33930x000029df,0x00050080,0x00000006,0x0000298a,
37210x00002c6b,0x00002c72,0x00002c6d,0x000300f7, 33940x0000297d,0x00000111,0x00050095,0x000000ab,
37220x000026d2,0x00000000,0x000400fa,0x00002c74, 33950x00002a10,0x000029cc,0x0000298a,0x00050051,
37230x000026cb,0x000026d2,0x000200f8,0x000026cb, 33960x00000006,0x00002a11,0x00002a10,0x00000001,
37240x0007000c,0x0000004b,0x000026ce,0x00000001, 33970x00050051,0x00000006,0x00002a12,0x00002a10,
37250x00000025,0x00003094,0x00003099,0x0007000c, 33980x00000000,0x00050080,0x00000006,0x00002a17,
37260x0000004b,0x000026d1,0x00000001,0x00000028, 33990x000029d3,0x00002a11,0x00050050,0x00000007,
37270x00003096,0x0000309b,0x000200f9,0x000026d2, 34000x00002a18,0x00002a12,0x00002a17,0x0004007c,
37280x000200f8,0x000026d2,0x000700f5,0x0000004b, 34010x00000014,0x00002a08,0x00002a18,0x00060041,
37290x00003183,0x00003096,0x00002c73,0x000026d1, 34020x000000db,0x000029ff,0x00002a08,0x000000da,
37300x000026cb,0x000700f5,0x0000004b,0x0000317e, 34030x000000da,0x0006003d,0x00000006,0x00002a00,
37310x00003094,0x00002c73,0x000026ce,0x000026cb, 34040x000029ff,0x00000002,0x00000004,0x0004007c,
37320x000200f9,0x000026d3,0x000200f8,0x000026d3, 34050x00000027,0x0000298e,0x00002a00,0x00060050,
37330x000700f5,0x0000004b,0x00003182,0x00003096, 34060x0000004b,0x0000298f,0x00002982,0x00002988,
37340x00002684,0x00003183,0x000026d2,0x000700f5, 34070x0000298e,0x00050080,0x00000006,0x00002991,
37350x0000004b,0x0000317d,0x00003094,0x00002684, 34080x0000297d,0x00000118,0x00050095,0x000000ab,
37360x0000317e,0x000026d2,0x000700f5,0x0000004b, 34090x00002a31,0x000029cc,0x00002991,0x00050051,
37370x000030d9,0x0000319b,0x00002684,0x0000309b, 34100x00000006,0x00002a32,0x00002a31,0x00000001,
37380x000026d2,0x000700f5,0x0000004b,0x000030d4, 34110x00050051,0x00000006,0x00002a33,0x00002a31,
37390x00003199,0x00002684,0x00003099,0x000026d2, 34120x00000000,0x00050080,0x00000006,0x00002a38,
37400x000700f5,0x00000006,0x000030cd,0x00000380, 34130x000029d3,0x00002a32,0x00050050,0x00000007,
37410x00002684,0x00003097,0x000026d2,0x000200f9, 34140x00002a39,0x00002a33,0x00002a38,0x0004007c,
37420x000026d4,0x000200f8,0x000026d4,0x000700f5, 34150x00000014,0x00002a29,0x00002a39,0x00060041,
37430x0000004b,0x0000317f,0x00003180,0x00002683, 34160x000000db,0x00002a20,0x00002a29,0x000000da,
37440x00003182,0x000026d3,0x000700f5,0x0000004b, 34170x000000da,0x0006003d,0x00000006,0x00002a21,
37450x0000317a,0x0000317b,0x00002683,0x0000317d, 34180x00002a20,0x00000002,0x00000004,0x0004007c,
37460x000026d3,0x000700f5,0x0000004b,0x000030d6, 34190x00000027,0x00002995,0x00002a21,0x00050080,
37470x000030d7,0x00002683,0x000030d9,0x000026d3, 34200x00000006,0x00002997,0x0000297d,0x0000011f,
37480x000700f5,0x0000004b,0x000030d1,0x000030d2, 34210x00050095,0x000000ab,0x00002a52,0x000029cc,
37490x00002683,0x000030d4,0x000026d3,0x000700f5, 34220x00002997,0x00050051,0x00000006,0x00002a53,
37500x00000006,0x000030c6,0x00002739,0x00002683, 34230x00002a52,0x00000001,0x00050051,0x00000006,
37510x000030cd,0x000026d3,0x00050084,0x00000006, 34240x00002a54,0x00002a52,0x00000000,0x00050080,
37520x000026d7,0x0000010a,0x00003091,0x00050080, 34250x00000006,0x00002a59,0x000029d3,0x00002a53,
37530x00000006,0x000026d8,0x0000272d,0x000026d7, 34260x00050050,0x00000007,0x00002a5a,0x00002a54,
37540x00050041,0x00000156,0x000026d9,0x000000fc, 34270x00002a59,0x0004007c,0x00000014,0x00002a4a,
37550x000000da,0x0004003d,0x00000007,0x000026da, 34280x00002a5a,0x00060041,0x000000db,0x00002a41,
37560x000026d9,0x00050051,0x00000006,0x00002c8b, 34290x00002a4a,0x000000da,0x000000da,0x0006003d,
37570x000026da,0x00000000,0x00050095,0x000000ab, 34300x00000006,0x00002a42,0x00002a41,0x00000002,
37580x00002c8d,0x00002c8b,0x000026d8,0x00050051, 34310x00000004,0x0004007c,0x00000027,0x0000299b,
37590x00000006,0x00002c8e,0x00002c8d,0x00000001, 34320x00002a42,0x00050080,0x00000006,0x0000299d,
37600x00050051,0x00000006,0x00002c8f,0x00002c8d, 34330x0000297d,0x00000189,0x00050095,0x000000ab,
37610x00000000,0x00050051,0x00000006,0x00002c92, 34340x00002a73,0x000029cc,0x0000299d,0x00050051,
37620x000026da,0x00000001,0x00050080,0x00000006, 34350x00000006,0x00002a74,0x00002a73,0x00000001,
37630x00002c94,0x00002c92,0x00002c8e,0x00050050, 34360x00050051,0x00000006,0x00002a75,0x00002a73,
37640x00000007,0x00002c95,0x00002c8f,0x00002c94, 34370x00000000,0x00050080,0x00000006,0x00002a7a,
37650x0004007c,0x00000014,0x00002c85,0x00002c95, 34380x000029d3,0x00002a74,0x00050050,0x00000007,
37660x00060041,0x000000db,0x00002c7d,0x00002c85, 34390x00002a7b,0x00002a75,0x00002a7a,0x0004007c,
37670x000000da,0x000000da,0x0005003e,0x00002c7d, 34400x00000014,0x00002a6b,0x00002a7b,0x00060041,
37680x000030c6,0x00000002,0x00000004,0x00050080, 34410x000000db,0x00002a62,0x00002a6b,0x000000da,
37690x00000006,0x000026de,0x0000272d,0x0000011f, 34420x000000da,0x0006003d,0x00000006,0x00002a63,
37700x00050084,0x00000006,0x000026e0,0x00000150, 34430x00002a62,0x00000002,0x00000004,0x0004007c,
37710x00003091,0x00050080,0x00000006,0x000026e1, 34440x00000027,0x000029a1,0x00002a63,0x00060050,
37720x000026de,0x000026e0,0x00050051,0x00000027, 34450x0000004b,0x000029a2,0x00002995,0x0000299b,
37730x000026e6,0x000030d1,0x00000000,0x0004007c, 34460x000029a1,0x000300f7,0x00002775,0x00000000,
37740x00000006,0x00002c9b,0x000026e6,0x00050095, 34470x000400fa,0x0000296a,0x0000276a,0x00002775,
37750x000000ab,0x00002cb6,0x00002c8b,0x000026e1, 34480x000200f8,0x0000276a,0x00050084,0x00000006,
37760x00050051,0x00000006,0x00002cb7,0x00002cb6, 34490x0000276e,0x00000228,0x00002762,0x00050080,
37770x00000001,0x00050051,0x00000006,0x00002cb8, 34500x00000006,0x0000276f,0x0000275f,0x0000276e,
37780x00002cb6,0x00000000,0x00050080,0x00000006, 34510x00050080,0x00000006,0x00002770,0x0000276f,
37790x00002cbd,0x00002c92,0x00002cb7,0x00050050, 34520x000005d0,0x00050095,0x000000ab,0x00002a93,
37800x00000007,0x00002cbe,0x00002cb8,0x00002cbd, 34530x00002847,0x00002770,0x00050051,0x00000006,
37810x0004007c,0x00000014,0x00002cae,0x00002cbe, 34540x00002a94,0x00002a93,0x00000001,0x00050051,
37820x00060041,0x000000db,0x00002ca6,0x00002cae, 34550x00000006,0x00002a95,0x00002a93,0x00000000,
37830x000000da,0x000000da,0x0005003e,0x00002ca6, 34560x00050080,0x00000006,0x00002a9a,0x0000284e,
37840x00002c9b,0x00000002,0x00000004,0x00050080, 34570x00002a94,0x00050050,0x00000007,0x00002a9b,
37850x00000006,0x000026e9,0x000026e1,0x0000010a, 34580x00002a95,0x00002a9a,0x0004007c,0x00000014,
37860x00050051,0x00000027,0x000026ed,0x000030d1, 34590x00002a8b,0x00002a9b,0x00060041,0x000000db,
37870x00000001,0x0004007c,0x00000006,0x00002cc4, 34600x00002a83,0x00002a8b,0x000000da,0x000000da,
37880x000026ed,0x00050095,0x000000ab,0x00002cdf, 34610x0005003e,0x00002a83,0x00002830,0x00000002,
37890x00002c8b,0x000026e9,0x00050051,0x00000006, 34620x00000004,0x000200f9,0x00002775,0x000200f8,
37900x00002ce0,0x00002cdf,0x00000001,0x00050051, 34630x00002775,0x000200f9,0x00002776,0x000200f8,
37910x00000006,0x00002ce1,0x00002cdf,0x00000000, 34640x00002776,0x000700f5,0x0000004b,0x000031b7,
37920x00050080,0x00000006,0x00002ce6,0x00002c92, 34650x0000288c,0x00002750,0x000029a2,0x00002775,
37930x00002ce0,0x00050050,0x00000007,0x00002ce7, 34660x000700f5,0x0000004b,0x000031b5,0x00002879,
37940x00002ce1,0x00002ce6,0x0004007c,0x00000014, 34670x00002750,0x0000298f,0x00002775,0x00050051,
37950x00002cd7,0x00002ce7,0x00060041,0x000000db, 34680x00000027,0x00002a9f,0x000031b5,0x00000000,
37960x00002ccf,0x00002cd7,0x000000da,0x000000da, 34690x00050051,0x00000027,0x00002aa1,0x000031b7,
37970x0005003e,0x00002ccf,0x00002cc4,0x00000002, 34700x00000000,0x000500bc,0x0000002f,0x00002aa2,
37980x00000004,0x00050080,0x00000006,0x000026f0, 34710x00002a9f,0x00002aa1,0x000300f7,0x00002aa9,
37990x000026e1,0x00000111,0x00050051,0x00000027, 34720x00000000,0x000400fa,0x00002aa2,0x00002aa3,
38000x000026f4,0x000030d1,0x00000002,0x0004007c, 34730x00002aa9,0x000200f8,0x00002aa3,0x00050051,
38010x00000006,0x00002ced,0x000026f4,0x00050095, 34740x00000027,0x00002aa5,0x000031b5,0x00000001,
38020x000000ab,0x00002d08,0x00002c8b,0x000026f0, 34750x00050051,0x00000027,0x00002aa7,0x000031b7,
38030x00050051,0x00000006,0x00002d09,0x00002d08, 34760x00000001,0x000500bc,0x0000002f,0x00002aa8,
38040x00000001,0x00050051,0x00000006,0x00002d0a, 34770x00002aa5,0x00002aa7,0x000200f9,0x00002aa9,
38050x00002d08,0x00000000,0x00050080,0x00000006, 34780x000200f8,0x00002aa9,0x000700f5,0x0000002f,
38060x00002d0f,0x00002c92,0x00002d09,0x00050050, 34790x00002aaa,0x00002aa2,0x00002776,0x00002aa8,
38070x00000007,0x00002d10,0x00002d0a,0x00002d0f, 34800x00002aa3,0x000300f7,0x00002ab1,0x00000000,
38080x0004007c,0x00000014,0x00002d00,0x00002d10, 34810x000400fa,0x00002aaa,0x00002aab,0x00002ab1,
38090x00060041,0x000000db,0x00002cf8,0x00002d00, 34820x000200f8,0x00002aab,0x00050051,0x00000027,
38100x000000da,0x000000da,0x0005003e,0x00002cf8, 34830x00002aad,0x000031b5,0x00000002,0x00050051,
38110x00002ced,0x00000002,0x00000004,0x00050080, 34840x00000027,0x00002aaf,0x000031b7,0x00000002,
38120x00000006,0x000026f7,0x000026e1,0x00000118, 34850x000500bc,0x0000002f,0x00002ab0,0x00002aad,
38130x00050051,0x00000027,0x000026fb,0x000030d6, 34860x00002aaf,0x000200f9,0x00002ab1,0x000200f8,
38140x00000000,0x0004007c,0x00000006,0x00002d16, 34870x00002ab1,0x000700f5,0x0000002f,0x00002ab2,
38150x000026fb,0x00050095,0x000000ab,0x00002d31, 34880x00002aaa,0x00002aa9,0x00002ab0,0x00002aab,
38160x00002c8b,0x000026f7,0x00050051,0x00000006, 34890x000300f7,0x00002782,0x00000000,0x000400fa,
38170x00002d32,0x00002d31,0x00000001,0x00050051, 34900x00002ab2,0x0000277b,0x00002782,0x000200f8,
38180x00000006,0x00002d33,0x00002d31,0x00000000, 34910x0000277b,0x0007000c,0x0000004b,0x0000277e,
38190x00050080,0x00000006,0x00002d38,0x00002c92, 34920x00000001,0x00000025,0x000031a0,0x000031b5,
38200x00002d32,0x00050050,0x00000007,0x00002d39, 34930x0007000c,0x0000004b,0x00002781,0x00000001,
38210x00002d33,0x00002d38,0x0004007c,0x00000014, 34940x00000028,0x000031a2,0x000031b7,0x000200f9,
38220x00002d29,0x00002d39,0x00060041,0x000000db, 34950x00002782,0x000200f8,0x00002782,0x000700f5,
38230x00002d21,0x00002d29,0x000000da,0x000000da, 34960x0000004b,0x0000328d,0x000031a2,0x00002ab1,
38240x0005003e,0x00002d21,0x00002d16,0x00000002, 34970x00002781,0x0000277b,0x000700f5,0x0000004b,
38250x00000004,0x00050080,0x00000006,0x000026fe, 34980x00003288,0x000031a0,0x00002ab1,0x0000277e,
38260x000026e1,0x0000011f,0x00050051,0x00000027, 34990x0000277b,0x000200f9,0x00002783,0x000200f8,
38270x00002702,0x000030d6,0x00000001,0x0004007c, 35000x00002783,0x000700f5,0x0000004b,0x0000328c,
38280x00000006,0x00002d3f,0x00002702,0x00050095, 35010x000031a2,0x0000273f,0x0000328d,0x00002782,
38290x000000ab,0x00002d5a,0x00002c8b,0x000026fe, 35020x000700f5,0x0000004b,0x00003287,0x000031a0,
38300x00050051,0x00000006,0x00002d5b,0x00002d5a, 35030x0000273f,0x00003288,0x00002782,0x000700f5,
38310x00000001,0x00050051,0x00000006,0x00002d5c, 35040x0000004b,0x000031e3,0x000032a7,0x0000273f,
38320x00002d5a,0x00000000,0x00050080,0x00000006, 35050x000031b7,0x00002782,0x000700f5,0x0000004b,
38330x00002d61,0x00002c92,0x00002d5b,0x00050050, 35060x000031de,0x000032a5,0x0000273f,0x000031b5,
38340x00000007,0x00002d62,0x00002d5c,0x00002d61, 35070x00002782,0x000200f9,0x000027d4,0x000200f8,
38350x0004007c,0x00000014,0x00002d52,0x00002d62, 35080x00002784,0x00050041,0x000000fe,0x00002786,
38360x00060041,0x000000db,0x00002d4a,0x00002d52, 35090x000000fc,0x00000250,0x0004003d,0x00000006,
38370x000000da,0x000000da,0x0005003e,0x00002d4a, 35100x00002787,0x00002786,0x000500b0,0x0000002f,
38380x00002d3f,0x00000002,0x00000004,0x00050080, 35110x00002788,0x00002737,0x00002787,0x000300f7,
38390x00000006,0x00002705,0x000026e1,0x00000189, 35120x000027d3,0x00000000,0x000400fa,0x00002788,
38400x00050051,0x00000027,0x00002709,0x000030d6, 35130x00002789,0x000027d3,0x000200f8,0x00002789,
38410x00000002,0x0004007c,0x00000006,0x00002d68, 35140x00050041,0x000000fe,0x0000278a,0x000000fc,
38420x00002709,0x00050095,0x000000ab,0x00002d83, 35150x00000266,0x0004003d,0x00000006,0x0000278b,
38430x00002c8b,0x00002705,0x00050051,0x00000006, 35160x0000278a,0x000500aa,0x0000002f,0x0000278c,
38440x00002d84,0x00002d83,0x00000001,0x00050051, 35170x0000278b,0x00000380,0x000300f7,0x000027b8,
38450x00000006,0x00002d85,0x00002d83,0x00000000, 35180x00000000,0x000400fa,0x0000278c,0x0000278d,
38460x00050080,0x00000006,0x00002d8a,0x00002c92, 35190x000027aa,0x000200f8,0x0000278d,0x00050041,
38470x00002d84,0x00050050,0x00000007,0x00002d8b, 35200x000000fe,0x00002ab6,0x000000fc,0x000000fd,
38480x00002d85,0x00002d8a,0x0004007c,0x00000014, 35210x0004003d,0x00000006,0x00002ab7,0x00002ab6,
38490x00002d7b,0x00002d8b,0x00060041,0x000000db, 35220x00050084,0x00000006,0x00002ab8,0x0000010a,
38500x00002d73,0x00002d7b,0x000000da,0x000000da, 35230x00002ab7,0x00050080,0x00000006,0x00002ab9,
38510x0005003e,0x00002d73,0x00002d68,0x00000002, 35240x00000107,0x00002ab8,0x00050084,0x00000006,
38520x00000004,0x000200f9,0x0000270b,0x000200f8, 35250x00002790,0x0000010a,0x00002737,0x00050080,
38530x0000270b,0x00050080,0x00000006,0x0000270d, 35260x00000006,0x00002791,0x00002ab9,0x00002790,
38540x00003091,0x00000154,0x000200f9,0x0000262f, 35270x00050041,0x00000156,0x00002792,0x000000fc,
38550x000200f8,0x0000270e,0x000200f9,0x0000270f, 35280x00000154,0x0004003d,0x00000007,0x00002793,
38560x000200f8,0x0000270f,0x000700f5,0x00000006, 35290x00002792,0x00050051,0x00000006,0x00002ad0,
38570x00003092,0x000000a6,0x0000270e,0x0000271e, 35300x00002793,0x00000000,0x00050095,0x000000ab,
38580x00002713,0x000500b0,0x0000002f,0x00002712, 35310x00002ad2,0x00002ad0,0x00002791,0x00050051,
38590x00003092,0x0000010a,0x000400f6,0x0000271f, 35320x00000006,0x00002ad3,0x00002ad2,0x00000001,
38600x00002713,0x00000000,0x000400fa,0x00002712, 35330x00050051,0x00000006,0x00002ad4,0x00002ad2,
38610x00002713,0x0000271f,0x000200f8,0x00002713, 35340x00000000,0x00050051,0x00000006,0x00002ad7,
38620x00050080,0x00000006,0x00002715,0x0000272d, 35350x00002793,0x00000001,0x00050080,0x00000006,
38630x000005c6,0x00050084,0x00000006,0x00002717, 35360x00002ad9,0x00002ad7,0x00002ad3,0x00050050,
38640x0000010a,0x00003092,0x00050080,0x00000006, 35370x00000007,0x00002ada,0x00002ad4,0x00002ad9,
38650x00002718,0x00002715,0x00002717,0x00050041, 35380x0004007c,0x00000014,0x00002aca,0x00002ada,
38660x00000156,0x00002719,0x000000fc,0x000000da, 35390x00060041,0x000000db,0x00002ac1,0x00002aca,
38670x0004003d,0x00000007,0x0000271a,0x00002719, 35400x000000da,0x000000da,0x0006003d,0x00000006,
38680x00050051,0x00000006,0x00002da1,0x0000271a, 35410x00002ac2,0x00002ac1,0x00000002,0x00000004,
38690x00000000,0x00050095,0x000000ab,0x00002da3, 35420x00050041,0x000000fe,0x00002add,0x000000fc,
38700x00002da1,0x00002718,0x00050051,0x00000006, 35430x0000022c,0x0004003d,0x00000006,0x00002ade,
38710x00002da4,0x00002da3,0x00000001,0x00050051, 35440x00002add,0x00050041,0x000000fe,0x00002aec,
38720x00000006,0x00002da5,0x00002da3,0x00000000, 35450x000000fc,0x00000224,0x0004003d,0x00000006,
38730x00050051,0x00000006,0x00002da8,0x0000271a, 35460x00002aed,0x00002aec,0x000500ab,0x0000002f,
38740x00000001,0x00050080,0x00000006,0x00002daa, 35470x00002aee,0x00002aed,0x000000a6,0x000600a9,
38750x00002da8,0x00002da4,0x00050050,0x00000007, 35480x00000006,0x00002aef,0x00002aee,0x00000228,
38760x00002dab,0x00002da5,0x00002daa,0x0004007c, 35490x00000107,0x00050084,0x00000006,0x00002ae1,
38770x00000014,0x00002d9b,0x00002dab,0x00060041, 35500x00002ac2,0x00002aef,0x00050080,0x00000006,
38780x000000db,0x00002d93,0x00002d9b,0x000000da, 35510x00002ae2,0x00002ade,0x00002ae1,0x000500c2,
38790x000000da,0x0005003e,0x00002d93,0x000000a6, 35520x00000006,0x00002ae3,0x00002ae2,0x00000233,
38800x00000002,0x00000004,0x00050080,0x00000006, 35530x000500c4,0x00000006,0x00002ae4,0x00002ae3,
38810x0000271e,0x00003092,0x00000154,0x000200f9, 35540x0000020d,0x000600a9,0x00000006,0x00002ae8,
38820x0000270f,0x000200f8,0x0000271f,0x00050041, 35550x00002aee,0x00000239,0x000000a6,0x000500c5,
38830x000000fe,0x00002720,0x000000fc,0x0000096c, 35560x00000006,0x00002ae9,0x00002ae4,0x00002ae8,
38840x0004003d,0x00000006,0x00002721,0x00002720, 35570x00050084,0x00000006,0x00002b31,0x0000011f,
38850x00050080,0x00000006,0x00002723,0x00002721, 35580x00002ab7,0x00050080,0x00000006,0x00002b32,
38860x00002623,0x00050041,0x000000fe,0x00002df5, 35590x00000107,0x00002b31,0x00050080,0x00000006,
38870x000000fc,0x000000fd,0x0004003d,0x00000006, 35600x00002b38,0x00002ab7,0x000032a8,0x00050086,
38880x00002df6,0x00002df5,0x00050084,0x00000006, 35610x00000006,0x00002b39,0x00002b38,0x00000101,
38890x00002df7,0x0000011f,0x00002df6,0x00050080, 35620x00050084,0x00000006,0x00002b2b,0x00000107,
38900x00000006,0x00002df8,0x00000107,0x00002df7, 35630x00002b39,0x00050080,0x00000006,0x00002b2c,
38910x00050080,0x00000006,0x00002dfe,0x00002df6, 35640x00002b32,0x00002b2b,0x00050084,0x00000006,
38920x0000319c,0x00050086,0x00000006,0x00002dff, 35650x00002b00,0x00000150,0x00002ac2,0x00050080,
38930x00002dfe,0x00000101,0x00050084,0x00000006, 35660x00000006,0x00002b01,0x00002b2c,0x00002b00,
38940x00002df1,0x00000107,0x00002dff,0x00050080, 35670x00050095,0x000000ab,0x00002b52,0x00002ad0,
38950x00000006,0x00002df2,0x00002df8,0x00002df1, 35680x00002b01,0x00050051,0x00000006,0x00002b53,
38960x00050084,0x00000006,0x00002dc2,0x00000150, 35690x00002b52,0x00000001,0x00050051,0x00000006,
38970x00002723,0x00050080,0x00000006,0x00002dc3, 35700x00002b54,0x00002b52,0x00000000,0x00050080,
38980x00002df2,0x00002dc2,0x00050041,0x00000156, 35710x00000006,0x00002b59,0x00002ad7,0x00002b53,
38990x00002dc4,0x000000fc,0x00000154,0x0004003d, 35720x00050050,0x00000007,0x00002b5a,0x00002b54,
39000x00000007,0x00002dc5,0x00002dc4,0x00050051, 35730x00002b59,0x0004007c,0x00000014,0x00002b4a,
39010x00000027,0x00002dc8,0x00003094,0x00000000, 35740x00002b5a,0x00060041,0x000000db,0x00002b41,
39020x0004007c,0x00000006,0x00002e05,0x00002dc8, 35750x00002b4a,0x000000da,0x000000da,0x0006003d,
39030x00050051,0x00000006,0x00002e1e,0x00002dc5, 35760x00000006,0x00002b42,0x00002b41,0x00000002,
39040x00000000,0x00050095,0x000000ab,0x00002e20, 35770x00000004,0x0004007c,0x00000027,0x00002b06,
39050x00002e1e,0x00002dc3,0x00050051,0x00000006, 35780x00002b42,0x00050080,0x00000006,0x00002b08,
39060x00002e21,0x00002e20,0x00000001,0x00050051, 35790x00002b01,0x0000010a,0x00050095,0x000000ab,
39070x00000006,0x00002e22,0x00002e20,0x00000000, 35800x00002b73,0x00002ad0,0x00002b08,0x00050051,
39080x00050051,0x00000006,0x00002e25,0x00002dc5, 35810x00000006,0x00002b74,0x00002b73,0x00000001,
39090x00000001,0x00050080,0x00000006,0x00002e27, 35820x00050051,0x00000006,0x00002b75,0x00002b73,
39100x00002e25,0x00002e21,0x00050050,0x00000007, 35830x00000000,0x00050080,0x00000006,0x00002b7a,
39110x00002e28,0x00002e22,0x00002e27,0x0004007c, 35840x00002ad7,0x00002b74,0x00050050,0x00000007,
39120x00000014,0x00002e18,0x00002e28,0x00060041, 35850x00002b7b,0x00002b75,0x00002b7a,0x0004007c,
39130x000000db,0x00002e10,0x00002e18,0x000000da, 35860x00000014,0x00002b6b,0x00002b7b,0x00060041,
39140x000000da,0x0005003e,0x00002e10,0x00002e05, 35870x000000db,0x00002b62,0x00002b6b,0x000000da,
39150x00000002,0x00000004,0x00050080,0x00000006, 35880x000000da,0x0006003d,0x00000006,0x00002b63,
39160x00002dcb,0x00002dc3,0x0000010a,0x00050051, 35890x00002b62,0x00000002,0x00000004,0x0004007c,
39170x00000027,0x00002dcf,0x00003094,0x00000001, 35900x00000027,0x00002b0c,0x00002b63,0x00050080,
39180x0004007c,0x00000006,0x00002e2e,0x00002dcf, 35910x00000006,0x00002b0e,0x00002b01,0x00000111,
39190x00050095,0x000000ab,0x00002e49,0x00002e1e, 35920x00050095,0x000000ab,0x00002b94,0x00002ad0,
39200x00002dcb,0x00050051,0x00000006,0x00002e4a, 35930x00002b0e,0x00050051,0x00000006,0x00002b95,
39210x00002e49,0x00000001,0x00050051,0x00000006, 35940x00002b94,0x00000001,0x00050051,0x00000006,
39220x00002e4b,0x00002e49,0x00000000,0x00050080, 35950x00002b96,0x00002b94,0x00000000,0x00050080,
39230x00000006,0x00002e50,0x00002e25,0x00002e4a, 35960x00000006,0x00002b9b,0x00002ad7,0x00002b95,
39240x00050050,0x00000007,0x00002e51,0x00002e4b, 35970x00050050,0x00000007,0x00002b9c,0x00002b96,
39250x00002e50,0x0004007c,0x00000014,0x00002e41, 35980x00002b9b,0x0004007c,0x00000014,0x00002b8c,
39260x00002e51,0x00060041,0x000000db,0x00002e39, 35990x00002b9c,0x00060041,0x000000db,0x00002b83,
39270x00002e41,0x000000da,0x000000da,0x0005003e, 36000x00002b8c,0x000000da,0x000000da,0x0006003d,
39280x00002e39,0x00002e2e,0x00000002,0x00000004, 36010x00000006,0x00002b84,0x00002b83,0x00000002,
39290x00050080,0x00000006,0x00002dd2,0x00002dc3, 36020x00000004,0x0004007c,0x00000027,0x00002b12,
39300x00000111,0x00050051,0x00000027,0x00002dd6, 36030x00002b84,0x00060050,0x0000004b,0x00002b13,
39310x00003094,0x00000002,0x0004007c,0x00000006, 36040x00002b06,0x00002b0c,0x00002b12,0x00050080,
39320x00002e57,0x00002dd6,0x00050095,0x000000ab, 36050x00000006,0x00002b15,0x00002b01,0x00000118,
39330x00002e72,0x00002e1e,0x00002dd2,0x00050051, 36060x00050095,0x000000ab,0x00002bb5,0x00002ad0,
39340x00000006,0x00002e73,0x00002e72,0x00000001, 36070x00002b15,0x00050051,0x00000006,0x00002bb6,
39350x00050051,0x00000006,0x00002e74,0x00002e72, 36080x00002bb5,0x00000001,0x00050051,0x00000006,
39360x00000000,0x00050080,0x00000006,0x00002e79, 36090x00002bb7,0x00002bb5,0x00000000,0x00050080,
39370x00002e25,0x00002e73,0x00050050,0x00000007, 36100x00000006,0x00002bbc,0x00002ad7,0x00002bb6,
39380x00002e7a,0x00002e74,0x00002e79,0x0004007c, 36110x00050050,0x00000007,0x00002bbd,0x00002bb7,
39390x00000014,0x00002e6a,0x00002e7a,0x00060041, 36120x00002bbc,0x0004007c,0x00000014,0x00002bad,
39400x000000db,0x00002e62,0x00002e6a,0x000000da, 36130x00002bbd,0x00060041,0x000000db,0x00002ba4,
39410x000000da,0x0005003e,0x00002e62,0x00002e57, 36140x00002bad,0x000000da,0x000000da,0x0006003d,
36150x00000006,0x00002ba5,0x00002ba4,0x00000002,
36160x00000004,0x0004007c,0x00000027,0x00002b19,
36170x00002ba5,0x00050080,0x00000006,0x00002b1b,
36180x00002b01,0x0000011f,0x00050095,0x000000ab,
36190x00002bd6,0x00002ad0,0x00002b1b,0x00050051,
36200x00000006,0x00002bd7,0x00002bd6,0x00000001,
36210x00050051,0x00000006,0x00002bd8,0x00002bd6,
36220x00000000,0x00050080,0x00000006,0x00002bdd,
36230x00002ad7,0x00002bd7,0x00050050,0x00000007,
36240x00002bde,0x00002bd8,0x00002bdd,0x0004007c,
36250x00000014,0x00002bce,0x00002bde,0x00060041,
36260x000000db,0x00002bc5,0x00002bce,0x000000da,
36270x000000da,0x0006003d,0x00000006,0x00002bc6,
36280x00002bc5,0x00000002,0x00000004,0x0004007c,
36290x00000027,0x00002b1f,0x00002bc6,0x00050080,
36300x00000006,0x00002b21,0x00002b01,0x00000189,
36310x00050095,0x000000ab,0x00002bf7,0x00002ad0,
36320x00002b21,0x00050051,0x00000006,0x00002bf8,
36330x00002bf7,0x00000001,0x00050051,0x00000006,
36340x00002bf9,0x00002bf7,0x00000000,0x00050080,
36350x00000006,0x00002bfe,0x00002ad7,0x00002bf8,
36360x00050050,0x00000007,0x00002bff,0x00002bf9,
36370x00002bfe,0x0004007c,0x00000014,0x00002bef,
36380x00002bff,0x00060041,0x000000db,0x00002be6,
36390x00002bef,0x000000da,0x000000da,0x0006003d,
36400x00000006,0x00002be7,0x00002be6,0x00000002,
36410x00000004,0x0004007c,0x00000027,0x00002b25,
36420x00002be7,0x00060050,0x0000004b,0x00002b26,
36430x00002b19,0x00002b1f,0x00002b25,0x000300f7,
36440x000027a9,0x00000000,0x000400fa,0x00002aee,
36450x0000279e,0x000027a9,0x000200f8,0x0000279e,
36460x00050084,0x00000006,0x000027a2,0x00000228,
36470x00002ac2,0x00050080,0x00000006,0x000027a3,
36480x00002ade,0x000027a2,0x00050080,0x00000006,
36490x000027a4,0x000027a3,0x000005d0,0x00050041,
36500x00000156,0x000027a5,0x000000fc,0x000000da,
36510x0004003d,0x00000007,0x000027a6,0x000027a5,
36520x00050051,0x00000006,0x00002c15,0x000027a6,
36530x00000000,0x00050095,0x000000ab,0x00002c17,
36540x00002c15,0x000027a4,0x00050051,0x00000006,
36550x00002c18,0x00002c17,0x00000001,0x00050051,
36560x00000006,0x00002c19,0x00002c17,0x00000000,
36570x00050051,0x00000006,0x00002c1c,0x000027a6,
36580x00000001,0x00050080,0x00000006,0x00002c1e,
36590x00002c1c,0x00002c18,0x00050050,0x00000007,
36600x00002c1f,0x00002c19,0x00002c1e,0x0004007c,
36610x00000014,0x00002c0f,0x00002c1f,0x00060041,
36620x000000db,0x00002c07,0x00002c0f,0x000000da,
36630x000000da,0x0005003e,0x00002c07,0x00002830,
36640x00000002,0x00000004,0x000200f9,0x000027a9,
36650x000200f8,0x000027a9,0x000200f9,0x000027b8,
36660x000200f8,0x000027aa,0x00050080,0x00000006,
36670x000027ae,0x0000278b,0x00002737,0x00050084,
36680x00000006,0x00002c25,0x000027ae,0x00000228,
36690x00050080,0x00000006,0x00002c26,0x0000282a,
36700x00002c25,0x000500c2,0x00000006,0x00002c27,
36710x00002c26,0x00000233,0x000500c4,0x00000006,
36720x00002c28,0x00002c27,0x0000020d,0x000500c5,
36730x00000006,0x00002c29,0x00002c28,0x00000246,
36740x00050041,0x000000fe,0x000027b1,0x000000fc,
36750x0000096c,0x0004003d,0x00000006,0x000027b2,
36760x000027b1,0x00050080,0x00000006,0x000027b4,
36770x000027b2,0x000027ae,0x00050041,0x000000fe,
36780x00002c69,0x000000fc,0x000000fd,0x0004003d,
36790x00000006,0x00002c6a,0x00002c69,0x00050084,
36800x00000006,0x00002c6b,0x0000011f,0x00002c6a,
36810x00050080,0x00000006,0x00002c6c,0x00000107,
36820x00002c6b,0x00050080,0x00000006,0x00002c72,
36830x00002c6a,0x000032a8,0x00050086,0x00000006,
36840x00002c73,0x00002c72,0x00000101,0x00050084,
36850x00000006,0x00002c65,0x00000107,0x00002c73,
36860x00050080,0x00000006,0x00002c66,0x00002c6c,
36870x00002c65,0x00050084,0x00000006,0x00002c3a,
36880x00000150,0x000027b4,0x00050080,0x00000006,
36890x00002c3b,0x00002c66,0x00002c3a,0x00050041,
36900x00000156,0x00002c3c,0x000000fc,0x00000154,
36910x0004003d,0x00000007,0x00002c3d,0x00002c3c,
36920x00050051,0x00000006,0x00002c8a,0x00002c3d,
36930x00000000,0x00050095,0x000000ab,0x00002c8c,
36940x00002c8a,0x00002c3b,0x00050051,0x00000006,
36950x00002c8d,0x00002c8c,0x00000001,0x00050051,
36960x00000006,0x00002c8e,0x00002c8c,0x00000000,
36970x00050051,0x00000006,0x00002c91,0x00002c3d,
36980x00000001,0x00050080,0x00000006,0x00002c93,
36990x00002c91,0x00002c8d,0x00050050,0x00000007,
37000x00002c94,0x00002c8e,0x00002c93,0x0004007c,
37010x00000014,0x00002c84,0x00002c94,0x00060041,
37020x000000db,0x00002c7b,0x00002c84,0x000000da,
37030x000000da,0x0006003d,0x00000006,0x00002c7c,
37040x00002c7b,0x00000002,0x00000004,0x0004007c,
37050x00000027,0x00002c40,0x00002c7c,0x00050080,
37060x00000006,0x00002c42,0x00002c3b,0x0000010a,
37070x00050095,0x000000ab,0x00002cad,0x00002c8a,
37080x00002c42,0x00050051,0x00000006,0x00002cae,
37090x00002cad,0x00000001,0x00050051,0x00000006,
37100x00002caf,0x00002cad,0x00000000,0x00050080,
37110x00000006,0x00002cb4,0x00002c91,0x00002cae,
37120x00050050,0x00000007,0x00002cb5,0x00002caf,
37130x00002cb4,0x0004007c,0x00000014,0x00002ca5,
37140x00002cb5,0x00060041,0x000000db,0x00002c9c,
37150x00002ca5,0x000000da,0x000000da,0x0006003d,
37160x00000006,0x00002c9d,0x00002c9c,0x00000002,
37170x00000004,0x0004007c,0x00000027,0x00002c46,
37180x00002c9d,0x00050080,0x00000006,0x00002c48,
37190x00002c3b,0x00000111,0x00050095,0x000000ab,
37200x00002cce,0x00002c8a,0x00002c48,0x00050051,
37210x00000006,0x00002ccf,0x00002cce,0x00000001,
37220x00050051,0x00000006,0x00002cd0,0x00002cce,
37230x00000000,0x00050080,0x00000006,0x00002cd5,
37240x00002c91,0x00002ccf,0x00050050,0x00000007,
37250x00002cd6,0x00002cd0,0x00002cd5,0x0004007c,
37260x00000014,0x00002cc6,0x00002cd6,0x00060041,
37270x000000db,0x00002cbd,0x00002cc6,0x000000da,
37280x000000da,0x0006003d,0x00000006,0x00002cbe,
37290x00002cbd,0x00000002,0x00000004,0x0004007c,
37300x00000027,0x00002c4c,0x00002cbe,0x00060050,
37310x0000004b,0x00002c4d,0x00002c40,0x00002c46,
37320x00002c4c,0x00050080,0x00000006,0x00002c4f,
37330x00002c3b,0x00000118,0x00050095,0x000000ab,
37340x00002cef,0x00002c8a,0x00002c4f,0x00050051,
37350x00000006,0x00002cf0,0x00002cef,0x00000001,
37360x00050051,0x00000006,0x00002cf1,0x00002cef,
37370x00000000,0x00050080,0x00000006,0x00002cf6,
37380x00002c91,0x00002cf0,0x00050050,0x00000007,
37390x00002cf7,0x00002cf1,0x00002cf6,0x0004007c,
37400x00000014,0x00002ce7,0x00002cf7,0x00060041,
37410x000000db,0x00002cde,0x00002ce7,0x000000da,
37420x000000da,0x0006003d,0x00000006,0x00002cdf,
37430x00002cde,0x00000002,0x00000004,0x0004007c,
37440x00000027,0x00002c53,0x00002cdf,0x00050080,
37450x00000006,0x00002c55,0x00002c3b,0x0000011f,
37460x00050095,0x000000ab,0x00002d10,0x00002c8a,
37470x00002c55,0x00050051,0x00000006,0x00002d11,
37480x00002d10,0x00000001,0x00050051,0x00000006,
37490x00002d12,0x00002d10,0x00000000,0x00050080,
37500x00000006,0x00002d17,0x00002c91,0x00002d11,
37510x00050050,0x00000007,0x00002d18,0x00002d12,
37520x00002d17,0x0004007c,0x00000014,0x00002d08,
37530x00002d18,0x00060041,0x000000db,0x00002cff,
37540x00002d08,0x000000da,0x000000da,0x0006003d,
37550x00000006,0x00002d00,0x00002cff,0x00000002,
37560x00000004,0x0004007c,0x00000027,0x00002c59,
37570x00002d00,0x00050080,0x00000006,0x00002c5b,
37580x00002c3b,0x00000189,0x00050095,0x000000ab,
37590x00002d31,0x00002c8a,0x00002c5b,0x00050051,
37600x00000006,0x00002d32,0x00002d31,0x00000001,
37610x00050051,0x00000006,0x00002d33,0x00002d31,
37620x00000000,0x00050080,0x00000006,0x00002d38,
37630x00002c91,0x00002d32,0x00050050,0x00000007,
37640x00002d39,0x00002d33,0x00002d38,0x0004007c,
37650x00000014,0x00002d29,0x00002d39,0x00060041,
37660x000000db,0x00002d20,0x00002d29,0x000000da,
37670x000000da,0x0006003d,0x00000006,0x00002d21,
37680x00002d20,0x00000002,0x00000004,0x0004007c,
37690x00000027,0x00002c5f,0x00002d21,0x00060050,
37700x0000004b,0x00002c60,0x00002c53,0x00002c59,
37710x00002c5f,0x000200f9,0x000027b8,0x000200f8,
37720x000027b8,0x000700f5,0x0000004b,0x000031a7,
37730x00002b26,0x000027a9,0x00002c60,0x000027aa,
37740x000700f5,0x0000004b,0x000031a5,0x00002b13,
37750x000027a9,0x00002c4d,0x000027aa,0x000700f5,
37760x00000006,0x000031a3,0x00002ae9,0x000027a9,
37770x00002c29,0x000027aa,0x00050041,0x000000fe,
37780x000027b9,0x000000fc,0x000009ef,0x0004003d,
37790x00000006,0x000027ba,0x000027b9,0x000500c2,
37800x00000006,0x00002d3d,0x000031a3,0x0000020d,
37810x00050041,0x000000fe,0x000027bd,0x000000fc,
37820x0000022c,0x0004003d,0x00000006,0x000027be,
37830x000027bd,0x00050086,0x00000006,0x000027bf,
37840x000027be,0x00000107,0x00050082,0x00000006,
37850x000027c0,0x00002d3d,0x000027bf,0x00050084,
37860x00000006,0x000027c1,0x0000010a,0x000027c0,
37870x00050080,0x00000006,0x000027c2,0x000027ba,
37880x000027c1,0x00050041,0x00000156,0x000027c3,
37890x000000fc,0x000000da,0x0004003d,0x00000007,
37900x000027c4,0x000027c3,0x00050051,0x00000006,
37910x00002d53,0x000027c4,0x00000000,0x00050095,
37920x000000ab,0x00002d55,0x00002d53,0x000027c2,
37930x00050051,0x00000006,0x00002d56,0x00002d55,
37940x00000001,0x00050051,0x00000006,0x00002d57,
37950x00002d55,0x00000000,0x00050051,0x00000006,
37960x00002d5a,0x000027c4,0x00000001,0x00050080,
37970x00000006,0x00002d5c,0x00002d5a,0x00002d56,
37980x00050050,0x00000007,0x00002d5d,0x00002d57,
37990x00002d5c,0x0004007c,0x00000014,0x00002d4d,
38000x00002d5d,0x00060041,0x000000db,0x00002d45,
38010x00002d4d,0x000000da,0x000000da,0x0005003e,
38020x00002d45,0x00002830,0x00000002,0x00000004,
38030x00050051,0x00000027,0x00002d61,0x000031a5,
38040x00000000,0x00050051,0x00000027,0x00002d63,
38050x000031a7,0x00000000,0x000500bc,0x0000002f,
38060x00002d64,0x00002d61,0x00002d63,0x000300f7,
38070x00002d6b,0x00000000,0x000400fa,0x00002d64,
38080x00002d65,0x00002d6b,0x000200f8,0x00002d65,
38090x00050051,0x00000027,0x00002d67,0x000031a5,
38100x00000001,0x00050051,0x00000027,0x00002d69,
38110x000031a7,0x00000001,0x000500bc,0x0000002f,
38120x00002d6a,0x00002d67,0x00002d69,0x000200f9,
38130x00002d6b,0x000200f8,0x00002d6b,0x000700f5,
38140x0000002f,0x00002d6c,0x00002d64,0x000027b8,
38150x00002d6a,0x00002d65,0x000300f7,0x00002d73,
38160x00000000,0x000400fa,0x00002d6c,0x00002d6d,
38170x00002d73,0x000200f8,0x00002d6d,0x00050051,
38180x00000027,0x00002d6f,0x000031a5,0x00000002,
38190x00050051,0x00000027,0x00002d71,0x000031a7,
38200x00000002,0x000500bc,0x0000002f,0x00002d72,
38210x00002d6f,0x00002d71,0x000200f9,0x00002d73,
38220x000200f8,0x00002d73,0x000700f5,0x0000002f,
38230x00002d74,0x00002d6c,0x00002d6b,0x00002d72,
38240x00002d6d,0x000300f7,0x000027d2,0x00000000,
38250x000400fa,0x00002d74,0x000027cb,0x000027d2,
38260x000200f8,0x000027cb,0x0007000c,0x0000004b,
38270x000027ce,0x00000001,0x00000025,0x000031a0,
38280x000031a5,0x0007000c,0x0000004b,0x000027d1,
38290x00000001,0x00000028,0x000031a2,0x000031a7,
38300x000200f9,0x000027d2,0x000200f8,0x000027d2,
38310x000700f5,0x0000004b,0x0000328f,0x000031a2,
38320x00002d73,0x000027d1,0x000027cb,0x000700f5,
38330x0000004b,0x0000328a,0x000031a0,0x00002d73,
38340x000027ce,0x000027cb,0x000200f9,0x000027d3,
38350x000200f8,0x000027d3,0x000700f5,0x0000004b,
38360x0000328e,0x000031a2,0x00002784,0x0000328f,
38370x000027d2,0x000700f5,0x0000004b,0x00003289,
38380x000031a0,0x00002784,0x0000328a,0x000027d2,
38390x000700f5,0x0000004b,0x000031e5,0x000032a7,
38400x00002784,0x000031a7,0x000027d2,0x000700f5,
38410x0000004b,0x000031e0,0x000032a5,0x00002784,
38420x000031a5,0x000027d2,0x000700f5,0x00000006,
38430x000031d9,0x00000380,0x00002784,0x000031a3,
38440x000027d2,0x000200f9,0x000027d4,0x000200f8,
38450x000027d4,0x000700f5,0x0000004b,0x0000328b,
38460x0000328c,0x00002783,0x0000328e,0x000027d3,
38470x000700f5,0x0000004b,0x00003286,0x00003287,
38480x00002783,0x00003289,0x000027d3,0x000700f5,
38490x0000004b,0x000031e2,0x000031e3,0x00002783,
38500x000031e5,0x000027d3,0x000700f5,0x0000004b,
38510x000031dd,0x000031de,0x00002783,0x000031e0,
38520x000027d3,0x000700f5,0x00000006,0x000031d2,
38530x00002839,0x00002783,0x000031d9,0x000027d3,
38540x00050084,0x00000006,0x000027d7,0x0000010a,
38550x0000319d,0x00050080,0x00000006,0x000027d8,
38560x0000282d,0x000027d7,0x00050041,0x00000156,
38570x000027d9,0x000000fc,0x000000da,0x0004003d,
38580x00000007,0x000027da,0x000027d9,0x00050051,
38590x00000006,0x00002d8b,0x000027da,0x00000000,
38600x00050095,0x000000ab,0x00002d8d,0x00002d8b,
38610x000027d8,0x00050051,0x00000006,0x00002d8e,
38620x00002d8d,0x00000001,0x00050051,0x00000006,
38630x00002d8f,0x00002d8d,0x00000000,0x00050051,
38640x00000006,0x00002d92,0x000027da,0x00000001,
38650x00050080,0x00000006,0x00002d94,0x00002d92,
38660x00002d8e,0x00050050,0x00000007,0x00002d95,
38670x00002d8f,0x00002d94,0x0004007c,0x00000014,
38680x00002d85,0x00002d95,0x00060041,0x000000db,
38690x00002d7d,0x00002d85,0x000000da,0x000000da,
38700x0005003e,0x00002d7d,0x000031d2,0x00000002,
38710x00000004,0x00050080,0x00000006,0x000027de,
38720x0000282d,0x0000011f,0x00050084,0x00000006,
38730x000027e0,0x00000150,0x0000319d,0x00050080,
38740x00000006,0x000027e1,0x000027de,0x000027e0,
38750x00050051,0x00000027,0x000027e6,0x000031dd,
38760x00000000,0x0004007c,0x00000006,0x00002d9b,
38770x000027e6,0x00050095,0x000000ab,0x00002db6,
38780x00002d8b,0x000027e1,0x00050051,0x00000006,
38790x00002db7,0x00002db6,0x00000001,0x00050051,
38800x00000006,0x00002db8,0x00002db6,0x00000000,
38810x00050080,0x00000006,0x00002dbd,0x00002d92,
38820x00002db7,0x00050050,0x00000007,0x00002dbe,
38830x00002db8,0x00002dbd,0x0004007c,0x00000014,
38840x00002dae,0x00002dbe,0x00060041,0x000000db,
38850x00002da6,0x00002dae,0x000000da,0x000000da,
38860x0005003e,0x00002da6,0x00002d9b,0x00000002,
38870x00000004,0x00050080,0x00000006,0x000027e9,
38880x000027e1,0x0000010a,0x00050051,0x00000027,
38890x000027ed,0x000031dd,0x00000001,0x0004007c,
38900x00000006,0x00002dc4,0x000027ed,0x00050095,
38910x000000ab,0x00002ddf,0x00002d8b,0x000027e9,
38920x00050051,0x00000006,0x00002de0,0x00002ddf,
38930x00000001,0x00050051,0x00000006,0x00002de1,
38940x00002ddf,0x00000000,0x00050080,0x00000006,
38950x00002de6,0x00002d92,0x00002de0,0x00050050,
38960x00000007,0x00002de7,0x00002de1,0x00002de6,
38970x0004007c,0x00000014,0x00002dd7,0x00002de7,
38980x00060041,0x000000db,0x00002dcf,0x00002dd7,
38990x000000da,0x000000da,0x0005003e,0x00002dcf,
39000x00002dc4,0x00000002,0x00000004,0x00050080,
39010x00000006,0x000027f0,0x000027e1,0x00000111,
39020x00050051,0x00000027,0x000027f4,0x000031dd,
39030x00000002,0x0004007c,0x00000006,0x00002ded,
39040x000027f4,0x00050095,0x000000ab,0x00002e08,
39050x00002d8b,0x000027f0,0x00050051,0x00000006,
39060x00002e09,0x00002e08,0x00000001,0x00050051,
39070x00000006,0x00002e0a,0x00002e08,0x00000000,
39080x00050080,0x00000006,0x00002e0f,0x00002d92,
39090x00002e09,0x00050050,0x00000007,0x00002e10,
39100x00002e0a,0x00002e0f,0x0004007c,0x00000014,
39110x00002e00,0x00002e10,0x00060041,0x000000db,
39120x00002df8,0x00002e00,0x000000da,0x000000da,
39130x0005003e,0x00002df8,0x00002ded,0x00000002,
39140x00000004,0x00050080,0x00000006,0x000027f7,
39150x000027e1,0x00000118,0x00050051,0x00000027,
39160x000027fb,0x000031e2,0x00000000,0x0004007c,
39170x00000006,0x00002e16,0x000027fb,0x00050095,
39180x000000ab,0x00002e31,0x00002d8b,0x000027f7,
39190x00050051,0x00000006,0x00002e32,0x00002e31,
39200x00000001,0x00050051,0x00000006,0x00002e33,
39210x00002e31,0x00000000,0x00050080,0x00000006,
39220x00002e38,0x00002d92,0x00002e32,0x00050050,
39230x00000007,0x00002e39,0x00002e33,0x00002e38,
39240x0004007c,0x00000014,0x00002e29,0x00002e39,
39250x00060041,0x000000db,0x00002e21,0x00002e29,
39260x000000da,0x000000da,0x0005003e,0x00002e21,
39270x00002e16,0x00000002,0x00000004,0x00050080,
39280x00000006,0x000027fe,0x000027e1,0x0000011f,
39290x00050051,0x00000027,0x00002802,0x000031e2,
39300x00000001,0x0004007c,0x00000006,0x00002e3f,
39310x00002802,0x00050095,0x000000ab,0x00002e5a,
39320x00002d8b,0x000027fe,0x00050051,0x00000006,
39330x00002e5b,0x00002e5a,0x00000001,0x00050051,
39340x00000006,0x00002e5c,0x00002e5a,0x00000000,
39350x00050080,0x00000006,0x00002e61,0x00002d92,
39360x00002e5b,0x00050050,0x00000007,0x00002e62,
39370x00002e5c,0x00002e61,0x0004007c,0x00000014,
39380x00002e52,0x00002e62,0x00060041,0x000000db,
39390x00002e4a,0x00002e52,0x000000da,0x000000da,
39400x0005003e,0x00002e4a,0x00002e3f,0x00000002,
39410x00000004,0x00050080,0x00000006,0x00002805,
39420x000027e1,0x00000189,0x00050051,0x00000027,
39430x00002809,0x000031e2,0x00000002,0x0004007c,
39440x00000006,0x00002e68,0x00002809,0x00050095,
39450x000000ab,0x00002e83,0x00002d8b,0x00002805,
39460x00050051,0x00000006,0x00002e84,0x00002e83,
39470x00000001,0x00050051,0x00000006,0x00002e85,
39480x00002e83,0x00000000,0x00050080,0x00000006,
39490x00002e8a,0x00002d92,0x00002e84,0x00050050,
39500x00000007,0x00002e8b,0x00002e85,0x00002e8a,
39510x0004007c,0x00000014,0x00002e7b,0x00002e8b,
39520x00060041,0x000000db,0x00002e73,0x00002e7b,
39530x000000da,0x000000da,0x0005003e,0x00002e73,
39540x00002e68,0x00000002,0x00000004,0x000200f9,
39550x0000280b,0x000200f8,0x0000280b,0x00050080,
39560x00000006,0x0000280d,0x0000319d,0x00000154,
39570x000200f9,0x0000272f,0x000200f8,0x0000280e,
39580x000200f9,0x0000280f,0x000200f8,0x0000280f,
39590x000700f5,0x00000006,0x0000319e,0x000000a6,
39600x0000280e,0x0000281e,0x00002813,0x000500b0,
39610x0000002f,0x00002812,0x0000319e,0x0000010a,
39620x000400f6,0x0000281f,0x00002813,0x00000000,
39630x000400fa,0x00002812,0x00002813,0x0000281f,
39640x000200f8,0x00002813,0x00050080,0x00000006,
39650x00002815,0x0000282d,0x000005c6,0x00050084,
39660x00000006,0x00002817,0x0000010a,0x0000319e,
39670x00050080,0x00000006,0x00002818,0x00002815,
39680x00002817,0x00050041,0x00000156,0x00002819,
39690x000000fc,0x000000da,0x0004003d,0x00000007,
39700x0000281a,0x00002819,0x00050051,0x00000006,
39710x00002ea1,0x0000281a,0x00000000,0x00050095,
39720x000000ab,0x00002ea3,0x00002ea1,0x00002818,
39730x00050051,0x00000006,0x00002ea4,0x00002ea3,
39740x00000001,0x00050051,0x00000006,0x00002ea5,
39750x00002ea3,0x00000000,0x00050051,0x00000006,
39760x00002ea8,0x0000281a,0x00000001,0x00050080,
39770x00000006,0x00002eaa,0x00002ea8,0x00002ea4,
39780x00050050,0x00000007,0x00002eab,0x00002ea5,
39790x00002eaa,0x0004007c,0x00000014,0x00002e9b,
39800x00002eab,0x00060041,0x000000db,0x00002e93,
39810x00002e9b,0x000000da,0x000000da,0x0005003e,
39820x00002e93,0x000000a6,0x00000002,0x00000004,
39830x00050080,0x00000006,0x0000281e,0x0000319e,
39840x00000154,0x000200f9,0x0000280f,0x000200f8,
39850x0000281f,0x00050041,0x000000fe,0x00002820,
39860x000000fc,0x0000096c,0x0004003d,0x00000006,
39870x00002821,0x00002820,0x00050080,0x00000006,
39880x00002823,0x00002821,0x00002723,0x00050041,
39890x000000fe,0x00002ef5,0x000000fc,0x000000fd,
39900x0004003d,0x00000006,0x00002ef6,0x00002ef5,
39910x00050084,0x00000006,0x00002ef7,0x0000011f,
39920x00002ef6,0x00050080,0x00000006,0x00002ef8,
39930x00000107,0x00002ef7,0x00050080,0x00000006,
39940x00002efe,0x00002ef6,0x000032a8,0x00050086,
39950x00000006,0x00002eff,0x00002efe,0x00000101,
39960x00050084,0x00000006,0x00002ef1,0x00000107,
39970x00002eff,0x00050080,0x00000006,0x00002ef2,
39980x00002ef8,0x00002ef1,0x00050084,0x00000006,
39990x00002ec2,0x00000150,0x00002823,0x00050080,
40000x00000006,0x00002ec3,0x00002ef2,0x00002ec2,
40010x00050041,0x00000156,0x00002ec4,0x000000fc,
40020x00000154,0x0004003d,0x00000007,0x00002ec5,
40030x00002ec4,0x00050051,0x00000027,0x00002ec8,
40040x000031a0,0x00000000,0x0004007c,0x00000006,
40050x00002f05,0x00002ec8,0x00050051,0x00000006,
40060x00002f1e,0x00002ec5,0x00000000,0x00050095,
40070x000000ab,0x00002f20,0x00002f1e,0x00002ec3,
40080x00050051,0x00000006,0x00002f21,0x00002f20,
40090x00000001,0x00050051,0x00000006,0x00002f22,
40100x00002f20,0x00000000,0x00050051,0x00000006,
40110x00002f25,0x00002ec5,0x00000001,0x00050080,
40120x00000006,0x00002f27,0x00002f25,0x00002f21,
40130x00050050,0x00000007,0x00002f28,0x00002f22,
40140x00002f27,0x0004007c,0x00000014,0x00002f18,
40150x00002f28,0x00060041,0x000000db,0x00002f10,
40160x00002f18,0x000000da,0x000000da,0x0005003e,
40170x00002f10,0x00002f05,0x00000002,0x00000004,
40180x00050080,0x00000006,0x00002ecb,0x00002ec3,
40190x0000010a,0x00050051,0x00000027,0x00002ecf,
40200x000031a0,0x00000001,0x0004007c,0x00000006,
40210x00002f2e,0x00002ecf,0x00050095,0x000000ab,
40220x00002f49,0x00002f1e,0x00002ecb,0x00050051,
40230x00000006,0x00002f4a,0x00002f49,0x00000001,
40240x00050051,0x00000006,0x00002f4b,0x00002f49,
40250x00000000,0x00050080,0x00000006,0x00002f50,
40260x00002f25,0x00002f4a,0x00050050,0x00000007,
40270x00002f51,0x00002f4b,0x00002f50,0x0004007c,
40280x00000014,0x00002f41,0x00002f51,0x00060041,
40290x000000db,0x00002f39,0x00002f41,0x000000da,
40300x000000da,0x0005003e,0x00002f39,0x00002f2e,
39420x00000002,0x00000004,0x00050080,0x00000006, 40310x00000002,0x00000004,0x00050080,0x00000006,
39430x00002dd9,0x00002dc3,0x00000118,0x00050051, 40320x00002ed2,0x00002ec3,0x00000111,0x00050051,
39440x00000027,0x00002ddd,0x00003096,0x00000000, 40330x00000027,0x00002ed6,0x000031a0,0x00000002,
39450x0004007c,0x00000006,0x00002e80,0x00002ddd, 40340x0004007c,0x00000006,0x00002f57,0x00002ed6,
39460x00050095,0x000000ab,0x00002e9b,0x00002e1e, 40350x00050095,0x000000ab,0x00002f72,0x00002f1e,
39470x00002dd9,0x00050051,0x00000006,0x00002e9c, 40360x00002ed2,0x00050051,0x00000006,0x00002f73,
39480x00002e9b,0x00000001,0x00050051,0x00000006, 40370x00002f72,0x00000001,0x00050051,0x00000006,
39490x00002e9d,0x00002e9b,0x00000000,0x00050080, 40380x00002f74,0x00002f72,0x00000000,0x00050080,
39500x00000006,0x00002ea2,0x00002e25,0x00002e9c, 40390x00000006,0x00002f79,0x00002f25,0x00002f73,
39510x00050050,0x00000007,0x00002ea3,0x00002e9d, 40400x00050050,0x00000007,0x00002f7a,0x00002f74,
39520x00002ea2,0x0004007c,0x00000014,0x00002e93, 40410x00002f79,0x0004007c,0x00000014,0x00002f6a,
39530x00002ea3,0x00060041,0x000000db,0x00002e8b, 40420x00002f7a,0x00060041,0x000000db,0x00002f62,
39540x00002e93,0x000000da,0x000000da,0x0005003e, 40430x00002f6a,0x000000da,0x000000da,0x0005003e,
39550x00002e8b,0x00002e80,0x00000002,0x00000004, 40440x00002f62,0x00002f57,0x00000002,0x00000004,
39560x00050080,0x00000006,0x00002de0,0x00002dc3, 40450x00050080,0x00000006,0x00002ed9,0x00002ec3,
39570x0000011f,0x00050051,0x00000027,0x00002de4, 40460x00000118,0x00050051,0x00000027,0x00002edd,
39580x00003096,0x00000001,0x0004007c,0x00000006, 40470x000031a2,0x00000000,0x0004007c,0x00000006,
39590x00002ea9,0x00002de4,0x00050095,0x000000ab, 40480x00002f80,0x00002edd,0x00050095,0x000000ab,
39600x00002ec4,0x00002e1e,0x00002de0,0x00050051, 40490x00002f9b,0x00002f1e,0x00002ed9,0x00050051,
39610x00000006,0x00002ec5,0x00002ec4,0x00000001, 40500x00000006,0x00002f9c,0x00002f9b,0x00000001,
39620x00050051,0x00000006,0x00002ec6,0x00002ec4, 40510x00050051,0x00000006,0x00002f9d,0x00002f9b,
39630x00000000,0x00050080,0x00000006,0x00002ecb, 40520x00000000,0x00050080,0x00000006,0x00002fa2,
39640x00002e25,0x00002ec5,0x00050050,0x00000007, 40530x00002f25,0x00002f9c,0x00050050,0x00000007,
39650x00002ecc,0x00002ec6,0x00002ecb,0x0004007c, 40540x00002fa3,0x00002f9d,0x00002fa2,0x0004007c,
39660x00000014,0x00002ebc,0x00002ecc,0x00060041, 40550x00000014,0x00002f93,0x00002fa3,0x00060041,
39670x000000db,0x00002eb4,0x00002ebc,0x000000da, 40560x000000db,0x00002f8b,0x00002f93,0x000000da,
39680x000000da,0x0005003e,0x00002eb4,0x00002ea9, 40570x000000da,0x0005003e,0x00002f8b,0x00002f80,
39690x00000002,0x00000004,0x00050080,0x00000006, 40580x00000002,0x00000004,0x00050080,0x00000006,
39700x00002de7,0x00002dc3,0x00000189,0x00050051, 40590x00002ee0,0x00002ec3,0x0000011f,0x00050051,
39710x00000027,0x00002deb,0x00003096,0x00000002, 40600x00000027,0x00002ee4,0x000031a2,0x00000001,
39720x0004007c,0x00000006,0x00002ed2,0x00002deb, 40610x0004007c,0x00000006,0x00002fa9,0x00002ee4,
39730x00050095,0x000000ab,0x00002eed,0x00002e1e, 40620x00050095,0x000000ab,0x00002fc4,0x00002f1e,
39740x00002de7,0x00050051,0x00000006,0x00002eee, 40630x00002ee0,0x00050051,0x00000006,0x00002fc5,
39750x00002eed,0x00000001,0x00050051,0x00000006, 40640x00002fc4,0x00000001,0x00050051,0x00000006,
39760x00002eef,0x00002eed,0x00000000,0x00050080, 40650x00002fc6,0x00002fc4,0x00000000,0x00050080,
39770x00000006,0x00002ef4,0x00002e25,0x00002eee, 40660x00000006,0x00002fcb,0x00002f25,0x00002fc5,
39780x00050050,0x00000007,0x00002ef5,0x00002eef, 40670x00050050,0x00000007,0x00002fcc,0x00002fc6,
39790x00002ef4,0x0004007c,0x00000014,0x00002ee5, 40680x00002fcb,0x0004007c,0x00000014,0x00002fbc,
39800x00002ef5,0x00060041,0x000000db,0x00002edd, 40690x00002fcc,0x00060041,0x000000db,0x00002fb4,
39810x00002ee5,0x000000da,0x000000da,0x0005003e, 40700x00002fbc,0x000000da,0x000000da,0x0005003e,
39820x00002edd,0x00002ed2,0x00000002,0x00000004, 40710x00002fb4,0x00002fa9,0x00000002,0x00000004,
39830x000200f9,0x00000bb0,0x000200f8,0x00000bb0, 40720x00050080,0x00000006,0x00002ee7,0x00002ec3,
39840x000200f9,0x00000ba7,0x000200f8,0x00000ba7, 40730x00000189,0x00050051,0x00000027,0x00002eeb,
39850x000200f9,0x00000b9e,0x000200f8,0x00000b9e, 40740x000031a2,0x00000002,0x0004007c,0x00000006,
39860x000200f9,0x00000b95,0x000200f8,0x00000b95, 40750x00002fd2,0x00002eeb,0x00050095,0x000000ab,
39870x000200f9,0x00000b6f,0x000200f8,0x00000b6f, 40760x00002fed,0x00002f1e,0x00002ee7,0x00050051,
39880x000200f9,0x00000b5a,0x000200f8,0x00000b5a, 40770x00000006,0x00002fee,0x00002fed,0x00000001,
39890x000200f9,0x00000bb6,0x000200f8,0x00000bb6, 40780x00050051,0x00000006,0x00002fef,0x00002fed,
39900x000100fd,0x00010038} 40790x00000000,0x00050080,0x00000006,0x00002ff4,
40800x00002f25,0x00002fee,0x00050050,0x00000007,
40810x00002ff5,0x00002fef,0x00002ff4,0x0004007c,
40820x00000014,0x00002fe5,0x00002ff5,0x00060041,
40830x000000db,0x00002fdd,0x00002fe5,0x000000da,
40840x000000da,0x0005003e,0x00002fdd,0x00002fd2,
40850x00000002,0x00000004,0x000200f9,0x00000bed,
40860x000200f8,0x00000bed,0x000200f9,0x00000be4,
40870x000200f8,0x00000be4,0x000200f9,0x00000bdb,
40880x000200f8,0x00000bdb,0x000200f9,0x00000bd2,
40890x000200f8,0x00000bd2,0x000200f9,0x00000bac,
40900x000200f8,0x00000bac,0x000200f9,0x00000b97,
40910x000200f8,0x00000b97,0x000200f9,0x00000bf3,
40920x000200f8,0x00000bf3,0x000100fd,0x00010038}
diff --git a/runtime/test/bink_audio_test.cpp b/runtime/test/bink_audio_test.cpp
index 2156e5eff..8616d9165 100644
--- a/runtime/test/bink_audio_test.cpp
+++ b/runtime/test/bink_audio_test.cpp
@@ -237,7 +237,7 @@ int main() {
237 header.flags[i]); 237 header.flags[i]);
238 if (!header.audio_tracks) { 238 if (!header.audio_tracks) {
239 std::printf("SKIP (movie has no audio tracks)\n"); 239 std::printf("SKIP (movie has no audio tracks)\n");
240 return 0; 240 return 77; // nothing was checked: a ctest SKIP (SKIP_RETURN_CODE 77), not a pass
241 } 241 }
242 242
243 try { 243 try {
diff --git a/runtime/test/check_texture_readback_sync.cmake b/runtime/test/check_texture_readback_sync.cmake
index f82156789..81ef3f24e 100644
--- a/runtime/test/check_texture_readback_sync.cmake
+++ b/runtime/test/check_texture_readback_sync.cmake
@@ -1,10 +1,11 @@
1# Run with -DTOOL=<vk_texture_test> -DSPIRV=<directory built by the GPU suite> 1# Run with -DTOOL=<vk_texture_test> -DSPIRV=<directory built by the GPU suite>
2# -DOUTPUT=<readback file> -P runtime/test/check_texture_readback_sync.cmake. 2# -DOUTPUT=<readback file> -P runtime/test/check_texture_readback_sync.cmake.
3# For a cross build, pass the configured emulator as "-DRUNNER=<emulator;args>".
3# Requires the Khronos validation layer and a device that supports the texture harness. 4# Requires the Khronos validation layer and a device that supports the texture harness.
4execute_process( 5execute_process(
5 COMMAND "${CMAKE_COMMAND}" -E env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation 6 COMMAND "${CMAKE_COMMAND}" -E env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation
6 VK_LOADER_DEBUG=layer VK_LAYER_ENABLES=VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT 7 VK_LOADER_DEBUG=layer VK_LAYER_ENABLES=VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT
7 "${TOOL}" cube "${OUTPUT}" 8 ${RUNNER} "${TOOL}" cube "${OUTPUT}"
8 WORKING_DIRECTORY "${SPIRV}" TIMEOUT 90 9 WORKING_DIRECTORY "${SPIRV}" TIMEOUT 90
9 RESULT_VARIABLE code OUTPUT_VARIABLE log ERROR_VARIABLE log) 10 RESULT_VARIABLE code OUTPUT_VARIABLE log ERROR_VARIABLE log)
10if(NOT code STREQUAL "0" OR NOT log MATCHES "vk_texture_test cube: PASSED" 11if(NOT code STREQUAL "0" OR NOT log MATCHES "vk_texture_test cube: PASSED"
diff --git a/runtime/test/check_vk_pipeline_cli.cmake b/runtime/test/check_vk_pipeline_cli.cmake
index 4800d2605..8c98ba1eb 100644
--- a/runtime/test/check_vk_pipeline_cli.cmake
+++ b/runtime/test/check_vk_pipeline_cli.cmake
@@ -28,6 +28,7 @@ execute_process(COMMAND ${RUNNER} "${TOOL}" "${TEST_DIR}"
28 --jobs 2 --start 3 --count 0 --max-bytes 0 --large-module-bytes 0 28 --jobs 2 --start 3 --count 0 --max-bytes 0 --large-module-bytes 0
29 --slow 0.5 --stage cs --stats report.csv 29 --slow 0.5 --stage cs --stats report.csv
30 RESULT_VARIABLE code OUTPUT_VARIABLE log ERROR_VARIABLE log TIMEOUT 5) 30 RESULT_VARIABLE code OUTPUT_VARIABLE log ERROR_VARIABLE log TIMEOUT 5)
31if(NOT code STREQUAL "2" OR NOT log MATCHES "malformed JSON") 31# The index parser names the file and where it stopped (#1847: "index.json: expected '{' at byte 0").
32if(NOT code STREQUAL "2" OR NOT log MATCHES "index.json: ")
32 message(FATAL_ERROR "Expected valid arguments to reach the malformed index, got ${code}\n${log}") 33 message(FATAL_ERROR "Expected valid arguments to reach the malformed index, got ${code}\n${log}")
33endif() 34endif()
diff --git a/runtime/test/d3d12_buffer_uav_test.cpp b/runtime/test/d3d12_buffer_uav_test.cpp
new file mode 100644
index 000000000..cf936012a
--- /dev/null
+++ b/runtime/test/d3d12_buffer_uav_test.cpp
@@ -0,0 +1,699 @@
1// Typed buffer UAVs and UAV counters (docs/d3d12_vulkan.md section 3.4, "Buffer UAVs"), through the D3D12 API on the
2// proxy, with compute shaders that are translator output (test/shaders/cs_buf_typed.asm and cs_buf_counter.asm,
3// hand-written RDNA2), plus D3D12-only behaviour compared with the host runtime on the same adapter.
4//
5// Part 1, one DIRECT list: a compute root signature (four root constants and a table of six UAVs), two compute PSOs.
6// cs_buf_typed writes typed buffer views (R32_UINT with an atomic add, R16G16B16A16_FLOAT, R8G8B8A8_UNORM from
7// FirstElement 16, R32G32B32A32_UINT, R32_SINT) and reads an R32_FLOAT view. Two views are shorter
8// than the dispatch (240 and 250 elements of 256): the V#'s NUM_RECORDS is the bound, so stores past
9// it leave the buffer's sentinel and loads past it give 0.
10// cs_buf_counter a structured UAV with a counter at CounterOffsetInBytes 4096 of another buffer: 256 lanes append
11// (buffer_atomic_add on the counter V# in the slot's upper half, store at the returned index), then
12// 128 lanes consume (buffer_atomic_sub, load the record just below). "CopyStructureCount" in D3D12
13// is CopyBufferRegion of the counter's 4 bytes into a buffer: read after the append (256) and after
14// the consume (128). Lane order is up to the GPU, so records are compared as sets.
15// Everything is compared with a CPU reference, word by word, error 0.
16// Part 2, the layer's device (no proxy) and the host runtime on the SAME adapter (LUID): typed buffer UAVs created with
17// CreateUnorderedAccessView and cleared with ClearUnorderedAccessViewUint / Float (thirteen formats, sub-ranges, an
18// element range ending off a word boundary), and a structured UAV with a counter: a clear of the structured view and
19// of the counter's own word through a raw view. The bytes read back are compared with the host's; with no host D3D12
20// the layer's are compared with the model of uav_clear.h.
21// Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation (0 errors required).
22#include "vk_test_device.h"
23#include "d3d12_test_shaders.h"
24#include "d3d12_copy_compare.h"
25#include "../shims/d3d12_com.h"
26#include "../shims/d3d12_xs_device.h"
27#include "../src/gfx10_descriptors.h"
28#include "../src/shader_library.h"
29#include "../src/uav_clear.h"
30
31#include <algorithm>
32#include <array>
33#include <bit>
34#include <cmath>
35#include <cstring>
36
37#ifndef LEONIDA_TEST_BUFFER_UAV_DIR
38#error "LEONIDA_TEST_BUFFER_UAV_DIR must name the folder build.py wrote (spirv/index.json, fssm/cs_*.fssm)"
39#endif
40
41#define EXPECT(condition) do { \
42 if (!(condition)) { std::fprintf(stderr, "line %d: %s\n", __LINE__, #condition); return 1; } \
43} while (0)
44
45using namespace d3d12test;
46using XboxHeapHandleFn = std::uint64_t(WINAPI*)(void* heap); // heap slots 9/10: handle in RAX
47namespace g = leonida::gfx10;
48namespace uc = leonida::uav_clear;
49
50namespace {
51
52std::vector<std::uint8_t> read_file(const std::filesystem::path& path) {
53 std::ifstream in(path, std::ios::binary);
54 return {std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>()};
55}
56
57constexpr UINT lanes = 256;
58constexpr UINT seed = 0x00c0ffee, multiplier = 0x01000193;
59constexpr std::uint32_t sentinel = 0xa5a5a5a5u;
60constexpr UINT out0_elements = 240, in4_elements = 250, out2_first = 16;
61constexpr UINT64 counter_offset = 4096, counter_buffer_bytes = 8192;
62constexpr UINT consumed = 128;
63
64// The buffers of part 1: sizes, in the order of their slices of the upload and of the readback buffer.
65enum Buf { out0, out1, out2, out3, in4, out5, records, counter, consumed_out, buffer_count };
66constexpr UINT64 sizes[buffer_count] = {lanes * 4, lanes * 8, (out2_first + lanes) * 4, lanes * 16, lanes * 4,
67 lanes * 4, lanes * 8, counter_buffer_bytes, consumed * 8};
68constexpr UINT64 slice(Buf which) {
69 UINT64 at = 0;
70 for (int i = 0; i < which; ++i) at += (sizes[i] + 255) / 256 * 256;
71 return at;
72}
73constexpr UINT64 total_bytes = slice(consumed_out) + (sizes[consumed_out] + 255) / 256 * 256;
74constexpr UINT64 count_after_append = total_bytes, count_after_consume = total_bytes + 4;
75constexpr UINT64 readback_bytes = total_bytes + 8;
76
77std::uint16_t half_bits(float value) { // exact for the values the reference uses (finite, in the normal range)
78 const std::uint32_t f = std::bit_cast<std::uint32_t>(value);
79 if (!(f & 0x7fffffffu)) return std::uint16_t(f >> 16);
80 const int exponent = int((f >> 23) & 0xff) - 127 + 15;
81 return std::uint16_t(((f >> 16) & 0x8000) | (exponent << 10) | ((f >> 13) & 0x3ff));
82}
83
84float input_value(UINT g) { return float(g) - 100.5f; }
85
86struct Reference {
87 std::vector<std::uint32_t> words[buffer_count];
88};
89
90Reference reference() {
91 Reference ref;
92 for (int i = 0; i < buffer_count; ++i) ref.words[i].assign(sizes[i] / 4, sentinel);
93 for (UINT g = 0; g < lanes; ++g) {
94 if (g < out0_elements) ref.words[out0][g] = (g * multiplier + seed) + g;
95 const float x = float(g);
96 ref.words[out1][g * 2] = half_bits(x) | std::uint32_t(half_bits(x + 0.5f)) << 16;
97 ref.words[out1][g * 2 + 1] = half_bits(-1.0f - x) | std::uint32_t(half_bits(0.25f)) << 16;
98 const std::uint32_t k = g & 255;
99 ref.words[out2][out2_first + g] = k | (255 - k) << 8 | 0xff000000u;
100 ref.words[out3][g * 4 + 0] = g;
101 ref.words[out3][g * 4 + 1] = g ^ 0xffff;
102 ref.words[out3][g * 4 + 2] = g * 7;
103 ref.words[out3][g * 4 + 3] = 0xa5;
104 ref.words[in4][g] = std::bit_cast<std::uint32_t>(input_value(g));
105 ref.words[out5][g] = g < in4_elements ? std::uint32_t(int(2.0f * input_value(g))) : 0;
106 }
107 return ref;
108}
109
110D3D12_RESOURCE_BARRIER uav_barrier(ID3D12Resource* resource) {
111 D3D12_RESOURCE_BARRIER b{};
112 b.Type = D3D12_RESOURCE_BARRIER_TYPE_UAV;
113 b.UAV.pResource = resource;
114 return b;
115}
116
117D3D12_UNORDERED_ACCESS_VIEW_DESC buffer_view(DXGI_FORMAT format, UINT64 first, UINT count, UINT stride,
118 UINT64 counter_at = 0, D3D12_BUFFER_UAV_FLAGS flags = D3D12_BUFFER_UAV_FLAG_NONE) {
119 D3D12_UNORDERED_ACCESS_VIEW_DESC view{};
120 view.Format = format;
121 view.ViewDimension = D3D12_UAV_DIMENSION_BUFFER;
122 view.Buffer = {first, count, stride, counter_at, flags};
123 return view;
124}
125
126// What a V# in a slot says, as the shader loads it.
127struct Vsharp {
128 std::uint64_t address;
129 std::uint32_t stride, records, format, oob;
130};
131Vsharp vsharp(const void* slot_pointer, unsigned dword = 0) {
132 std::uint32_t w[4];
133 std::memcpy(w, static_cast<const std::uint32_t*>(slot_pointer) + dword, sizeof(w));
134 return {(std::uint64_t(w[1] & 0xffff) << 32) | w[0], w[1] >> 16 & 0x3fff, w[2], w[3] >> 12 & 0x7f, w[3] >> 28 & 3};
135}
136
137// ---- part 1 -----------------------------------------------------------------------------------------------------
138
139int run_shaders(vktest::Device& d, const std::filesystem::path& root_dir, unsigned& words_checked) {
140 leonida::ShaderLibrary library;
141 EXPECT(library.load((root_dir / "spirv").string()));
142 const auto program = [&](const char* name) { return read_file(root_dir / "fssm" / (std::string(name) + ".fssm")); };
143 const auto typed_fssm = program("cs_buf_typed"), counter_fssm = program("cs_buf_counter");
144 EXPECT(typed_fssm.size() >= 0x150 && counter_fssm.size() >= 0x150 && typed_fssm != counter_fssm);
145 EXPECT(library.find("cs", leonida::sha256_hex(typed_fssm)) && library.find("cs", leonida::sha256_hex(counter_fssm)));
146 const auto typed_container = shader_container(typed_fssm), counter_container = shader_container(counter_fssm);
147
148 rt::d3d12::VulkanDeviceInfo info{};
149 info.get_instance_proc = d.instance_proc;
150 info.instance = d.instance;
151 info.physical = d.physical;
152 info.device = d.device;
153 info.queue = d.queue;
154 info.queue_family = d.family;
155 info.buffer_device_address = true;
156 info.bindless = d.bindless;
157 info.bindless_partially_bound = d.partially_bound;
158 info.image_view_min_lod = d.image_view_min_lod;
159 info.shader_dir = (root_dir / "spirv").string();
160 ID3D12Device* inner = nullptr;
161 EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device(info, IID_PPV_ARGS(&inner))));
162 Ref<ID3D12Device> device;
163 EXPECT(SUCCEEDED(rt::d3d12_xs::create_device_proxy(inner, __uuidof(ID3D12Device),
164 reinterpret_cast<void**>(&device.p))));
165 rt::d3d12::set_device_outer(inner, device.p);
166 EXPECT(rt::d3d12::bindless_set(device.p) != VK_NULL_HANDLE);
167
168 D3D12_DESCRIPTOR_RANGE uav_range{D3D12_DESCRIPTOR_RANGE_TYPE_UAV, 6, 0, 0, 0};
169 D3D12_ROOT_PARAMETER params[2] = {};
170 params[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS;
171 params[0].Constants = {0, 0, 4};
172 params[0].ShaderVisibility = D3D12_SHADER_VISIBILITY_ALL;
173 params[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;
174 params[1].DescriptorTable = {1, &uav_range};
175 params[1].ShaderVisibility = D3D12_SHADER_VISIBILITY_ALL;
176 D3D12_VERSIONED_ROOT_SIGNATURE_DESC root_desc{};
177 root_desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_0;
178 root_desc.Desc_1_0 = {2, params, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_NONE};
179 const auto root_blob = serialize_root_signature(root_desc);
180 EXPECT(!root_blob.empty());
181 Ref<ID3D12RootSignature> root;
182 EXPECT(SUCCEEDED(device->CreateRootSignature(0, root_blob.data(), root_blob.size(), IID_PPV_ARGS(&root.p))));
183 D3D12_COMPUTE_PIPELINE_STATE_DESC pso_desc{};
184 pso_desc.pRootSignature = root.p;
185 pso_desc.CS = {typed_container.data(), typed_container.size()};
186 Ref<ID3D12PipelineState> pso_typed, pso_counter;
187 EXPECT(SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso_typed.p))));
188 pso_desc.CS = {counter_container.data(), counter_container.size()};
189 EXPECT(SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso_counter.p))));
190
191 const D3D12_HEAP_PROPERTIES default_heap{D3D12_HEAP_TYPE_DEFAULT}, upload_heap{D3D12_HEAP_TYPE_UPLOAD},
192 readback_heap{D3D12_HEAP_TYPE_READBACK};
193 Ref<ID3D12Resource> upload, readback, buf[buffer_count];
194 const auto create = [&](Ref<ID3D12Resource>& out, const D3D12_HEAP_PROPERTIES& heap, UINT64 bytes,
195 D3D12_RESOURCE_FLAGS flags, D3D12_RESOURCE_STATES state) {
196 const auto desc = buffer_desc(bytes, flags);
197 return SUCCEEDED(device->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &desc, state, nullptr,
198 IID_PPV_ARGS(&out.p)));
199 };
200 EXPECT(create(upload, upload_heap, total_bytes, D3D12_RESOURCE_FLAG_NONE, D3D12_RESOURCE_STATE_GENERIC_READ));
201 EXPECT(create(readback, readback_heap, readback_bytes, D3D12_RESOURCE_FLAG_NONE, D3D12_RESOURCE_STATE_COPY_DEST));
202 for (int i = 0; i < buffer_count; ++i)
203 EXPECT(create(buf[i], default_heap, sizes[i], D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS,
204 D3D12_RESOURCE_STATE_COPY_DEST));
205 Reference want = reference();
206 {
207 std::uint8_t* mapped = nullptr;
208 EXPECT(SUCCEEDED(upload->Map(0, nullptr, reinterpret_cast<void**>(&mapped))));
209 for (UINT64 i = 0; i < total_bytes / 4; ++i) std::memcpy(mapped + i * 4, &sentinel, 4);
210 // The input buffer holds floats; the counter's own word starts at 0 (the rest of its buffer is sentinel).
211 std::memcpy(mapped + slice(in4), want.words[in4].data(), sizes[in4]);
212 std::memset(mapped + slice(counter) + counter_offset, 0, 4);
213 upload->Unmap(0, nullptr);
214 }
215
216 // The table: slots 0..5 typed views for cs_buf_typed; slot 6 a structured UAV with a counter, slot 7 a raw output
217 // for cs_buf_counter (its table starts at slot 6).
218 const D3D12_DESCRIPTOR_HEAP_DESC heap_desc{D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, 12,
219 D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE, 0};
220 Ref<ID3D12DescriptorHeap> heap;
221 EXPECT(SUCCEEDED(device->CreateDescriptorHeap(&heap_desc, IID_PPV_ARGS(&heap.p))));
222 const std::uint64_t cpu = reinterpret_cast<XboxHeapHandleFn>(slot(heap.p, 9))(heap.p);
223 const std::uint64_t gpu = reinterpret_cast<XboxHeapHandleFn>(slot(heap.p, 10))(heap.p);
224 const UINT step = device->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
225 EXPECT(cpu && gpu >= 0x10000 && gpu < (1ull << 32) && step == 32); // the shaders step 32 bytes a slot
226 const auto handle = [&](UINT i) { return D3D12_CPU_DESCRIPTOR_HANDLE{SIZE_T(cpu + std::uint64_t(i) * step)}; };
227 const auto make = [&](UINT i, Buf which, const D3D12_UNORDERED_ACCESS_VIEW_DESC& view, ID3D12Resource* counter_res = nullptr) {
228 device->CreateUnorderedAccessView(buf[which].p, counter_res, &view, handle(i));
229 };
230 make(0, out0, buffer_view(DXGI_FORMAT_R32_UINT, 0, out0_elements, 0));
231 make(1, out1, buffer_view(DXGI_FORMAT_R16G16B16A16_FLOAT, 0, lanes, 0));
232 make(2, out2, buffer_view(DXGI_FORMAT_R8G8B8A8_UNORM, out2_first, lanes, 0));
233 make(3, out3, buffer_view(DXGI_FORMAT_R32G32B32A32_UINT, 0, lanes, 0));
234 make(4, in4, buffer_view(DXGI_FORMAT_R32_FLOAT, 0, in4_elements, 0));
235 make(5, out5, buffer_view(DXGI_FORMAT_R32_SINT, 0, lanes, 0));
236 make(6, records, buffer_view(DXGI_FORMAT_UNKNOWN, 0, lanes, 8, counter_offset), buf[counter].p);
237 make(7, consumed_out, buffer_view(DXGI_FORMAT_R32_TYPELESS, 0, consumed * 2, 0, 0, D3D12_BUFFER_UAV_FLAG_RAW));
238
239 // The V#s the shaders load: format code, element size as stride, element count, OOB_SELECT 1 (structured); the
240 // R8G8B8A8 view starts 16 elements in; the counter V# is raw (stride 0, 4 bytes, OOB_SELECT 3) in the slot's upper half.
241 const auto at = [&](UINT i) { return reinterpret_cast<const void*>(handle(i).ptr); };
242 const auto expect_typed = [&](UINT i, Buf which, UINT code, UINT bytes, UINT elements, UINT first) {
243 const Vsharp v = vsharp(at(i));
244 return v.address == buf[which]->GetGPUVirtualAddress() + UINT64(first) * bytes && v.stride == bytes &&
245 v.records == elements && v.format == code && v.oob == 1;
246 };
247 EXPECT(expect_typed(0, out0, 20, 4, out0_elements, 0)); // GFX10_FORMAT_32_UINT
248 EXPECT(expect_typed(1, out1, 71, 8, lanes, 0)); // 16_16_16_16_FLOAT
249 EXPECT(expect_typed(2, out2, 56, 4, lanes, out2_first)); // 8_8_8_8_UNORM
250 EXPECT(expect_typed(3, out3, 75, 16, lanes, 0)); // 32_32_32_32_UINT
251 EXPECT(expect_typed(4, in4, 22, 4, in4_elements, 0)); // 32_FLOAT
252 EXPECT(expect_typed(5, out5, 21, 4, lanes, 0)); // 32_SINT
253 {
254 const Vsharp v = vsharp(at(6)), c = vsharp(at(6), 4);
255 EXPECT(v.address == buf[records]->GetGPUVirtualAddress() && v.stride == 8 && v.records == lanes && v.format == 0 &&
256 v.oob == 0);
257 EXPECT(c.address == buf[counter]->GetGPUVirtualAddress() + counter_offset && c.stride == 0 && c.records == 4 &&
258 c.format == 0 && c.oob == 3);
259 const Vsharp r = vsharp(at(7));
260 EXPECT(r.address == buf[consumed_out]->GetGPUVirtualAddress() && r.stride == 0 && r.records == consumed * 8 &&
261 r.oob == 3);
262 // A view with no counter leaves the slot's upper half zero.
263 const Vsharp none = vsharp(at(7), 4);
264 EXPECT(!none.address && !none.records);
265 }
266
267 D3D12_COMMAND_QUEUE_DESC queue_desc{};
268 queue_desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT;
269 Ref<ID3D12CommandQueue> queue;
270 EXPECT(SUCCEEDED(device->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&queue.p))));
271 Ref<ID3D12CommandAllocator> allocator;
272 Ref<ID3D12GraphicsCommandList> list;
273 Ref<ID3D12Fence> fence;
274 EXPECT(SUCCEEDED(device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&allocator.p))));
275 EXPECT(SUCCEEDED(device->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, allocator.p, nullptr,
276 IID_PPV_ARGS(&list.p))));
277 EXPECT(SUCCEEDED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence.p))));
278
279 constexpr auto uav_state = D3D12_RESOURCE_STATE_UNORDERED_ACCESS;
280 for (int i = 0; i < buffer_count; ++i) list->CopyBufferRegion(buf[i].p, 0, upload.p, slice(Buf(i)), sizes[i]);
281 D3D12_RESOURCE_BARRIER barriers[buffer_count];
282 for (int i = 0; i < buffer_count; ++i) barriers[i] = transition(buf[i].p, D3D12_RESOURCE_STATE_COPY_DEST, uav_state);
283 list->ResourceBarrier(buffer_count, barriers);
284 ID3D12DescriptorHeap* heaps[] = {heap.p};
285 list->SetDescriptorHeaps(1, heaps);
286 list->SetComputeRootSignature(root.p);
287 const auto constants = [&](std::uint32_t a, std::uint32_t b) {
288 const std::uint32_t values[4] = {a, b, 0, 0};
289 list->SetComputeRoot32BitConstants(0, 4, values, 0);
290 };
291 list->SetPipelineState(pso_typed.p);
292 constants(seed, multiplier);
293 list->SetComputeRootDescriptorTable(1, D3D12_GPU_DESCRIPTOR_HANDLE{gpu});
294 list->Dispatch(lanes / 64, 1, 1);
295 list->SetPipelineState(pso_counter.p);
296 constants(0, 0); // append
297 list->SetComputeRootDescriptorTable(1, D3D12_GPU_DESCRIPTOR_HANDLE{gpu + 6ull * step});
298 list->Dispatch(lanes / 64, 1, 1);
299 D3D12_RESOURCE_BARRIER sync[2] = {uav_barrier(buf[records].p), uav_barrier(buf[counter].p)};
300 list->ResourceBarrier(2, sync);
301 // CopyStructureCount: the counter's 4 bytes into a buffer, after the append.
302 D3D12_RESOURCE_BARRIER to_copy = transition(buf[counter].p, uav_state, D3D12_RESOURCE_STATE_COPY_SOURCE);
303 list->ResourceBarrier(1, &to_copy);
304 list->CopyBufferRegion(readback.p, count_after_append, buf[counter].p, counter_offset, 4);
305 D3D12_RESOURCE_BARRIER back = transition(buf[counter].p, D3D12_RESOURCE_STATE_COPY_SOURCE, uav_state);
306 list->ResourceBarrier(1, &back);
307 constants(1, 0); // consume
308 list->Dispatch(consumed / 64, 1, 1);
309 for (int i = 0; i < buffer_count; ++i) barriers[i] = transition(buf[i].p, uav_state, D3D12_RESOURCE_STATE_COPY_SOURCE);
310 list->ResourceBarrier(buffer_count, barriers);
311 for (int i = 0; i < buffer_count; ++i) list->CopyBufferRegion(readback.p, slice(Buf(i)), buf[i].p, 0, sizes[i]);
312 list->CopyBufferRegion(readback.p, count_after_consume, buf[counter].p, counter_offset, 4);
313 EXPECT(list->Close() == S_OK);
314 ID3D12CommandList* lists[] = {list.p};
315 queue->ExecuteCommandLists(1, lists);
316 EXPECT(rt::d3d12::last_execute_result(queue.p) == leonida::ReplayResult::success);
317 EXPECT(SUCCEEDED(queue->Signal(fence.p, 1)));
318 const HANDLE event = CreateEventW(nullptr, FALSE, FALSE, nullptr);
319 EXPECT(event != nullptr);
320 EXPECT(SUCCEEDED(fence->SetEventOnCompletion(1, event)));
321 if (WaitForSingleObject(event, 20000) != WAIT_OBJECT_0) {
322 std::fprintf(stderr, "the fence never reached 1\n");
323 return 1;
324 }
325 CloseHandle(event);
326
327 std::vector<std::uint8_t> got;
328 {
329 void* mapped = nullptr;
330 EXPECT(SUCCEEDED(readback->Map(0, nullptr, &mapped)));
331 got.assign(static_cast<const std::uint8_t*>(mapped), static_cast<const std::uint8_t*>(mapped) + readback_bytes);
332 readback->Unmap(0, nullptr);
333 }
334 const auto word_at = [&](UINT64 offset) {
335 std::uint32_t value = 0;
336 std::memcpy(&value, got.data() + offset, 4);
337 return value;
338 };
339
340 unsigned mismatches = 0;
341 const auto compare = [&](const char* what, Buf which, const std::vector<std::uint32_t>& expected) {
342 unsigned bad = 0;
343 for (std::size_t i = 0; i < expected.size(); ++i) {
344 ++words_checked;
345 const std::uint32_t value = word_at(slice(which) + i * 4);
346 if (value == expected[i]) continue;
347 ++mismatches;
348 if (bad++ < 4) std::fprintf(stderr, "%s word %zu: got %08x want %08x\n", what, i, value, expected[i]);
349 }
350 if (bad) std::fprintf(stderr, "%s: %u of %zu words differ\n", what, bad, expected.size());
351 };
352 compare("R32_UINT store + atomic add (240 of 256 elements)", out0, want.words[out0]);
353 compare("R16G16B16A16_FLOAT store", out1, want.words[out1]);
354 compare("R8G8B8A8_UNORM store (FirstElement 16)", out2, want.words[out2]);
355 compare("R32G32B32A32_UINT store", out3, want.words[out3]);
356 compare("R32_FLOAT input untouched", in4, want.words[in4]);
357 compare("R32_FLOAT load -> R32_SINT store (250 of 256 loads in range)", out5, want.words[out5]);
358
359 // The counter: 256 after the append, 128 after the consume, and nothing else of its buffer touched.
360 ++words_checked;
361 if (word_at(count_after_append) != lanes) {
362 std::fprintf(stderr, "counter after the append: %u, want %u\n", word_at(count_after_append), lanes);
363 ++mismatches;
364 }
365 ++words_checked;
366 if (word_at(count_after_consume) != lanes - consumed) {
367 std::fprintf(stderr, "counter after the consume: %u, want %u\n", word_at(count_after_consume), lanes - consumed);
368 ++mismatches;
369 }
370 for (UINT64 i = 0; i < counter_buffer_bytes / 4; ++i) {
371 ++words_checked;
372 const std::uint32_t expected = i == counter_offset / 4 ? lanes - consumed : sentinel;
373 if (word_at(slice(counter) + i * 4) != expected && mismatches++ < 12)
374 std::fprintf(stderr, "counter buffer word %llu: got %08x want %08x\n", static_cast<unsigned long long>(i),
375 word_at(slice(counter) + i * 4), expected);
376 }
377 // The appended records: every g exactly once with its second field, in whatever order the lanes took the counter.
378 std::vector<std::array<std::uint32_t, 2>> appended, taken;
379 for (UINT i = 0; i < lanes; ++i)
380 appended.push_back({word_at(slice(records) + i * 8), word_at(slice(records) + i * 8 + 4)});
381 std::vector<std::array<std::uint32_t, 2>> sorted = appended;
382 std::sort(sorted.begin(), sorted.end());
383 for (UINT i = 0; i < lanes; ++i) {
384 ++words_checked;
385 if (sorted[i][0] != i || sorted[i][1] != i * 3 + 1) {
386 if (mismatches++ < 12)
387 std::fprintf(stderr, "appended record %u (sorted): { %u, %u }, want { %u, %u }\n", i, sorted[i][0],
388 sorted[i][1], i, i * 3 + 1);
389 }
390 }
391 // The consumed ones: the records at indices 128..255 (the counter went from 256 down to 128), each once.
392 for (UINT i = 0; i < consumed; ++i)
393 taken.push_back({word_at(slice(consumed_out) + i * 8), word_at(slice(consumed_out) + i * 8 + 4)});
394 std::vector<std::array<std::uint32_t, 2>> tail(appended.begin() + (lanes - consumed), appended.end());
395 std::sort(taken.begin(), taken.end());
396 std::sort(tail.begin(), tail.end());
397 for (UINT i = 0; i < consumed; ++i) {
398 ++words_checked;
399 if (taken[i] != tail[i] && mismatches++ < 12)
400 std::fprintf(stderr, "consumed record %u (sorted): { %u, %u }, want { %u, %u }\n", i, taken[i][0], taken[i][1],
401 tail[i][0], tail[i][1]);
402 }
403 EXPECT(!mismatches);
404
405 for (auto& b : buf) b.reset();
406 upload.reset(); readback.reset(); list.reset(); allocator.reset(); fence.reset(); queue.reset();
407 pso_typed.reset(); pso_counter.reset(); root.reset(); heap.reset();
408 EXPECT(rt::d3d12_xs::device_proxy_ref_count(device.p) == 1);
409 return 0;
410}
411
412// ---- part 2 -----------------------------------------------------------------------------------------------------
413
414struct ClearCase {
415 DXGI_FORMAT format;
416 VkFormat vulkan; // for the model
417 bool is_float;
418 std::array<std::uint32_t, 4> values;
419 UINT64 byte_offset;
420 UINT elements;
421};
422std::uint32_t fb(float f) { return std::bit_cast<std::uint32_t>(f); }
423
424// Values in the domain D3D12 defines the same on every driver: no exact .5 ties in a float -> UNORM rounding (the RTX 5070's
425// D3D12 rounds 127.5 down, the layer and the spec's round-to-nearest up) and no integer wider than its channel (the low bits
426// are kept here, one vendor clamps).
427const ClearCase clear_cases[] = {
428 {DXGI_FORMAT_R32_UINT, VK_FORMAT_R32_UINT, false, {0x12345678, 0, 0, 0}, 0, 16},
429 {DXGI_FORMAT_R32_SINT, VK_FORMAT_R32_SINT, false, {0xfffffff0, 0, 0, 0}, 256, 8},
430 {DXGI_FORMAT_R32_FLOAT, VK_FORMAT_R32_SFLOAT, true, {fb(1.5f), 0, 0, 0}, 512, 8},
431 {DXGI_FORMAT_R16G16B16A16_FLOAT, VK_FORMAT_R16G16B16A16_SFLOAT, true, {fb(1.0f), fb(0.5f), fb(-2.0f), fb(0.25f)}, 768, 8},
432 {DXGI_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, true, {fb(1.0f), fb(0.4f), fb(0.2f), fb(2.0f)}, 1024, 16},
433 {DXGI_FORMAT_R8G8B8A8_UINT, VK_FORMAT_R8G8B8A8_UINT, false, {0xf1, 2, 3, 0x80}, 1280, 16},
434 {DXGI_FORMAT_R32G32B32A32_UINT, VK_FORMAT_R32G32B32A32_UINT, false, {1, 2, 3, 4}, 1536, 4},
435 {DXGI_FORMAT_R16_UNORM, VK_FORMAT_R16_UNORM, true, {fb(0.25f), 0, 0, 0}, 1792, 16},
436 {DXGI_FORMAT_R8_UNORM, VK_FORMAT_R8_UNORM, true, {fb(0.2f), 0, 0, 0}, 2048, 21}, // ends off a word boundary
437 {DXGI_FORMAT_R10G10B10A2_UNORM, VK_FORMAT_A2B10G10R10_UNORM_PACK32, true, {fb(0.25f), fb(0.4f), fb(0.75f), fb(1.0f)}, 2304, 8},
438 {DXGI_FORMAT_R11G11B10_FLOAT, VK_FORMAT_B10G11R11_UFLOAT_PACK32, true, {fb(1.0f), fb(2.0f), fb(0.5f), 0}, 2560, 8},
439 {DXGI_FORMAT_R16G16_FLOAT, VK_FORMAT_R16G16_SFLOAT, true, {fb(1.5f), fb(-0.5f), 0, 0}, 2816, 8},
440 {DXGI_FORMAT_R8G8_UINT, VK_FORMAT_R8G8_UINT, false, {0xaa, 0xbb, 0, 0}, 3072, 10},
441};
442constexpr UINT64 api_data_bytes = 4096, api_records_bytes = 4096;
443constexpr UINT api_readback = api_data_bytes + api_records_bytes + counter_buffer_bytes;
444
445// The same scenario on `device`: bytes read back, or empty on failure. host: a real heap pair (a non-shader-visible one the
446// views are made in, a shader-visible one the clear's GPU handle comes from), as the PC runtime wants; the layer takes the
447// CPU handle and ignores the GPU one.
448bool run_api(ID3D12Device* device, bool host, std::vector<std::uint8_t>& out, std::vector<bool>& supported_by_host) {
449 const D3D12_HEAP_PROPERTIES default_heap{D3D12_HEAP_TYPE_DEFAULT}, upload_heap{D3D12_HEAP_TYPE_UPLOAD},
450 readback_heap{D3D12_HEAP_TYPE_READBACK};
451 const auto create = [&](Ref<ID3D12Resource>& r, const D3D12_HEAP_PROPERTIES& heap, UINT64 bytes,
452 D3D12_RESOURCE_FLAGS flags, D3D12_RESOURCE_STATES state) {
453 const auto desc = buffer_desc(bytes, flags);
454 return SUCCEEDED(device->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &desc, state, nullptr,
455 IID_PPV_ARGS(&r.p)));
456 };
457 constexpr auto uav_flag = D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS;
458 Ref<ID3D12Resource> data, structured, counter_buffer, upload, readback;
459 if (!create(data, default_heap, api_data_bytes, uav_flag, D3D12_RESOURCE_STATE_UNORDERED_ACCESS) ||
460 !create(structured, default_heap, api_records_bytes, uav_flag, D3D12_RESOURCE_STATE_COPY_DEST) ||
461 !create(counter_buffer, default_heap, counter_buffer_bytes, uav_flag, D3D12_RESOURCE_STATE_COPY_DEST) ||
462 !create(upload, upload_heap, api_records_bytes + counter_buffer_bytes, D3D12_RESOURCE_FLAG_NONE,
463 D3D12_RESOURCE_STATE_GENERIC_READ) ||
464 !create(readback, readback_heap, api_readback, D3D12_RESOURCE_FLAG_NONE, D3D12_RESOURCE_STATE_COPY_DEST))
465 return std::fprintf(stderr, "resource creation failed\n"), false;
466 {
467 std::uint8_t* mapped = nullptr;
468 if (FAILED(upload->Map(0, nullptr, reinterpret_cast<void**>(&mapped)))) return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
469 std::memset(mapped, 0x11, api_records_bytes + counter_buffer_bytes);
470 const std::uint32_t seven = 7;
471 std::memcpy(mapped + api_records_bytes + counter_offset, &seven, 4); // the counter's word
472 upload->Unmap(0, nullptr);
473 }
474 constexpr UINT slots = 24;
475 Ref<ID3D12DescriptorHeap> cpu_heap, gpu_heap;
476 D3D12_DESCRIPTOR_HEAP_DESC desc{D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, slots, D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0};
477 if (FAILED(device->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&cpu_heap.p)))) return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
478 if (host) {
479 desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE;
480 if (FAILED(device->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&gpu_heap.p)))) return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
481 }
482 const UINT step = device->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
483 const auto cpu = [&](UINT i) {
484 D3D12_CPU_DESCRIPTOR_HANDLE h = cpu_heap->GetCPUDescriptorHandleForHeapStart();
485 h.ptr += SIZE_T(i) * step;
486 return h;
487 };
488 const auto gpu = [&](UINT i) {
489 if (!host) return D3D12_GPU_DESCRIPTOR_HANDLE{0};
490 D3D12_GPU_DESCRIPTOR_HANDLE h = gpu_heap->GetGPUDescriptorHandleForHeapStart();
491 h.ptr += UINT64(i) * step;
492 return h;
493 };
494 UINT next_slot = 0;
495 const auto make = [&](ID3D12Resource* resource, ID3D12Resource* counter, const D3D12_UNORDERED_ACCESS_VIEW_DESC& view) {
496 const UINT i = next_slot++;
497 device->CreateUnorderedAccessView(resource, counter, &view, cpu(i));
498 if (host) {
499 D3D12_CPU_DESCRIPTOR_HANDLE visible = gpu_heap->GetCPUDescriptorHandleForHeapStart();
500 visible.ptr += SIZE_T(i) * step;
501 device->CopyDescriptorsSimple(1, visible, cpu(i), D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
502 }
503 return i;
504 };
505
506 Ref<ID3D12CommandQueue> queue;
507 Ref<ID3D12CommandAllocator> allocator;
508 Ref<ID3D12GraphicsCommandList> list;
509 Ref<ID3D12Fence> fence;
510 const D3D12_COMMAND_QUEUE_DESC queue_desc{D3D12_COMMAND_LIST_TYPE_DIRECT};
511 if (FAILED(device->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&queue.p))) ||
512 FAILED(device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&allocator.p))) ||
513 FAILED(device->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, allocator.p, nullptr, IID_PPV_ARGS(&list.p))) ||
514 FAILED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence.p))))
515 return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
516 ID3D12DescriptorHeap* heaps[] = {gpu_heap.p};
517 if (host) list->SetDescriptorHeaps(1, heaps);
518
519 const auto clear = [&](UINT slot_index, ID3D12Resource* resource, bool is_float, const std::array<std::uint32_t, 4>& v) {
520 if (is_float) {
521 const float f[4] = {std::bit_cast<float>(v[0]), std::bit_cast<float>(v[1]), std::bit_cast<float>(v[2]),
522 std::bit_cast<float>(v[3])};
523 list->ClearUnorderedAccessViewFloat(gpu(slot_index), cpu(slot_index), resource, f, 0, nullptr);
524 } else {
525 list->ClearUnorderedAccessViewUint(gpu(slot_index), cpu(slot_index), resource, v.data(), 0, nullptr);
526 }
527 const D3D12_RESOURCE_BARRIER barrier = uav_barrier(resource);
528 list->ResourceBarrier(1, &barrier);
529 };
530 // The whole buffer 0xcdcdcdcd through a raw view, then each case's elements through a typed view.
531 clear(make(data.p, nullptr, buffer_view(DXGI_FORMAT_R32_TYPELESS, 0, api_data_bytes / 4, 0, 0, D3D12_BUFFER_UAV_FLAG_RAW)),
532 data.p, false, {0xcdcdcdcd, 0, 0, 0});
533 supported_by_host.assign(std::size(clear_cases), true);
534 for (std::size_t c = 0; c < std::size(clear_cases); ++c) {
535 const ClearCase& test = clear_cases[c];
536 if (host) {
537 D3D12_FEATURE_DATA_FORMAT_SUPPORT support{test.format};
538 supported_by_host[c] = SUCCEEDED(device->CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, &support, sizeof(support))) &&
539 (support.Support2 & D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE);
540 }
541 if (!supported_by_host[c]) continue;
542 const UINT size = uc::layout(test.vulkan)->bytes;
543 clear(make(data.p, nullptr, buffer_view(test.format, test.byte_offset / size, test.elements, 0)), data.p,
544 test.is_float, test.values);
545 }
546 // A structured view with a counter. The clear writes the records and leaves the counter (preset to 7) alone ...
547 list->CopyBufferRegion(structured.p, 0, upload.p, 0, api_records_bytes);
548 list->CopyBufferRegion(counter_buffer.p, 0, upload.p, api_records_bytes, counter_buffer_bytes);
549 D3D12_RESOURCE_BARRIER to_uav[2] = {transition(structured.p, D3D12_RESOURCE_STATE_COPY_DEST, D3D12_RESOURCE_STATE_UNORDERED_ACCESS),
550 transition(counter_buffer.p, D3D12_RESOURCE_STATE_COPY_DEST,
551 D3D12_RESOURCE_STATE_UNORDERED_ACCESS)};
552 list->ResourceBarrier(2, to_uav);
553 clear(make(structured.p, counter_buffer.p, buffer_view(DXGI_FORMAT_UNKNOWN, 0, 256, 16, counter_offset)), structured.p,
554 false, {0xab, 0xcd, 0xef, 0x01});
555 // ... and a raw view of the counter's own word (element 1024) clears it, as a game resets its counter.
556 clear(make(counter_buffer.p, nullptr, buffer_view(DXGI_FORMAT_R32_TYPELESS, counter_offset / 4, 1, 0, 0, D3D12_BUFFER_UAV_FLAG_RAW)),
557 counter_buffer.p, false, {3, 0, 0, 0});
558 D3D12_RESOURCE_BARRIER to_copy[3] = {
559 transition(data.p, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, D3D12_RESOURCE_STATE_COPY_SOURCE),
560 transition(structured.p, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, D3D12_RESOURCE_STATE_COPY_SOURCE),
561 transition(counter_buffer.p, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, D3D12_RESOURCE_STATE_COPY_SOURCE)};
562 list->ResourceBarrier(3, to_copy);
563 list->CopyBufferRegion(readback.p, 0, data.p, 0, api_data_bytes);
564 list->CopyBufferRegion(readback.p, api_data_bytes, structured.p, 0, api_records_bytes);
565 list->CopyBufferRegion(readback.p, api_data_bytes + api_records_bytes, counter_buffer.p, 0, counter_buffer_bytes);
566 if (const HRESULT hr = list->Close(); FAILED(hr)) return std::fprintf(stderr, "Close: %08lx\n", static_cast<unsigned long>(hr)), false;
567 ID3D12CommandList* lists[] = {list.p};
568 queue->ExecuteCommandLists(1, lists);
569 if (!host && rt::d3d12::last_execute_result(queue.p) != leonida::ReplayResult::success)
570 return std::fprintf(stderr, "replay result %d\n", int(rt::d3d12::last_execute_result(queue.p))), false;
571 if (FAILED(queue->Signal(fence.p, 1))) return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
572 const HANDLE event = CreateEventW(nullptr, FALSE, FALSE, nullptr);
573 if (!event || FAILED(fence->SetEventOnCompletion(1, event)) || WaitForSingleObject(event, 20000) != WAIT_OBJECT_0)
574 return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
575 CloseHandle(event);
576 void* mapped = nullptr;
577 if (FAILED(readback->Map(0, nullptr, &mapped))) return std::fprintf(stderr, "run_api: line %d\n", __LINE__), false;
578 out.assign(static_cast<const std::uint8_t*>(mapped), static_cast<const std::uint8_t*>(mapped) + api_readback);
579 readback->Unmap(0, nullptr);
580 return true;
581}
582
583// What D3D12 says the same sequence leaves, from uav_clear.h: the model for a run with no host runtime to compare with.
584std::vector<std::uint8_t> model(const std::vector<bool>& supported) {
585 std::vector<std::uint8_t> bytes(api_readback, 0x11);
586 std::fill(bytes.begin(), bytes.begin() + api_data_bytes, std::uint8_t(0xcd));
587 for (std::size_t c = 0; c < std::size(clear_cases); ++c) {
588 const ClearCase& test = clear_cases[c];
589 uc::Element e{};
590 if (!supported[c] || !uc::encode(test.vulkan, test.is_float, test.values, e)) continue;
591 for (UINT64 i = 0; i < UINT64(test.elements) * e.size; ++i) bytes[test.byte_offset + i] = e.bytes[i % e.size];
592 }
593 // A structured view clears every 32-bit word to the first value (D3D12 ignores the other three).
594 for (UINT64 i = 0; i < api_records_bytes; ++i) bytes[api_data_bytes + i] = i % 4 == 0 ? 0xab : 0;
595 const std::uint32_t three = 3;
596 std::memcpy(bytes.data() + api_data_bytes + api_records_bytes + counter_offset, &three, 4);
597 return bytes;
598}
599
600} // namespace
601
602int main() {
603 vktest::Device d;
604 const auto device_status = d.initialize();
605 if (device_status == vktest::DeviceStatus::unavailable) return 77; // no Vulkan GPU: ctest skips
606 if (device_status != vktest::DeviceStatus::ready) return 1;
607 if (!d.bindless) {
608 std::printf("SKIP: the device lacks the descriptor indexing features of the bindless set 0\n");
609 return 77;
610 }
611 const std::filesystem::path root_dir = LEONIDA_TEST_BUFFER_UAV_DIR;
612
613 unsigned words = 0;
614 if (const int status = run_shaders(d, root_dir, words)) return status;
615
616 // Part 2: the layer's device and the host's on the same adapter.
617 std::vector<std::uint8_t> ours, host_bytes;
618 std::vector<bool> supported;
619 {
620 rt::d3d12::VulkanDeviceInfo info{};
621 info.get_instance_proc = d.instance_proc;
622 info.instance = d.instance;
623 info.physical = d.physical;
624 info.device = d.device;
625 info.queue = d.queue;
626 info.queue_family = d.family;
627 info.buffer_device_address = true; // the V# holds the buffer's address
628 Ref<ID3D12Device> device;
629 EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device(info, IID_PPV_ARGS(&device.p))));
630 EXPECT(run_api(device.p, false, ours, supported));
631 }
632 std::string host_name = "none";
633 bool compared = false;
634 {
635 VkPhysicalDeviceIDProperties id{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES};
636 VkPhysicalDeviceProperties2 properties{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2, &id};
637 d.instance_fn<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2")(d.physical, &properties);
638 copycmp::Ptr<ID3D12Device> host;
639 LUID luid{};
640 std::memcpy(&luid, id.deviceLUID, sizeof(luid));
641 if (id.deviceLUIDValid && copycmp::try_create_host(host, host_name, &luid)) {
642 std::vector<bool> host_supported;
643 EXPECT(run_api(host.p, true, host_bytes, host_supported));
644 supported = host_supported;
645 compared = true;
646 }
647 }
648 if (!compared) {
649 std::printf("no host D3D12 device on the layer's adapter: the layer's bytes are compared with uav_clear.h\n");
650 host_bytes = model(supported);
651 host_name = "the uav_clear.h model";
652 } else {
653 // The layer ran every case; the host only those its adapter can store typed. Mask the others in both.
654 for (std::size_t c = 0; c < std::size(clear_cases); ++c) {
655 if (supported[c]) continue;
656 const ClearCase& test = clear_cases[c];
657 const UINT size = uc::layout(test.vulkan)->bytes;
658 std::fill_n(ours.begin() + test.byte_offset, UINT64(test.elements) * size, std::uint8_t(0));
659 std::fill_n(host_bytes.begin() + test.byte_offset, UINT64(test.elements) * size, std::uint8_t(0));
660 std::printf("host adapter has no typed UAV store for DXGI format %d: that case is not compared\n",
661 int(test.format));
662 }
663 }
664 EXPECT(ours.size() == api_readback && host_bytes.size() == api_readback);
665 unsigned differing = 0;
666 for (std::size_t i = 0; i < ours.size(); ++i) {
667 ++words;
668 if (ours[i] == host_bytes[i]) continue;
669 if (differing++ < 12) {
670 const char* where = i < api_data_bytes ? "typed clears" : i < api_data_bytes + api_records_bytes ? "structured clear with a counter" : "counter buffer";
671 std::fprintf(stderr, "%s byte %zu: layer %02x, %s %02x\n", where, i, ours[i], host_name.c_str(), host_bytes[i]);
672 }
673 }
674 if (differing) {
675 // Say which clear case the first differing byte belongs to.
676 for (std::size_t c = 0; c < std::size(clear_cases); ++c) {
677 const ClearCase& test = clear_cases[c];
678 const UINT size = uc::layout(test.vulkan)->bytes;
679 for (UINT64 i = 0; i < UINT64(test.elements) * size; ++i)
680 if (ours[test.byte_offset + i] != host_bytes[test.byte_offset + i]) {
681 std::fprintf(stderr, "case %zu (DXGI format %d) differs\n", c, int(test.format));
682 break;
683 }
684 }
685 std::fprintf(stderr, "%u bytes differ\n", differing);
686 return 1;
687 }
688 if (d.validation_errors()) {
689 std::fprintf(stderr, "%u validation errors\n", d.validation_errors());
690 return 1;
691 }
692 std::printf("Buffer UAVs: typed views (R32_UINT with an atomic, R16G16B16A16_FLOAT, R8G8B8A8_UNORM from FirstElement 16, "
693 "R32G32B32A32_UINT, R32_FLOAT loads, R32_SINT) written by a translated compute shader with NUM_RECORDS "
694 "as the bound, and a structured UAV with a counter at offset 4096 appended to by 256 lanes and consumed "
695 "by 128 (counter 256 then 128 through CopyBufferRegion) matched the CPU reference; typed-buffer and "
696 "counter clears matched %s: %u values compared, error 0\n",
697 host_name.c_str(), words);
698 return 0;
699}
diff --git a/runtime/test/d3d12_compute_test.cpp b/runtime/test/d3d12_compute_test.cpp
index e53f9ab4b..2d9dff03f 100644
--- a/runtime/test/d3d12_compute_test.cpp
+++ b/runtime/test/d3d12_compute_test.cpp
@@ -505,6 +505,8 @@ int main() {
505 } 505 }
506 506
507 for (auto* r : {&out_a, &out_b, &constants, &readback}) r->reset(); 507 for (auto* r : {&out_a, &out_b, &constants, &readback}) r->reset();
508 pso67.reset();
509 unknown67.reset();
508 pso.reset(); 510 pso.reset();
509 root.reset(); 511 root.reset();
510 heap.reset(); 512 heap.reset();
diff --git a/runtime/test/d3d12_descriptor_test.cpp b/runtime/test/d3d12_descriptor_test.cpp
index 2f6d059c3..13c10d043 100644
--- a/runtime/test/d3d12_descriptor_test.cpp
+++ b/runtime/test/d3d12_descriptor_test.cpp
@@ -698,6 +698,42 @@ int main() {
698 const auto null_at = [&](UINT i) { 698 const auto null_at = [&](UINT i) {
699 return std::all_of(view_bytes(i), view_bytes(i) + step, [](std::uint8_t byte) { return byte == 0; }); 699 return std::all_of(view_bytes(i), view_bytes(i) + step, [](std::uint8_t byte) { return byte == 0; });
700 }; 700 };
701 // An explicit D3D12_SRV_DIMENSION_TEXTURE1D view on a 1D texture array selects layer zero (like TEXTURE2D
702 // and TEXTURE2DMS on 2D arrays), while a default (nullptr) SRV on a 1D array remains a null descriptor.
703 {
704 auto line_array_desc = line_desc;
705 line_array_desc.DepthOrArraySize = 3;
706 Ref<ID3D12Resource> line_array;
707 EXPECT(SUCCEEDED(device->CreateCommittedResource(&default_heap, D3D12_HEAP_FLAG_NONE, &line_array_desc,
708 D3D12_RESOURCE_STATE_COMMON, nullptr,
709 IID_PPV_ARGS(&line_array.p))));
710 D3D12_DESCRIPTOR_HEAP_DESC la_heap_desc{D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, 2,
711 D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0};
712 Ref<ID3D12DescriptorHeap> la_heap;
713 EXPECT(SUCCEEDED(device->CreateDescriptorHeap(&la_heap_desc, IID_PPV_ARGS(&la_heap.p))));
714 const std::uint64_t la_cpu = reinterpret_cast<XboxHeapHandleFn>(slot(la_heap.p, 9))(la_heap.p);
715 const D3D12_CPU_DESCRIPTOR_HANDLE la_default{SIZE_T(la_cpu)}, la_slice0{SIZE_T(la_cpu + step)};
716 std::memset(reinterpret_cast<void*>(la_default.ptr), 0x77, step);
717 device->CreateShaderResourceView(line_array.p, nullptr, la_default);
718 EXPECT(std::all_of(reinterpret_cast<const std::uint8_t*>(la_default.ptr),
719 reinterpret_cast<const std::uint8_t*>(la_default.ptr) + step,
720 [](std::uint8_t byte) { return byte == 0; }));
721 D3D12_SHADER_RESOURCE_VIEW_DESC la_view{};
722 la_view.Format = DXGI_FORMAT_UNKNOWN;
723 la_view.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE1D;
724 la_view.Shader4ComponentMapping = D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING;
725 la_view.Texture1D = {1, 1, 0};
726 device->CreateShaderResourceView(line_array.p, &la_view, la_slice0);
727 g::ImageWords la_words{};
728 std::memcpy(la_words.data(), reinterpret_cast<const void*>(la_slice0.ptr), sizeof(la_words));
729 g::Image la_image{};
730 EXPECT(g::is_image(la_words) && g::decode(la_words, la_image) &&
731 la_image.type == g::ImageType::image_1d && la_image.first_mip == 1 && la_image.mip_count == 1 &&
732 la_image.first_layer == 0 && la_image.layer_count == 1);
733 std::uint32_t la_key[8]{};
734 std::memcpy(la_key, la_words.data(), sizeof(la_key));
735 EXPECT(rt::d3d12::bindless_hash_lookup(device.p, la_key) != 0);
736 }
701 D3D12_RESOURCE_DESC ms_desc = texture_desc; 737 D3D12_RESOURCE_DESC ms_desc = texture_desc;
702 ms_desc.Width = ms_desc.Height = 4; 738 ms_desc.Width = ms_desc.Height = 4;
703 ms_desc.SampleDesc.Count = 4; 739 ms_desc.SampleDesc.Count = 4;
diff --git a/runtime/test/d3d12_m4_compute_test.cpp b/runtime/test/d3d12_m4_compute_test.cpp
new file mode 100644
index 000000000..bd3a555fd
--- /dev/null
+++ b/runtime/test/d3d12_m4_compute_test.cpp
@@ -0,0 +1,395 @@
1// Milestone M4, the synthetic part (docs/d3d12_vulkan.md section 6): a compute workload with the structure a game's asset
2// streaming and compute passes have, through the D3D12 API on the proxy, with compute shaders that are translator output
3// (test/shaders/cs_m4_fill.asm and cs_m4_indirect.asm, hand-written RDNA2).
4// Three queues' worth of work, each its own command list type:
5// COPY queue streams an input buffer: CopyBufferRegion from an UPLOAD buffer into a DEFAULT buffer that was created
6// in COMMON (promoted to COPY_DEST there), then Signal(copy fence, 1).
7// COMPUTE queue Wait(copy fence, 1), then one list: a barrier COMMON -> UNORDERED_ACCESS for the input, a compute root
8// signature (four root constants and a descriptor table of five UAVs: a structured buffer, a raw
9// buffer, an R32_UINT RWTexture2D, the raw input and a raw output), a compute PSO, and Dispatch with
10// four groups. That shader fills the structured buffer and the image from the input and writes the
11// arguments of the next dispatch into the raw buffer. Barriers (a transition of the argument buffer to
12// INDIRECT_ARGUMENT and UAV barriers on the buffer and the image) and ExecuteIndirect with a dispatch
13// command signature runs a second PSO whose group count is that buffer's first word: it reads the
14// structured buffer and the image back and writes the raw output. Everything then goes to COMMON and
15// the queue does Signal(compute fence, 1).
16// COPY queue Wait(compute fence, 1), a COPY list that copies the five results (four buffers and the image through
17// CopyTextureRegion) to a READBACK buffer, Signal(copy fence, 2). The CPU waits for that with
18// SetEventOnCompletion and an event.
19// When the Vulkan family has two queues, the copy and the compute D3D12 queue get their own VkQueue (so the fences are
20// real cross-queue semaphores); with one, they share it. Either way the three batches are submitted in dependency order.
21// Compared with a CPU reference, word by word, error 0: the input after the round trip, the structured buffer, the
22// argument buffer, the image and the indirect dispatch's output (which also shows that exactly the 3 groups the
23// first dispatch asked for ran).
24// Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation (0 errors required).
25#include "vk_test_device.h"
26#include "d3d12_test_shaders.h"
27#include "../shims/d3d12_com.h"
28#include "../shims/d3d12_xs_device.h"
29#include "../src/shader_library.h"
30
31#include <array>
32#include <cstring>
33
34#ifndef LEONIDA_TEST_M4_DIR
35#error "LEONIDA_TEST_M4_DIR must name the folder build.py wrote (spirv/index.json, fssm/cs_*.fssm)"
36#endif
37
38#define EXPECT(condition) do { \
39 if (!(condition)) { std::fprintf(stderr, "line %d: %s\n", __LINE__, #condition); return 1; } \
40} while (0)
41
42using namespace d3d12test;
43using XboxHeapHandleFn = std::uint64_t(WINAPI*)(void* heap); // heap slots 9/10: handle in RAX
44
45namespace {
46
47std::vector<std::uint8_t> read_file(const std::filesystem::path& path) {
48 std::ifstream in(path, std::ios::binary);
49 return {std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>()};
50}
51
52constexpr UINT records = 256; // fill: 4 groups of 64
53constexpr UINT second_groups = 3; // the indirect dispatch: 3 groups of 64
54constexpr UINT image_dim = 16; // 16 x 16 R32_UINT, one texel a record
55constexpr UINT seed = 0x00c0ffee, multiplier = 0x01000193;
56// The readback buffer: the structured buffer, the argument buffer's 16 bytes, the second output, the input, the image.
57constexpr UINT64 data_bytes = records * 16, args_bytes = 16, out2_bytes = second_groups * 64 * 8, in_bytes = records * 4;
58constexpr UINT64 offset_data = 0, offset_args = offset_data + data_bytes, offset_out2 = offset_args + args_bytes,
59 offset_in = offset_out2 + out2_bytes;
60constexpr UINT64 offset_image = (offset_in + in_bytes + 511) / 512 * 512;
61constexpr UINT image_pitch = D3D12_TEXTURE_DATA_PITCH_ALIGNMENT;
62constexpr UINT64 readback_bytes = offset_image + UINT64(image_dim) * image_pitch;
63
64std::uint32_t rotr(std::uint32_t v, unsigned n) { return (v >> n) | (v << (32 - n)); }
65std::uint32_t input_word(UINT g) { return (g + 1) * 0x9e3779b1u ^ (g << 7); }
66
67struct Reference {
68 std::vector<std::uint32_t> data, args, in, image, out2;
69};
70Reference reference() {
71 Reference ref;
72 ref.args = {second_groups, 1, 1, 0xc0de0001u};
73 ref.data.resize(records * 4);
74 ref.image.resize(image_dim * image_dim);
75 for (UINT g = 0; g < records; ++g) {
76 const std::uint32_t in = input_word(g);
77 ref.in.push_back(in);
78 ref.data[g * 4 + 0] = in + seed;
79 ref.data[g * 4 + 1] = g * multiplier;
80 ref.data[g * 4 + 2] = in ^ (g << 8);
81 ref.data[g * 4 + 3] = rotr(in, 13);
82 const UINT x = g & 15, y = g >> 4;
83 ref.image[y * image_dim + x] = in * 3 + x * 0x10001u + y;
84 }
85 for (UINT g = 0; g < second_groups * 64; ++g) {
86 const std::uint32_t t = ref.image[g]; // (g & 15, g >> 4) is texel g of the row-major image
87 ref.out2.push_back((ref.data[g * 4 + 0] + t) ^ ref.data[g * 4 + 3]);
88 ref.out2.push_back((ref.data[g * 4 + 2] ^ t) + ref.data[g * 4 + 1]);
89 }
90 return ref;
91}
92
93} // namespace
94
95int main() {
96 vktest::Device d;
97 d.queue_count_wanted = 2; // the copy queue and the compute queue each get a VkQueue where the family has two
98 const auto device_status = d.initialize();
99 if (device_status == vktest::DeviceStatus::unavailable) return 77; // no Vulkan GPU: ctest skips
100 if (device_status != vktest::DeviceStatus::ready) return 1;
101 if (!d.bindless) {
102 std::printf("SKIP: the device lacks the descriptor indexing features of the bindless set 0\n");
103 return 77;
104 }
105
106 const std::filesystem::path root_dir = LEONIDA_TEST_M4_DIR;
107 leonida::ShaderLibrary library;
108 EXPECT(library.load((root_dir / "spirv").string()));
109 const auto program = [&](const char* name) { return read_file(root_dir / "fssm" / (std::string(name) + ".fssm")); };
110 const auto fill = program("cs_m4_fill"), indirect = program("cs_m4_indirect");
111 EXPECT(fill.size() >= 0x150 && indirect.size() >= 0x150 && fill != indirect);
112 EXPECT(library.find("cs", leonida::sha256_hex(fill)) && library.find("cs", leonida::sha256_hex(indirect)));
113 const auto fill_container = shader_container(fill), indirect_container = shader_container(indirect);
114
115 const bool distinct_queues = d.queues.size() >= 2;
116 Reference want = reference();
117 std::vector<std::uint8_t> got;
118 {
119 rt::d3d12::VulkanDeviceInfo info{};
120 info.get_instance_proc = d.instance_proc;
121 info.instance = d.instance;
122 info.physical = d.physical;
123 info.device = d.device;
124 info.queue = d.queue;
125 info.queue_family = d.family;
126 if (distinct_queues) info.command_queues = d.queues;
127 info.buffer_device_address = true;
128 info.bindless = d.bindless;
129 info.bindless_partially_bound = d.partially_bound;
130 info.image_view_min_lod = d.image_view_min_lod;
131 info.shader_dir = (root_dir / "spirv").string();
132 ID3D12Device* inner = nullptr;
133 EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device(info, IID_PPV_ARGS(&inner))));
134 Ref<ID3D12Device> device;
135 EXPECT(SUCCEEDED(rt::d3d12_xs::create_device_proxy(inner, __uuidof(ID3D12Device),
136 reinterpret_cast<void**>(&device.p))));
137 rt::d3d12::set_device_outer(inner, device.p);
138 EXPECT(rt::d3d12::bindless_set(device.p) != VK_NULL_HANDLE);
139
140 // [0] four 32-bit constants (s0..s3), [1] a table of five UAVs (s[4:5]).
141 D3D12_DESCRIPTOR_RANGE uav_range{D3D12_DESCRIPTOR_RANGE_TYPE_UAV, 5, 0, 0, 0};
142 D3D12_ROOT_PARAMETER params[2] = {};
143 params[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS;
144 params[0].Constants = {0, 0, 4};
145 params[0].ShaderVisibility = D3D12_SHADER_VISIBILITY_ALL;
146 params[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;
147 params[1].DescriptorTable = {1, &uav_range};
148 params[1].ShaderVisibility = D3D12_SHADER_VISIBILITY_ALL;
149 D3D12_VERSIONED_ROOT_SIGNATURE_DESC root_desc{};
150 root_desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_0;
151 root_desc.Desc_1_0 = {2, params, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_NONE};
152 const auto root_blob = serialize_root_signature(root_desc);
153 EXPECT(!root_blob.empty());
154 Ref<ID3D12RootSignature> root;
155 EXPECT(SUCCEEDED(device->CreateRootSignature(0, root_blob.data(), root_blob.size(), IID_PPV_ARGS(&root.p))));
156
157 D3D12_COMPUTE_PIPELINE_STATE_DESC pso_desc{};
158 pso_desc.pRootSignature = root.p;
159 pso_desc.CS = {fill_container.data(), fill_container.size()};
160 Ref<ID3D12PipelineState> pso_fill, pso_indirect;
161 EXPECT(SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso_fill.p))));
162 pso_desc.CS = {indirect_container.data(), indirect_container.size()};
163 EXPECT(SUCCEEDED(device->CreateComputePipelineState(&pso_desc, IID_PPV_ARGS(&pso_indirect.p))));
164
165 D3D12_INDIRECT_ARGUMENT_DESC argument{};
166 argument.Type = D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH;
167 D3D12_COMMAND_SIGNATURE_DESC signature_desc{};
168 signature_desc.ByteStride = sizeof(D3D12_DISPATCH_ARGUMENTS);
169 signature_desc.NumArgumentDescs = 1;
170 signature_desc.pArgumentDescs = &argument;
171 Ref<ID3D12CommandSignature> signature;
172 EXPECT(SUCCEEDED(device->CreateCommandSignature(&signature_desc, nullptr, IID_PPV_ARGS(&signature.p))));
173
174 const D3D12_HEAP_PROPERTIES default_heap{D3D12_HEAP_TYPE_DEFAULT};
175 const D3D12_HEAP_PROPERTIES upload_heap{D3D12_HEAP_TYPE_UPLOAD};
176 const D3D12_HEAP_PROPERTIES readback_heap{D3D12_HEAP_TYPE_READBACK};
177 constexpr auto uav_flag = D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS;
178 constexpr auto uav_state = D3D12_RESOURCE_STATE_UNORDERED_ACCESS;
179 constexpr auto common = D3D12_RESOURCE_STATE_COMMON;
180 Ref<ID3D12Resource> upload, input, data, args, out2, image, readback;
181 const auto create_buffer = [&](Ref<ID3D12Resource>& out, const D3D12_HEAP_PROPERTIES& heap, UINT64 bytes,
182 D3D12_RESOURCE_FLAGS flags, D3D12_RESOURCE_STATES state) {
183 const auto desc = buffer_desc(bytes, flags);
184 return SUCCEEDED(device->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &desc, state, nullptr,
185 IID_PPV_ARGS(&out.p)));
186 };
187 EXPECT(create_buffer(upload, upload_heap, in_bytes, D3D12_RESOURCE_FLAG_NONE, D3D12_RESOURCE_STATE_GENERIC_READ));
188 EXPECT(create_buffer(input, default_heap, in_bytes, uav_flag, common));
189 EXPECT(create_buffer(data, default_heap, data_bytes, uav_flag, uav_state));
190 EXPECT(create_buffer(args, default_heap, 256, uav_flag, uav_state));
191 EXPECT(create_buffer(out2, default_heap, out2_bytes, uav_flag, uav_state));
192 EXPECT(create_buffer(readback, readback_heap, readback_bytes, D3D12_RESOURCE_FLAG_NONE,
193 D3D12_RESOURCE_STATE_COPY_DEST));
194 D3D12_RESOURCE_DESC image_desc{};
195 image_desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
196 image_desc.Width = image_desc.Height = image_dim;
197 image_desc.DepthOrArraySize = 1;
198 image_desc.MipLevels = 1;
199 image_desc.Format = DXGI_FORMAT_R32_UINT;
200 image_desc.SampleDesc.Count = 1;
201 image_desc.Flags = uav_flag;
202 EXPECT(SUCCEEDED(device->CreateCommittedResource(&default_heap, D3D12_HEAP_FLAG_NONE, &image_desc, uav_state,
203 nullptr, IID_PPV_ARGS(&image.p))));
204 {
205 std::uint32_t* mapped = nullptr;
206 EXPECT(SUCCEEDED(upload->Map(0, nullptr, reinterpret_cast<void**>(&mapped))));
207 for (UINT g = 0; g < records; ++g) mapped[g] = input_word(g);
208 upload->Unmap(0, nullptr);
209 }
210
211 // The table: slot 0 structured buffer (stride 16), 1 raw argument buffer, 2 image, 3 raw input, 4 raw output.
212 const D3D12_DESCRIPTOR_HEAP_DESC heap_desc{D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, 5,
213 D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE, 0};
214 Ref<ID3D12DescriptorHeap> heap;
215 EXPECT(SUCCEEDED(device->CreateDescriptorHeap(&heap_desc, IID_PPV_ARGS(&heap.p))));
216 const std::uint64_t cpu = reinterpret_cast<XboxHeapHandleFn>(slot(heap.p, 9))(heap.p);
217 const std::uint64_t gpu = reinterpret_cast<XboxHeapHandleFn>(slot(heap.p, 10))(heap.p);
218 const UINT step = device->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
219 EXPECT(cpu && gpu >= 0x10000 && gpu < (1ull << 32) && step == 32); // the shaders step 32 bytes a slot
220 const auto handle = [&](UINT i) { return D3D12_CPU_DESCRIPTOR_HANDLE{SIZE_T(cpu + std::uint64_t(i) * step)}; };
221 const auto buffer_view = [](DXGI_FORMAT format, UINT count, UINT stride, D3D12_BUFFER_UAV_FLAGS flags) {
222 D3D12_UNORDERED_ACCESS_VIEW_DESC view{};
223 view.Format = format;
224 view.ViewDimension = D3D12_UAV_DIMENSION_BUFFER;
225 view.Buffer = {0, count, stride, 0, flags};
226 return view;
227 };
228 auto view = buffer_view(DXGI_FORMAT_UNKNOWN, records, 16, D3D12_BUFFER_UAV_FLAG_NONE);
229 device->CreateUnorderedAccessView(data.p, nullptr, &view, handle(0));
230 view = buffer_view(DXGI_FORMAT_R32_TYPELESS, 4, 0, D3D12_BUFFER_UAV_FLAG_RAW); // the 16 bytes of arguments
231 device->CreateUnorderedAccessView(args.p, nullptr, &view, handle(1));
232 D3D12_UNORDERED_ACCESS_VIEW_DESC image_view{};
233 image_view.Format = DXGI_FORMAT_R32_UINT;
234 image_view.ViewDimension = D3D12_UAV_DIMENSION_TEXTURE2D;
235 device->CreateUnorderedAccessView(image.p, nullptr, &image_view, handle(2));
236 view = buffer_view(DXGI_FORMAT_R32_TYPELESS, records, 0, D3D12_BUFFER_UAV_FLAG_RAW);
237 device->CreateUnorderedAccessView(input.p, nullptr, &view, handle(3));
238 view = buffer_view(DXGI_FORMAT_R32_TYPELESS, UINT(out2_bytes / 4), 0, D3D12_BUFFER_UAV_FLAG_RAW);
239 device->CreateUnorderedAccessView(out2.p, nullptr, &view, handle(4));
240 // The V# of the structured view and the T# of the image view are what the shader loads from the table.
241 std::uint32_t v_data[4], v_args[4];
242 std::memcpy(v_data, reinterpret_cast<const void*>(handle(0).ptr), sizeof(v_data));
243 std::memcpy(v_args, reinterpret_cast<const void*>(handle(1).ptr), sizeof(v_args));
244 EXPECT(v_data[0] == std::uint32_t(data->GetGPUVirtualAddress()) && (v_data[1] >> 16 & 0x3fff) == 16 &&
245 v_data[2] == records);
246 EXPECT(v_args[0] == std::uint32_t(args->GetGPUVirtualAddress()) && (v_args[1] >> 16 & 0x3fff) == 0 &&
247 v_args[2] == 16);
248
249 D3D12_COMMAND_QUEUE_DESC queue_desc{};
250 Ref<ID3D12CommandQueue> copy_queue, compute_queue;
251 queue_desc.Type = D3D12_COMMAND_LIST_TYPE_COPY;
252 EXPECT(SUCCEEDED(device->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&copy_queue.p))));
253 queue_desc.Type = D3D12_COMMAND_LIST_TYPE_COMPUTE;
254 EXPECT(SUCCEEDED(device->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&compute_queue.p))));
255 Ref<ID3D12CommandAllocator> stream_alloc, compute_alloc, readback_alloc;
256 Ref<ID3D12GraphicsCommandList> stream_list, compute_list, readback_list;
257 Ref<ID3D12Fence> copy_fence, compute_fence;
258 const auto make_list = [&](D3D12_COMMAND_LIST_TYPE type, Ref<ID3D12CommandAllocator>& alloc,
259 Ref<ID3D12GraphicsCommandList>& list) {
260 return SUCCEEDED(device->CreateCommandAllocator(type, IID_PPV_ARGS(&alloc.p))) &&
261 SUCCEEDED(device->CreateCommandList(0, type, alloc.p, nullptr, IID_PPV_ARGS(&list.p)));
262 };
263 EXPECT(make_list(D3D12_COMMAND_LIST_TYPE_COPY, stream_alloc, stream_list));
264 EXPECT(make_list(D3D12_COMMAND_LIST_TYPE_COMPUTE, compute_alloc, compute_list));
265 EXPECT(make_list(D3D12_COMMAND_LIST_TYPE_COPY, readback_alloc, readback_list));
266 EXPECT(SUCCEEDED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&copy_fence.p))));
267 EXPECT(SUCCEEDED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&compute_fence.p))));
268
269 // Copy list 1: stream the input in (the buffer is in COMMON and is promoted to COPY_DEST by the copy). This is the
270 // first submission after the UAV views were written, and a copy queue: it must not initialize the storage image
271 // (the compute queue does, in the submission that dispatches), or the data written later would be at risk.
272 stream_list->CopyBufferRegion(input.p, 0, upload.p, 0, in_bytes);
273 EXPECT(stream_list->Close() == S_OK);
274
275 D3D12_TEXTURE_COPY_LOCATION dst{}, src{};
276 dst.pResource = readback.p;
277 dst.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
278 dst.PlacedFootprint = {offset_image, {DXGI_FORMAT_R32_UINT, image_dim, image_dim, 1, image_pitch}};
279 src.pResource = image.p;
280 src.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
281
282 // Compute list.
283 ID3D12DescriptorHeap* heaps[] = {heap.p};
284 D3D12_RESOURCE_BARRIER acquire = transition(input.p, common, uav_state);
285 compute_list->ResourceBarrier(1, &acquire);
286 compute_list->SetDescriptorHeaps(1, heaps);
287 compute_list->SetComputeRootSignature(root.p);
288 compute_list->SetPipelineState(pso_fill.p);
289 const std::uint32_t constants[4] = {seed, multiplier, second_groups, 0};
290 compute_list->SetComputeRoot32BitConstants(0, 4, constants, 0);
291 compute_list->SetComputeRootDescriptorTable(1, D3D12_GPU_DESCRIPTOR_HANDLE{gpu});
292 compute_list->Dispatch(records / 64, 1, 1);
293 D3D12_RESOURCE_BARRIER between[3] = {transition(args.p, uav_state, D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT),
294 {}, {}};
295 for (int i : {1, 2}) {
296 between[i].Type = D3D12_RESOURCE_BARRIER_TYPE_UAV;
297 between[i].UAV.pResource = i == 1 ? data.p : image.p;
298 }
299 compute_list->ResourceBarrier(3, between);
300 compute_list->SetPipelineState(pso_indirect.p); // the root arguments stay
301 compute_list->ExecuteIndirect(signature.p, 1, args.p, 0, nullptr, 0);
302 D3D12_RESOURCE_BARRIER release[5] = {transition(data.p, uav_state, common),
303 transition(args.p, D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT, common),
304 transition(out2.p, uav_state, common),
305 transition(input.p, uav_state, common),
306 transition(image.p, uav_state, common)};
307 compute_list->ResourceBarrier(5, release);
308 EXPECT(compute_list->Close() == S_OK);
309
310 // Copy list 2: the results to the readback buffer, once the compute queue is done.
311 readback_list->CopyBufferRegion(readback.p, offset_data, data.p, 0, data_bytes);
312 readback_list->CopyBufferRegion(readback.p, offset_args, args.p, 0, args_bytes);
313 readback_list->CopyBufferRegion(readback.p, offset_out2, out2.p, 0, out2_bytes);
314 readback_list->CopyBufferRegion(readback.p, offset_in, input.p, 0, in_bytes);
315 readback_list->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr);
316 EXPECT(readback_list->Close() == S_OK);
317
318 const auto execute = [&](ID3D12CommandQueue* queue, ID3D12GraphicsCommandList* list) {
319 ID3D12CommandList* lists[] = {list};
320 queue->ExecuteCommandLists(1, lists);
321 return rt::d3d12::last_execute_result(queue) == leonida::ReplayResult::success;
322 };
323 const auto submit_copy = [&] {
324 return execute(copy_queue.p, stream_list.p) && SUCCEEDED(copy_queue->Signal(copy_fence.p, 1));
325 };
326 const auto submit_readback = [&] {
327 return SUCCEEDED(copy_queue->Wait(compute_fence.p, 1)) && execute(copy_queue.p, readback_list.p) &&
328 SUCCEEDED(copy_queue->Signal(copy_fence.p, 2));
329 };
330 const auto submit_compute = [&] {
331 return SUCCEEDED(compute_queue->Wait(copy_fence.p, 1)) && execute(compute_queue.p, compute_list.p) &&
332 SUCCEEDED(compute_queue->Signal(compute_fence.p, 1));
333 };
334 // In dependency order: the layer replays a list at ExecuteCommandLists and tracks every image's layout in that
335 // order, so a list that waits for another queue's signal has to be submitted after the list it waits for
336 // (the Wait-before-Signal order d3d12_queue_wait_test covers, without a resource handed over).
337 EXPECT(submit_copy() && submit_compute() && submit_readback());
338
339 const HANDLE event = CreateEventW(nullptr, FALSE, FALSE, nullptr);
340 EXPECT(event != nullptr);
341 EXPECT(SUCCEEDED(copy_fence->SetEventOnCompletion(2, event)));
342 if (WaitForSingleObject(event, 20000) != WAIT_OBJECT_0) {
343 std::fprintf(stderr, "the copy fence never reached 2 (compute fence at %llu)\n",
344 static_cast<unsigned long long>(compute_fence->GetCompletedValue()));
345 return 1;
346 }
347 CloseHandle(event);
348 EXPECT(copy_fence->GetCompletedValue() >= 2 && compute_fence->GetCompletedValue() >= 1);
349
350 void* mapped = nullptr;
351 EXPECT(SUCCEEDED(readback->Map(0, nullptr, &mapped)));
352 got.assign(static_cast<const std::uint8_t*>(mapped), static_cast<const std::uint8_t*>(mapped) + readback_bytes);
353 readback->Unmap(0, nullptr);
354
355 for (auto* r : {&upload, &input, &data, &args, &out2, &image, &readback}) r->reset();
356 stream_list.reset(); compute_list.reset(); readback_list.reset();
357 stream_alloc.reset(); compute_alloc.reset(); readback_alloc.reset();
358 copy_fence.reset(); compute_fence.reset();
359 signature.reset(); pso_fill.reset(); pso_indirect.reset(); root.reset(); heap.reset();
360 copy_queue.reset(); compute_queue.reset();
361 EXPECT(rt::d3d12_xs::device_proxy_ref_count(device.p) == 1);
362 }
363
364 unsigned mismatches = 0, words = 0;
365 const auto compare = [&](const char* what, UINT64 offset, const std::vector<std::uint32_t>& expected, UINT pitch,
366 UINT row_words) {
367 unsigned bad = 0;
368 for (std::size_t i = 0; i < expected.size(); ++i) {
369 std::uint32_t value = 0;
370 const UINT64 at = offset + (pitch ? (i / row_words) * pitch + (i % row_words) * 4 : i * 4);
371 std::memcpy(&value, got.data() + at, 4);
372 ++words;
373 if (value == expected[i]) continue;
374 ++mismatches;
375 if (bad++ < 4) std::fprintf(stderr, "%s word %zu: got %08x want %08x\n", what, i, value, expected[i]);
376 }
377 if (bad) std::fprintf(stderr, "%s: %u of %zu words differ\n", what, bad, expected.size());
378 };
379 compare("input (copy queue round trip)", offset_in, want.in, 0, 0);
380 compare("structured buffer", offset_data, want.data, 0, 0);
381 compare("dispatch arguments", offset_args, want.args, 0, 0);
382 compare("image", offset_image, want.image, image_pitch, image_dim);
383 compare("indirect dispatch output", offset_out2, want.out2, 0, 0);
384 EXPECT(!mismatches);
385 if (d.validation_errors()) {
386 std::fprintf(stderr, "%u validation errors\n", d.validation_errors());
387 return 1;
388 }
389 std::printf("M4: a COPY queue streamed an input buffer in, a COMPUTE queue ran a compute PSO over a UAV table "
390 "(structured buffer, raw buffers, an R32_UINT storage image) and a second dispatch through "
391 "ExecuteIndirect from arguments the first wrote, and a COPY queue behind a cross-queue fence read the "
392 "results back (%s): %u words matched the CPU reference (error 0)\n",
393 distinct_queues ? "two VkQueues" : "one VkQueue", words);
394 return 0;
395}
diff --git a/runtime/test/d3d12_pipeline_library_test.cpp b/runtime/test/d3d12_pipeline_library_test.cpp
new file mode 100644
index 000000000..cd7b411e5
--- /dev/null
+++ b/runtime/test/d3d12_pipeline_library_test.cpp
@@ -0,0 +1,316 @@
1// Synthetic GPU test for ID3D12Device1::CreatePipelineLibrary and ID3D12PipelineLibrary / ID3D12PipelineLibrary1:
2// - empty library creation (0-byte blob), null-output capability check (S_FALSE), and invalid/foreign/corrupt
3// blob rejection (E_INVALIDARG for null pointer with non-zero size, D3D12_ERROR_DRIVER_VERSION_MISMATCH for
4// unrecognized or corrupt headers);
5// - StorePipeline (unique names, duplicate rejection, null/empty name rejection, null/foreign PSO rejection);
6// - LoadComputePipeline, LoadGraphicsPipeline, and ID3D12PipelineLibrary1::LoadPipeline (including cross-type
7// mismatch rejection when a compute PSO is requested through LoadGraphicsPipeline or vice versa);
8// - GetSerializedSize + Serialize round-trip into a second CreatePipelineLibrary;
9// - GPU execution of both loaded compute and loaded graphics PSOs under LEONIDA_VK_VALIDATION=1.
10// No game data.
11#include "vk_test_device.h"
12#include "d3d12_test_shaders.h"
13#include "../shims/d3d12_com.h"
14#include "../src/shader_library.h"
15
16#include <cstring>
17#include <filesystem>
18#include <fstream>
19#include <vector>
20
21#if !defined(LEONIDA_TEST_CS_SPV) || !defined(LEONIDA_TEST_VS_SPV) || !defined(LEONIDA_TEST_PS_SPV)
22#error "LEONIDA_TEST_CS_SPV, LEONIDA_TEST_VS_SPV and LEONIDA_TEST_PS_SPV must be defined"
23#endif
24
25#define EXPECT(condition) do { \
26 if (!(condition)) { std::fprintf(stderr, "line %d: %s\n", __LINE__, #condition); return 1; } \
27} while (0)
28
29using namespace d3d12test;
30
31namespace {
32
33struct Vertex {
34 float x, y;
35 std::uint8_t r, g, b, a;
36};
37
38D3D12_RESOURCE_DESC tex2d_desc(UINT w, UINT h, DXGI_FORMAT fmt, D3D12_RESOURCE_FLAGS flags) {
39 D3D12_RESOURCE_DESC d{};
40 d.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
41 d.Width = w;
42 d.Height = h;
43 d.DepthOrArraySize = 1;
44 d.MipLevels = 1;
45 d.Format = fmt;
46 d.SampleDesc = {1, 0};
47 d.Layout = D3D12_TEXTURE_LAYOUT_UNKNOWN;
48 d.Flags = flags;
49 return d;
50}
51
52} // namespace
53
54int main() {
55 vktest::Device d;
56 const auto status = d.initialize();
57 if (status == vktest::DeviceStatus::unavailable) {
58 std::fprintf(stderr, "SKIP: no usable Vulkan 1.3 device\n");
59 return 77;
60 }
61 EXPECT(status == vktest::DeviceStatus::ready);
62
63 const auto cs_prog = fssm_program({0x43532001, 0xbf810000});
64 const auto vs_prog = fssm_program({0x56532001, 0xbf810000});
65 const auto ps_prog = fssm_program({0x50532001, 0xbf810000});
66 const auto cs_dxbc = shader_container(cs_prog);
67 const auto vs_dxbc = shader_container(vs_prog);
68 const auto ps_dxbc = shader_container(ps_prog);
69
70 const auto lib_dir = std::filesystem::temp_directory_path() / "leonida_pipeline_library_test";
71 std::filesystem::create_directories(lib_dir);
72 std::filesystem::copy_file(LEONIDA_TEST_CS_SPV, lib_dir / "cs.spv",
73 std::filesystem::copy_options::overwrite_existing);
74 std::filesystem::copy_file(LEONIDA_TEST_VS_SPV, lib_dir / "vs.spv",
75 std::filesystem::copy_options::overwrite_existing);
76 std::filesystem::copy_file(LEONIDA_TEST_PS_SPV, lib_dir / "ps.spv",
77 std::filesystem::copy_options::overwrite_existing);
78 {
79 std::ofstream idx(lib_dir / "index.json", std::ios::binary);
80 idx << "{\"cs\": {\"stage\": \"cs\", \"fssm_sha256\": \"" << leonida::sha256_hex(cs_prog)
81 << "\", \"bindings\": [], \"push_constant_bytes\": 144},\n"
82 " \"vs\": {\"stage\": \"vs\", \"fssm_sha256\": \"" << leonida::sha256_hex(vs_prog)
83 << "\", \"bindings\": [], \"push_constant_bytes\": 144, \"input_signature\": ["
84 "{\"semantic\": \"COLOR\", \"semantic_index\": 0, \"register\": 0, \"mask\": 15, \"rw_mask\": 15, "
85 "\"system_value\": 0, \"component_type\": \"float\"}, "
86 "{\"semantic\": \"POSITION\", \"semantic_index\": 0, \"register\": 1, \"mask\": 3, \"rw_mask\": 3, "
87 "\"system_value\": 0, \"component_type\": \"float\"}]},\n"
88 " \"ps\": {\"stage\": \"ps\", \"fssm_sha256\": \"" << leonida::sha256_hex(ps_prog)
89 << "\", \"bindings\": [], \"push_constant_bytes\": 144, \"outputs\": [0]}}";
90 }
91
92 rt::d3d12::VulkanDeviceInfo info{};
93 info.get_instance_proc = d.instance_proc;
94 info.instance = d.instance;
95 info.physical = d.physical;
96 info.device = d.device;
97 info.queue = d.queue;
98 info.queue_family = d.family;
99 info.buffer_device_address = true;
100 info.shader_dir = lib_dir.string();
101
102 Ref<ID3D12Device1> device;
103 EXPECT(SUCCEEDED(rt::d3d12::create_vulkan_device(info, IID_PPV_ARGS(&device.p))));
104
105 // 1. CreatePipelineLibrary creation, capability check (null output -> S_FALSE), and invalid/corrupt blobs.
106 {
107 EXPECT(device->CreatePipelineLibrary(nullptr, 0, __uuidof(ID3D12PipelineLibrary), nullptr) == S_FALSE);
108 Ref<ID3D12PipelineLibrary> bad;
109 EXPECT(device->CreatePipelineLibrary(nullptr, 16, IID_PPV_ARGS(&bad.p)) == E_INVALIDARG && !bad.p);
110 const std::uint32_t foreign[4] = {0xDEADBEEFu, 1u, 0u, 0u};
111 EXPECT(device->CreatePipelineLibrary(foreign, sizeof(foreign), IID_PPV_ARGS(&bad.p)) ==
112 D3D12_ERROR_DRIVER_VERSION_MISMATCH &&
113 !bad.p);
114 const std::uint8_t tiny[4] = {1, 2, 3, 4};
115 EXPECT(device->CreatePipelineLibrary(tiny, sizeof(tiny), IID_PPV_ARGS(&bad.p)) ==
116 D3D12_ERROR_DRIVER_VERSION_MISMATCH &&
117 !bad.p);
118 }
119
120 // 2. Build one compute PSO and one graphics PSO.
121 D3D12_DESCRIPTOR_RANGE uav_range{D3D12_DESCRIPTOR_RANGE_TYPE_UAV, 1, 1, 0, 0};
122 D3D12_ROOT_PARAMETER cs_params[3]{};
123 cs_params[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS;
124 cs_params[0].Constants = {0, 0, 1};
125 cs_params[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_UAV;
126 cs_params[1].Descriptor = {0, 0};
127 cs_params[2].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;
128 cs_params[2].DescriptorTable = {1, &uav_range};
129 D3D12_VERSIONED_ROOT_SIGNATURE_DESC cs_rs_desc{};
130 cs_rs_desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_0;
131 cs_rs_desc.Desc_1_0 = {3, cs_params, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_NONE};
132 const auto cs_rs_blob = serialize_root_signature(cs_rs_desc);
133 Ref<ID3D12RootSignature> cs_rs;
134 EXPECT(SUCCEEDED(device->CreateRootSignature(0, cs_rs_blob.data(), cs_rs_blob.size(), IID_PPV_ARGS(&cs_rs.p))));
135
136 D3D12_COMPUTE_PIPELINE_STATE_DESC cs_desc{};
137 cs_desc.pRootSignature = cs_rs.p;
138 cs_desc.CS = {cs_dxbc.data(), cs_dxbc.size()};
139 Ref<ID3D12PipelineState> cs_pso;
140 EXPECT(SUCCEEDED(device->CreateComputePipelineState(&cs_desc, IID_PPV_ARGS(&cs_pso.p))));
141
142 D3D12_ROOT_PARAMETER gfx_params[2]{};
143 gfx_params[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS;
144 gfx_params[0].Constants = {0, 0, 2};
145 gfx_params[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_CBV;
146 gfx_params[1].Descriptor = {1, 0};
147 D3D12_VERSIONED_ROOT_SIGNATURE_DESC gfx_rs_desc{};
148 gfx_rs_desc.Version = D3D_ROOT_SIGNATURE_VERSION_1_0;
149 gfx_rs_desc.Desc_1_0 = {2, gfx_params, 0, nullptr, D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT};
150 const auto gfx_rs_blob = serialize_root_signature(gfx_rs_desc);
151 Ref<ID3D12RootSignature> gfx_rs;
152 EXPECT(SUCCEEDED(device->CreateRootSignature(0, gfx_rs_blob.data(), gfx_rs_blob.size(), IID_PPV_ARGS(&gfx_rs.p))));
153
154 const D3D12_INPUT_ELEMENT_DESC input_elems[2] = {
155 {"POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 0, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0},
156 {"COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, D3D12_APPEND_ALIGNED_ELEMENT,
157 D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0},
158 };
159 D3D12_GRAPHICS_PIPELINE_STATE_DESC gfx_desc{};
160 gfx_desc.pRootSignature = gfx_rs.p;
161 gfx_desc.VS = {vs_dxbc.data(), vs_dxbc.size()};
162 gfx_desc.PS = {ps_dxbc.data(), ps_dxbc.size()};
163 gfx_desc.BlendState.RenderTarget[0].RenderTargetWriteMask = D3D12_COLOR_WRITE_ENABLE_ALL;
164 gfx_desc.SampleMask = 0xFFFFFFFFu;
165 gfx_desc.RasterizerState.FillMode = D3D12_FILL_MODE_SOLID;
166 gfx_desc.RasterizerState.CullMode = D3D12_CULL_MODE_BACK;
167 gfx_desc.RasterizerState.DepthClipEnable = TRUE;
168 gfx_desc.InputLayout = {input_elems, 2};
169 gfx_desc.PrimitiveTopologyType = D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE;
170 gfx_desc.NumRenderTargets = 1;
171 gfx_desc.RTVFormats[0] = DXGI_FORMAT_R8G8B8A8_UNORM;
172 gfx_desc.SampleDesc = {1, 0};
173 Ref<ID3D12PipelineState> gfx_pso;
174 EXPECT(SUCCEEDED(device->CreateGraphicsPipelineState(&gfx_desc, IID_PPV_ARGS(&gfx_pso.p))));
175
176 // 3. Store, load, cross-type rejection, and serialize round-trip.
177 Ref<ID3D12PipelineLibrary1> lib;
178 EXPECT(SUCCEEDED(device->CreatePipelineLibrary(nullptr, 0, IID_PPV_ARGS(&lib.p))) && lib.p);
179 Ref<ID3D12Device> parent_dev;
180 EXPECT(SUCCEEDED(lib->GetDevice(IID_PPV_ARGS(&parent_dev.p))) && parent_dev.p);
181
182 EXPECT(lib->StorePipeline(nullptr, cs_pso.p) == E_INVALIDARG);
183 EXPECT(lib->StorePipeline(L"", cs_pso.p) == E_INVALIDARG);
184 EXPECT(lib->StorePipeline(L"cs", nullptr) == E_INVALIDARG);
185 EXPECT(SUCCEEDED(lib->StorePipeline(L"cs", cs_pso.p)));
186 EXPECT(lib->StorePipeline(L"cs", cs_pso.p) == E_INVALIDARG); // duplicate name
187 EXPECT(SUCCEEDED(lib->StorePipeline(L"gfx", gfx_pso.p)));
188
189 Ref<ID3D12PipelineState> loaded_cs, loaded_gfx, loaded_any, wrong;
190 EXPECT(lib->LoadComputePipeline(L"missing", &cs_desc, IID_PPV_ARGS(&wrong.p)) == E_INVALIDARG && !wrong.p);
191 EXPECT(lib->LoadComputePipeline(L"gfx", &cs_desc, IID_PPV_ARGS(&wrong.p)) == E_INVALIDARG && !wrong.p);
192 EXPECT(lib->LoadGraphicsPipeline(L"cs", &gfx_desc, IID_PPV_ARGS(&wrong.p)) == E_INVALIDARG && !wrong.p);
193 EXPECT(SUCCEEDED(lib->LoadComputePipeline(L"cs", &cs_desc, IID_PPV_ARGS(&loaded_cs.p))) && loaded_cs.p);
194 EXPECT(SUCCEEDED(lib->LoadGraphicsPipeline(L"gfx", &gfx_desc, IID_PPV_ARGS(&loaded_gfx.p))) && loaded_gfx.p);
195
196 std::uint32_t dummy_stream = 0;
197 D3D12_PIPELINE_STATE_STREAM_DESC stream_desc{sizeof(dummy_stream), &dummy_stream};
198 D3D12_PIPELINE_STATE_STREAM_DESC empty_stream{0, nullptr};
199 EXPECT(lib->LoadPipeline(L"gfx", &empty_stream, IID_PPV_ARGS(&wrong.p)) == E_INVALIDARG && !wrong.p);
200 EXPECT(SUCCEEDED(lib->LoadPipeline(L"gfx", &stream_desc, IID_PPV_ARGS(&loaded_any.p))) && loaded_any.p);
201
202 const SIZE_T blob_size = lib->GetSerializedSize();
203 EXPECT(blob_size >= 16);
204 std::vector<std::uint8_t> blob(blob_size);
205 EXPECT(lib->Serialize(nullptr, blob_size) == E_INVALIDARG);
206 EXPECT(lib->Serialize(blob.data(), blob_size - 1) == E_INVALIDARG);
207 EXPECT(SUCCEEDED(lib->Serialize(blob.data(), blob_size)));
208
209 Ref<ID3D12PipelineLibrary> reloaded;
210 EXPECT(SUCCEEDED(device->CreatePipelineLibrary(blob.data(), blob.size(), IID_PPV_ARGS(&reloaded.p))) && reloaded.p);
211
212 // 4. Execute the loaded compute PSO and loaded graphics PSO on the GPU.
213 Ref<ID3D12CommandQueue> queue;
214 const D3D12_COMMAND_QUEUE_DESC qd{D3D12_COMMAND_LIST_TYPE_DIRECT, 0, D3D12_COMMAND_QUEUE_FLAG_NONE, 0};
215 EXPECT(SUCCEEDED(device->CreateCommandQueue(&qd, IID_PPV_ARGS(&queue.p))));
216 Ref<ID3D12CommandAllocator> alloc;
217 EXPECT(SUCCEEDED(device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&alloc.p))));
218 Ref<ID3D12GraphicsCommandList> list;
219 EXPECT(SUCCEEDED(
220 device->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, alloc.p, nullptr, IID_PPV_ARGS(&list.p))));
221 Ref<ID3D12Fence> fence;
222 EXPECT(SUCCEEDED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence.p))));
223
224 constexpr UINT W = 16, H = 16;
225 const D3D12_HEAP_PROPERTIES hp_def{D3D12_HEAP_TYPE_DEFAULT};
226 const D3D12_HEAP_PROPERTIES hp_up{D3D12_HEAP_TYPE_UPLOAD};
227 const D3D12_HEAP_PROPERTIES hp_rb{D3D12_HEAP_TYPE_READBACK};
228 const auto rtd = tex2d_desc(W, H, DXGI_FORMAT_R8G8B8A8_UNORM, D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET);
229 const Vertex verts[4] = {
230 {-1.0f, 1.0f, 255, 0, 0, 255},
231 { 0.0f, 1.0f, 255, 0, 0, 255},
232 { 0.0f, 0.0f, 255, 0, 0, 255},
233 {-1.0f, 0.0f, 255, 0, 0, 255},
234 };
235 const std::uint16_t indices[6] = {0, 1, 2, 0, 2, 3};
236 const float tint[4] = {1.0f, 0.0f, 1.0f, 1.0f};
237 const auto vbd = buffer_desc(sizeof(verts));
238 const auto ibd = buffer_desc(sizeof(indices));
239 const auto cbd = buffer_desc(256);
240 Ref<ID3D12Resource> rt, vb, ib, cb, rb;
241 EXPECT(SUCCEEDED(device->CreateCommittedResource(&hp_def, D3D12_HEAP_FLAG_NONE, &rtd,
242 D3D12_RESOURCE_STATE_RENDER_TARGET, nullptr, IID_PPV_ARGS(&rt.p))));
243 EXPECT(SUCCEEDED(device->CreateCommittedResource(&hp_up, D3D12_HEAP_FLAG_NONE, &vbd,
244 D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&vb.p))));
245 EXPECT(SUCCEEDED(device->CreateCommittedResource(&hp_up, D3D12_HEAP_FLAG_NONE, &ibd,
246 D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&ib.p))));
247 EXPECT(SUCCEEDED(device->CreateCommittedResource(&hp_up, D3D12_HEAP_FLAG_NONE, &cbd,
248 D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&cb.p))));
249 void* p = nullptr;
250 EXPECT(SUCCEEDED(vb->Map(0, nullptr, &p)));
251 std::memcpy(p, verts, sizeof(verts));
252 vb->Unmap(0, nullptr);
253 EXPECT(SUCCEEDED(ib->Map(0, nullptr, &p)));
254 std::memcpy(p, indices, sizeof(indices));
255 ib->Unmap(0, nullptr);
256 EXPECT(SUCCEEDED(cb->Map(0, nullptr, &p)));
257 std::memcpy(p, tint, sizeof(tint));
258 cb->Unmap(0, nullptr);
259
260 D3D12_PLACED_SUBRESOURCE_FOOTPRINT fp{};
261 UINT64 total_bytes = 0;
262 device->GetCopyableFootprints(&rtd, 0, 1, 0, &fp, nullptr, nullptr, &total_bytes);
263 const auto rbd = buffer_desc(total_bytes);
264 EXPECT(SUCCEEDED(device->CreateCommittedResource(&hp_rb, D3D12_HEAP_FLAG_NONE, &rbd,
265 D3D12_RESOURCE_STATE_COPY_DEST, nullptr, IID_PPV_ARGS(&rb.p))));
266
267 Ref<ID3D12DescriptorHeap> rtv_heap;
268 const D3D12_DESCRIPTOR_HEAP_DESC rhd{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 1, D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0};
269 EXPECT(SUCCEEDED(device->CreateDescriptorHeap(&rhd, IID_PPV_ARGS(&rtv_heap.p))));
270 const auto rtv = rtv_heap->GetCPUDescriptorHandleForHeapStart();
271 device->CreateRenderTargetView(rt.p, nullptr, rtv);
272
273 const float blue[4] = {0.0f, 0.0f, 1.0f, 1.0f};
274 list->ClearRenderTargetView(rtv, blue, 0, nullptr);
275 list->OMSetRenderTargets(1, &rtv, FALSE, nullptr);
276 const D3D12_VIEWPORT vp{0, 0, float(W), float(H), 0.0f, 1.0f};
277 const D3D12_RECT sc{0, 0, LONG(W), LONG(H)};
278 list->RSSetViewports(1, &vp);
279 list->RSSetScissorRects(1, &sc);
280 list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
281 const D3D12_VERTEX_BUFFER_VIEW vbv{vb->GetGPUVirtualAddress(), sizeof(verts), sizeof(Vertex)};
282 const D3D12_INDEX_BUFFER_VIEW ibv{ib->GetGPUVirtualAddress(), sizeof(indices), DXGI_FORMAT_R16_UINT};
283 list->IASetVertexBuffers(0, 1, &vbv);
284 list->IASetIndexBuffer(&ibv);
285 list->SetGraphicsRootSignature(gfx_rs.p);
286 const float offset[2] = {0.0f, 0.0f};
287 list->SetGraphicsRoot32BitConstants(0, 2, offset, 0);
288 list->SetGraphicsRootConstantBufferView(1, cb->GetGPUVirtualAddress());
289 list->SetPipelineState(loaded_gfx.p);
290 list->DrawIndexedInstanced(6, 1, 0, 0, 0);
291
292 const auto to_src = transition(rt.p, D3D12_RESOURCE_STATE_RENDER_TARGET, D3D12_RESOURCE_STATE_COPY_SOURCE);
293 list->ResourceBarrier(1, &to_src);
294 D3D12_TEXTURE_COPY_LOCATION src_loc{rt.p, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, {0}};
295 D3D12_TEXTURE_COPY_LOCATION dst_loc{rb.p, D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT, {}};
296 dst_loc.PlacedFootprint = fp;
297 list->CopyTextureRegion(&dst_loc, 0, 0, 0, &src_loc, nullptr);
298 EXPECT(SUCCEEDED(list->Close()));
299 ID3D12CommandList* lists[] = {list.p};
300 queue->ExecuteCommandLists(1, lists);
301 EXPECT(rt::d3d12::last_execute_result(queue.p) == leonida::ReplayResult::success);
302 EXPECT(SUCCEEDED(queue->Signal(fence.p, 1)) && SUCCEEDED(fence->SetEventOnCompletion(1, nullptr)));
303
304 EXPECT(SUCCEEDED(rb->Map(0, nullptr, &p)));
305 const auto* bytes = static_cast<const std::uint8_t*>(p);
306 std::uint32_t tl = 0, br = 0;
307 std::memcpy(&tl, bytes + 2 * fp.Footprint.RowPitch + 2 * 4, 4);
308 std::memcpy(&br, bytes + 12 * fp.Footprint.RowPitch + 12 * 4, 4);
309 EXPECT(tl == 0xFF0000FFu); // red quad drawn by PSO loaded from PipelineLibrary
310 EXPECT(br == 0xFFFF0000u); // blue background clear
311 rb->Unmap(0, nullptr);
312
313 EXPECT(d.validation_errors() == 0);
314 std::printf("d3d12_pipeline_library_test: ok\n");
315 return 0;
316}
diff --git a/runtime/test/d3d12_present_test.cpp b/runtime/test/d3d12_present_test.cpp
index 8b28eb67a..f01fb902b 100644
--- a/runtime/test/d3d12_present_test.cpp
+++ b/runtime/test/d3d12_present_test.cpp
@@ -115,6 +115,8 @@ int fail_semaphore_in = 0; // armed: the n-th vkCreateSemaphore fr
115bool fail_surface_formats = false; // armed: the next surface-format query fails before creation 115bool fail_surface_formats = false; // armed: the next surface-format query fails before creation
116bool observe_next_swapchain = false; 116bool observe_next_swapchain = false;
117bool report_undefined_extent = false; // armed: surface capabilities reports undefined extent (0xFFFFFFFF) 117bool report_undefined_extent = false; // armed: surface capabilities reports undefined extent (0xFFFFFFFF)
118bool undefined_extent_queried = false;
119VkExtent2D last_swapchain_extent{};
118VkSwapchainKHR last_created_swapchain = VK_NULL_HANDLE; 120VkSwapchainKHR last_created_swapchain = VK_NULL_HANDLE;
119VkSwapchainKHR observed_old_swapchain = VK_NULL_HANDLE; 121VkSwapchainKHR observed_old_swapchain = VK_NULL_HANDLE;
120unsigned out_of_date = 0; // presents the real driver reported out of date 122unsigned out_of_date = 0; // presents the real driver reported out of date
@@ -170,6 +172,7 @@ VKAPI_ATTR VkResult VKAPI_CALL surface_formats(VkPhysicalDevice physical, VkSurf
170 172
171VKAPI_ATTR VkResult VKAPI_CALL create_swapchain(VkDevice device, const VkSwapchainCreateInfoKHR* info, 173VKAPI_ATTR VkResult VKAPI_CALL create_swapchain(VkDevice device, const VkSwapchainCreateInfoKHR* info,
172 const VkAllocationCallbacks* allocator, VkSwapchainKHR* out) { 174 const VkAllocationCallbacks* allocator, VkSwapchainKHR* out) {
175 if (info) last_swapchain_extent = info->imageExtent;
173 if (observe_next_swapchain) { 176 if (observe_next_swapchain) {
174 observed_old_swapchain = info->oldSwapchain; 177 observed_old_swapchain = info->oldSwapchain;
175 observe_next_swapchain = false; 178 observe_next_swapchain = false;
@@ -185,6 +188,7 @@ VKAPI_ATTR VkResult VKAPI_CALL get_surface_capabilities(VkPhysicalDevice physica
185 if (result == VK_SUCCESS && report_undefined_extent && caps) { 188 if (result == VK_SUCCESS && report_undefined_extent && caps) {
186 caps->currentExtent.width = 0xFFFFFFFF; 189 caps->currentExtent.width = 0xFFFFFFFF;
187 caps->currentExtent.height = 0xFFFFFFFF; 190 caps->currentExtent.height = 0xFFFFFFFF;
191 undefined_extent_queried = true;
188 } 192 }
189 return result; 193 return result;
190} 194}
@@ -409,9 +413,14 @@ int main() {
409 EXPECT(SUCCEEDED(fence->SetEventOnCompletion(signalled, nullptr))); 413 EXPECT(SUCCEEDED(fence->SetEventOnCompletion(signalled, nullptr)));
410 414
411 // 4. Undefined surface extent (0xFFFFFFFF, reported by Intel UHD graphics / Win32 WSI; D3D-165): 415 // 4. Undefined surface extent (0xFFFFFFFF, reported by Intel UHD graphics / Win32 WSI; D3D-165):
412 // the presenter queries the window client extent and clamps to surface bounds. 416 // switch vsync to 0 to force swapchain recreation, verifying that vkGetPhysicalDeviceSurfaceCapabilitiesKHR
417 // is reached while armed and that vkCreateSwapchainKHR receives the clamped client extent (400x300)
418 // instead of 0xFFFFFFFF.
413 driver::report_undefined_extent = true; 419 driver::report_undefined_extent = true;
414 EXPECT(frame(1)); 420 driver::undefined_extent_queried = false;
421 EXPECT(frame(0));
422 EXPECT(driver::undefined_extent_queried);
423 EXPECT(driver::last_swapchain_extent.width == 400 && driver::last_swapchain_extent.height == 300);
415 EXPECT(presenter->extent().width == 400 && presenter->extent().height == 300); 424 EXPECT(presenter->extent().width == 400 && presenter->extent().height == 300);
416 driver::report_undefined_extent = false; 425 driver::report_undefined_extent = false;
417 426
diff --git a/runtime/test/d3d12_translated_draw_test.cpp b/runtime/test/d3d12_translated_draw_test.cpp
index 80bd911c1..c6b660dda 100644
--- a/runtime/test/d3d12_translated_draw_test.cpp
+++ b/runtime/test/d3d12_translated_draw_test.cpp
@@ -63,8 +63,8 @@ struct Vertex {
63}; 63};
64 64
65using Pixel = std::array<float, 4>; 65using Pixel = std::array<float, 4>;
66constexpr UINT extent = 64; 66constexpr UINT target_extent = 64;
67constexpr UINT pitch = extent * sizeof(Pixel); // 1024, a multiple of 256 67constexpr UINT pitch = target_extent * sizeof(Pixel); // 1024, a multiple of 256
68 68
69// A V# for the vertex records: stride 32, `records` records, format 32_32_32_32_FLOAT, identity swizzle. The 69// A V# for the vertex records: stride 32, `records` records, format 32_32_32_32_FLOAT, identity swizzle. The
70// out-of-range mode is structured (an index checked against num_records), which is what the hardware does with an 70// out-of-range mode is structured (an index checked against num_records), which is what the hardware does with an
@@ -113,7 +113,7 @@ int main() {
113 vertex(-1, 0, c2), vertex(-1, -1, c2), vertex(0, -1, c2)}; 113 vertex(-1, 0, c2), vertex(-1, -1, c2), vertex(0, -1, c2)};
114 static_assert(sizeof(Vertex) == 32 && sizeof(vertices) == 288); 114 static_assert(sizeof(Vertex) == 32 && sizeof(vertices) == 288);
115 115
116 std::vector<Pixel> pixels(extent * extent); 116 std::vector<Pixel> pixels(target_extent * target_extent);
117 { 117 {
118 rt::d3d12::VulkanDeviceInfo info{}; 118 rt::d3d12::VulkanDeviceInfo info{};
119 info.get_instance_proc = d.instance_proc; 119 info.get_instance_proc = d.instance_proc;
@@ -178,13 +178,13 @@ int main() {
178 EXPECT(SUCCEEDED(device->CreateCommittedResource(&upload_heap, D3D12_HEAP_FLAG_NONE, &upload_desc, 178 EXPECT(SUCCEEDED(device->CreateCommittedResource(&upload_heap, D3D12_HEAP_FLAG_NONE, &upload_desc,
179 D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, 179 D3D12_RESOURCE_STATE_GENERIC_READ, nullptr,
180 IID_PPV_ARGS(&upload.p)))); 180 IID_PPV_ARGS(&upload.p))));
181 const auto readback_desc = buffer_desc(pitch * extent); 181 const auto readback_desc = buffer_desc(pitch * target_extent);
182 EXPECT(SUCCEEDED(device->CreateCommittedResource(&readback_heap, D3D12_HEAP_FLAG_NONE, &readback_desc, 182 EXPECT(SUCCEEDED(device->CreateCommittedResource(&readback_heap, D3D12_HEAP_FLAG_NONE, &readback_desc,
183 D3D12_RESOURCE_STATE_COPY_DEST, nullptr, 183 D3D12_RESOURCE_STATE_COPY_DEST, nullptr,
184 IID_PPV_ARGS(&readback.p)))); 184 IID_PPV_ARGS(&readback.p))));
185 D3D12_RESOURCE_DESC rt_desc{}; 185 D3D12_RESOURCE_DESC rt_desc{};
186 rt_desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; 186 rt_desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
187 rt_desc.Width = rt_desc.Height = extent; 187 rt_desc.Width = rt_desc.Height = target_extent;
188 rt_desc.DepthOrArraySize = 1; 188 rt_desc.DepthOrArraySize = 1;
189 rt_desc.MipLevels = 1; 189 rt_desc.MipLevels = 1;
190 rt_desc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT; 190 rt_desc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT;
@@ -245,8 +245,8 @@ int main() {
245 ID3D12DescriptorHeap* heaps[] = {srv_heap.p}; 245 ID3D12DescriptorHeap* heaps[] = {srv_heap.p};
246 list->SetDescriptorHeaps(1, heaps); 246 list->SetDescriptorHeaps(1, heaps);
247 list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); 247 list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
248 const D3D12_VIEWPORT viewport{0, 0, float(extent), float(extent), 0, 1}; 248 const D3D12_VIEWPORT viewport{0, 0, float(target_extent), float(target_extent), 0, 1};
249 const D3D12_RECT scissor{0, 0, LONG(extent), LONG(extent)}; 249 const D3D12_RECT scissor{0, 0, LONG(target_extent), LONG(target_extent)};
250 list->RSSetViewports(1, &viewport); 250 list->RSSetViewports(1, &viewport);
251 list->RSSetScissorRects(1, &scissor); 251 list->RSSetScissorRects(1, &scissor);
252 list->OMSetRenderTargets(1, &rtv, FALSE, nullptr); 252 list->OMSetRenderTargets(1, &rtv, FALSE, nullptr);
@@ -271,7 +271,7 @@ int main() {
271 D3D12_TEXTURE_COPY_LOCATION dst{}; 271 D3D12_TEXTURE_COPY_LOCATION dst{};
272 dst.pResource = readback.p; 272 dst.pResource = readback.p;
273 dst.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; 273 dst.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
274 dst.PlacedFootprint = {0, {DXGI_FORMAT_R32G32B32A32_FLOAT, extent, extent, 1, pitch}}; 274 dst.PlacedFootprint = {0, {DXGI_FORMAT_R32G32B32A32_FLOAT, target_extent, target_extent, 1, pitch}};
275 D3D12_TEXTURE_COPY_LOCATION src{}; 275 D3D12_TEXTURE_COPY_LOCATION src{};
276 src.pResource = target.p; 276 src.pResource = target.p;
277 src.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX; 277 src.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
@@ -302,10 +302,10 @@ int main() {
302 const Pixel top_left = {0.125f, 1.0f, 0.75f, 1.0f}, bottom_right = {0.25f, 1.125f, 0.875f, 1.0f}; 302 const Pixel top_left = {0.125f, 1.0f, 0.75f, 1.0f}, bottom_right = {0.25f, 1.125f, 0.875f, 1.0f};
303 const Pixel bottom_left = {0.75f, 0.25f, 0.75f, 1.0f}; 303 const Pixel bottom_left = {0.75f, 0.25f, 0.75f, 1.0f};
304 unsigned mismatches = 0, edge = 0, edge_triangle = 0, edge_clear = 0; 304 unsigned mismatches = 0, edge = 0, edge_triangle = 0, edge_clear = 0;
305 for (UINT row = 0; row < extent; ++row) { 305 for (UINT row = 0; row < target_extent; ++row) {
306 for (UINT col = 0; col < extent; ++col) { 306 for (UINT col = 0; col < target_extent; ++col) {
307 const bool top = row < extent / 2, left = col < extent / 2; 307 const bool top = row < target_extent / 2, left = col < target_extent / 2;
308 const Pixel& got = pixels[row * extent + col]; 308 const Pixel& got = pixels[row * target_extent + col];
309 const auto bits_equal = [&](const Pixel& want) { return std::memcmp(&got, &want, sizeof(Pixel)) == 0; }; 309 const auto bits_equal = [&](const Pixel& want) { return std::memcmp(&got, &want, sizeof(Pixel)) == 0; };
310 const Pixel* want; 310 const Pixel* want;
311 if (top) { 311 if (top) {
@@ -340,6 +340,6 @@ int main() {
340 "pixels on the triangle's diagonal (%u its colour, %u the clear colour). User data from a descriptor " 340 "pixels on the triangle's diagonal (%u its colour, %u the clear colour). User data from a descriptor "
341 "table and root constants, V# vertex fetch from the arena, PS constants " 341 "table and root constants, V# vertex fetch from the arena, PS constants "
342 "through the code base\n", 342 "through the code base\n",
343 extent * extent - edge, extent * extent, edge, edge_triangle, edge_clear); 343 target_extent * target_extent - edge, target_extent * target_extent, edge, edge_triangle, edge_clear);
344 return 0; 344 return 0;
345} 345}
diff --git a/runtime/test/d3d12_typeless_rtv_test.cpp b/runtime/test/d3d12_typeless_rtv_test.cpp
index cc6054f85..d8b8d841e 100644
--- a/runtime/test/d3d12_typeless_rtv_test.cpp
+++ b/runtime/test/d3d12_typeless_rtv_test.cpp
@@ -213,19 +213,36 @@ bool clear_and_read(ID3D12Device* device, DXGI_FORMAT whole_format, DXGI_FORMAT
213 return true; 213 return true;
214} 214}
215bool rejects_view(ID3D12Device* device, DXGI_FORMAT resource_format, const D3D12_RENDER_TARGET_VIEW_DESC* view, 215bool rejects_view(ID3D12Device* device, DXGI_FORMAT resource_format, const D3D12_RENDER_TARGET_VIEW_DESC* view,
216 UINT16 mips = 1, UINT16 layers = 1) { 216 UINT16 mips = 1, UINT16 layers = 1, UINT samples = 1,
217 const DXGI_FORMAT* cast_list = nullptr, UINT32 cast_count = 0) {
217 Ref<ID3D12Resource> resource; 218 Ref<ID3D12Resource> resource;
218 D3D12_HEAP_PROPERTIES heap_properties{D3D12_HEAP_TYPE_DEFAULT}; 219 D3D12_HEAP_PROPERTIES heap_properties{D3D12_HEAP_TYPE_DEFAULT};
219 D3D12_RESOURCE_DESC texture{}; 220 if (cast_count) {
220 texture.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; 221 Ref<ID3D12Device10> device10;
221 texture.Width = texture.Height = 4; 222 CHECK(SUCCEEDED(device->QueryInterface(IID_PPV_ARGS(&device10.p))));
222 texture.DepthOrArraySize = layers; 223 D3D12_RESOURCE_DESC1 tex1{};
223 texture.MipLevels = mips; 224 tex1.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
224 texture.Format = resource_format; 225 tex1.Width = tex1.Height = 4;
225 texture.SampleDesc.Count = 1; 226 tex1.DepthOrArraySize = layers;
226 texture.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET; 227 tex1.MipLevels = mips;
227 CHECK(SUCCEEDED(device->CreateCommittedResource(&heap_properties, D3D12_HEAP_FLAG_NONE, &texture, 228 tex1.Format = resource_format;
228 D3D12_RESOURCE_STATE_RENDER_TARGET, nullptr, IID_PPV_ARGS(&resource.p)))); 229 tex1.SampleDesc.Count = samples;
230 tex1.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
231 CHECK(SUCCEEDED(device10->CreateCommittedResource3(&heap_properties, D3D12_HEAP_FLAG_NONE, &tex1,
232 D3D12_BARRIER_LAYOUT_RENDER_TARGET, nullptr, nullptr, cast_count, cast_list,
233 IID_PPV_ARGS(&resource.p))));
234 } else {
235 D3D12_RESOURCE_DESC texture{};
236 texture.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
237 texture.Width = texture.Height = 4;
238 texture.DepthOrArraySize = layers;
239 texture.MipLevels = mips;
240 texture.Format = resource_format;
241 texture.SampleDesc.Count = samples;
242 texture.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
243 CHECK(SUCCEEDED(device->CreateCommittedResource(&heap_properties, D3D12_HEAP_FLAG_NONE, &texture,
244 D3D12_RESOURCE_STATE_RENDER_TARGET, nullptr, IID_PPV_ARGS(&resource.p))));
245 }
229 Ref<ID3D12DescriptorHeap> heap; 246 Ref<ID3D12DescriptorHeap> heap;
230 const D3D12_DESCRIPTOR_HEAP_DESC desc{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 1, D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0}; 247 const D3D12_DESCRIPTOR_HEAP_DESC desc{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 1, D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0};
231 CHECK(SUCCEEDED(device->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&heap.p)))); 248 CHECK(SUCCEEDED(device->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&heap.p))));
@@ -237,7 +254,7 @@ bool rejects_view(ID3D12Device* device, DXGI_FORMAT resource_format, const D3D12
237 const auto handle = heap->GetCPUDescriptorHandleForHeapStart(); 254 const auto handle = heap->GetCPUDescriptorHandleForHeapStart();
238 // For the supported shape, overwrite a valid slot too: rejection must not leave its old RTV active. 255 // For the supported shape, overwrite a valid slot too: rejection must not leave its old RTV active.
239 D3D12_RENDER_TARGET_VIEW_DESC seed{}; 256 D3D12_RENDER_TARGET_VIEW_DESC seed{};
240 seed.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2D; 257 seed.ViewDimension = samples > 1 ? D3D12_RTV_DIMENSION_TEXTURE2DMS : D3D12_RTV_DIMENSION_TEXTURE2D;
241 seed.Format = resource_format == DXGI_FORMAT_R8G8B8A8_TYPELESS ? DXGI_FORMAT_R8G8B8A8_UNORM : resource_format; 258 seed.Format = resource_format == DXGI_FORMAT_R8G8B8A8_TYPELESS ? DXGI_FORMAT_R8G8B8A8_UNORM : resource_format;
242 device->CreateRenderTargetView(resource.p, &seed, handle); 259 device->CreateRenderTargetView(resource.p, &seed, handle);
243 device->CreateRenderTargetView(resource.p, view, handle); 260 device->CreateRenderTargetView(resource.p, view, handle);
@@ -246,6 +263,150 @@ bool rejects_view(ID3D12Device* device, DXGI_FORMAT resource_format, const D3D12
246 CHECK(list->Close() == E_INVALIDARG); // The invalid list is never sent to the GPU. 263 CHECK(list->Close() == E_INVALIDARG); // The invalid list is never sent to the GPU.
247 return true; 264 return true;
248} 265}
266
267bool clear_and_read_msaa(ID3D12Device* device, DXGI_FORMAT resource_format,
268 const DXGI_FORMAT* cast_list, UINT32 cast_count,
269 DXGI_FORMAT whole_format, DXGI_FORMAT rect_format, bool partial,
270 bool array, UINT first_layer, UINT layer_count,
271 std::vector<unsigned char>& pixels) {
272 Ref<ID3D12CommandQueue> queue;
273 Ref<ID3D12CommandAllocator> allocator;
274 Ref<ID3D12GraphicsCommandList> list;
275 Ref<ID3D12Fence> fence;
276 D3D12_COMMAND_QUEUE_DESC queue_desc{};
277 CHECK(SUCCEEDED(device->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&queue.p))));
278 CHECK(SUCCEEDED(device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&allocator.p))));
279 CHECK(SUCCEEDED(device->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, allocator.p, nullptr,
280 IID_PPV_ARGS(&list.p))));
281 CHECK(SUCCEEDED(device->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence.p))));
282
283 constexpr UINT width = 5, height = 3;
284 const UINT16 layers = array ? 4 : 1;
285 Ref<ID3D12Resource> msaa, resolved, readback;
286 D3D12_HEAP_PROPERTIES default_heap{D3D12_HEAP_TYPE_DEFAULT};
287 if (cast_count) {
288 Ref<ID3D12Device10> device10;
289 CHECK(SUCCEEDED(device->QueryInterface(IID_PPV_ARGS(&device10.p))));
290 D3D12_RESOURCE_DESC1 tex1{};
291 tex1.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
292 tex1.Width = width;
293 tex1.Height = height;
294 tex1.DepthOrArraySize = layers;
295 tex1.MipLevels = 1;
296 tex1.Format = resource_format;
297 tex1.SampleDesc.Count = 4;
298 tex1.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
299 CHECK(SUCCEEDED(device10->CreateCommittedResource3(&default_heap, D3D12_HEAP_FLAG_NONE, &tex1,
300 D3D12_BARRIER_LAYOUT_RENDER_TARGET, nullptr, nullptr, cast_count, cast_list,
301 IID_PPV_ARGS(&msaa.p))));
302 } else {
303 D3D12_RESOURCE_DESC tex{};
304 tex.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
305 tex.Width = width;
306 tex.Height = height;
307 tex.DepthOrArraySize = layers;
308 tex.MipLevels = 1;
309 tex.Format = resource_format;
310 tex.SampleDesc.Count = 4;
311 tex.Flags = D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
312 CHECK(SUCCEEDED(device->CreateCommittedResource(&default_heap, D3D12_HEAP_FLAG_NONE, &tex,
313 D3D12_RESOURCE_STATE_RENDER_TARGET, nullptr, IID_PPV_ARGS(&msaa.p))));
314 }
315 D3D12_RESOURCE_DESC resolved_desc{};
316 resolved_desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
317 resolved_desc.Width = width;
318 resolved_desc.Height = height;
319 resolved_desc.DepthOrArraySize = layers;
320 resolved_desc.MipLevels = 1;
321 resolved_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
322 resolved_desc.SampleDesc.Count = 1;
323 CHECK(SUCCEEDED(device->CreateCommittedResource(&default_heap, D3D12_HEAP_FLAG_NONE, &resolved_desc,
324 D3D12_RESOURCE_STATE_RESOLVE_DEST, nullptr, IID_PPV_ARGS(&resolved.p))));
325
326 std::vector<D3D12_PLACED_SUBRESOURCE_FOOTPRINT> placed(layers);
327 UINT64 total = 0;
328 device->GetCopyableFootprints(&resolved_desc, 0, layers, 0, placed.data(), nullptr, nullptr, &total);
329 D3D12_RESOURCE_DESC buf{};
330 buf.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER;
331 buf.Width = total;
332 buf.Height = buf.SampleDesc.Count = 1;
333 buf.DepthOrArraySize = buf.MipLevels = 1;
334 buf.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR;
335 D3D12_HEAP_PROPERTIES rb_heap{D3D12_HEAP_TYPE_READBACK};
336 CHECK(SUCCEEDED(device->CreateCommittedResource(&rb_heap, D3D12_HEAP_FLAG_NONE, &buf,
337 D3D12_RESOURCE_STATE_COPY_DEST, nullptr, IID_PPV_ARGS(&readback.p))));
338
339 Ref<ID3D12DescriptorHeap> rtv_heap;
340 const D3D12_DESCRIPTOR_HEAP_DESC rtv_desc{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 2, D3D12_DESCRIPTOR_HEAP_FLAG_NONE, 0};
341 CHECK(SUCCEEDED(device->CreateDescriptorHeap(&rtv_desc, IID_PPV_ARGS(&rtv_heap.p))));
342 const auto h0 = rtv_heap->GetCPUDescriptorHandleForHeapStart();
343 const D3D12_CPU_DESCRIPTOR_HANDLE h1{h0.ptr + device->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV)};
344
345 D3D12_RENDER_TARGET_VIEW_DESC view{};
346 view.ViewDimension = array ? D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY : D3D12_RTV_DIMENSION_TEXTURE2DMS;
347 if (array) {
348 view.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
349 for (UINT layer = 0; layer < layers; ++layer) {
350 view.Texture2DMSArray = {layer, 1};
351 device->CreateRenderTargetView(msaa.p, &view, h0);
352 const FLOAT seed[] = {FLOAT(layer + 1) * 0.1f, 0.2f, 0.3f, 1.0f};
353 list->ClearRenderTargetView(h0, seed, 0, nullptr);
354 }
355 view.Texture2DMSArray = {first_layer, layer_count};
356 }
357 view.Format = whole_format;
358 device->CreateRenderTargetView(msaa.p, &view, h0);
359 view.Format = rect_format;
360 device->CreateRenderTargetView(msaa.p, &view, h1);
361 const FLOAT full[4] = {0.25f, 0.5f, 0.75f, 0.25f};
362 const FLOAT part[4] = {0.0031308f, 0.18f, 0.5f, 0.75f};
363 list->ClearRenderTargetView(h0, full, 0, nullptr);
364 const D3D12_RECT rect{1, 1, 4, 3};
365 if (partial) list->ClearRenderTargetView(h1, part, 1, &rect);
366
367 D3D12_RESOURCE_BARRIER b{};
368 b.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
369 b.Transition = {msaa.p, D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES,
370 D3D12_RESOURCE_STATE_RENDER_TARGET, D3D12_RESOURCE_STATE_RESOLVE_SOURCE};
371 list->ResourceBarrier(1, &b);
372 for (UINT layer = 0; layer < layers; ++layer)
373 list->ResolveSubresource(resolved.p, layer, msaa.p, layer, DXGI_FORMAT_R8G8B8A8_UNORM);
374 b.Transition = {resolved.p, D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES,
375 D3D12_RESOURCE_STATE_RESOLVE_DEST, D3D12_RESOURCE_STATE_COPY_SOURCE};
376 list->ResourceBarrier(1, &b);
377 D3D12_TEXTURE_COPY_LOCATION src{}, dst{};
378 src.pResource = resolved.p;
379 src.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
380 dst.pResource = readback.p;
381 dst.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
382 for (UINT layer = 0; layer < layers; ++layer) {
383 src.SubresourceIndex = layer;
384 dst.PlacedFootprint = placed[layer];
385 list->CopyTextureRegion(&dst, 0, 0, 0, &src, nullptr);
386 }
387 CHECK(SUCCEEDED(list->Close()));
388 ID3D12CommandList* lists[] = {list.p};
389 queue->ExecuteCommandLists(1, lists);
390 CHECK(SUCCEEDED(queue->Signal(fence.p, 1)));
391 Event event;
392 CHECK(event.handle);
393 CHECK(SUCCEEDED(fence->SetEventOnCompletion(1, event.handle)));
394 CHECK(WaitForSingleObject(event.handle, 5000) == WAIT_OBJECT_0);
395 void* mapped = nullptr;
396 const D3D12_RANGE range{0, SIZE_T(total)};
397 CHECK(SUCCEEDED(readback->Map(0, &range, &mapped)) && mapped);
398 pixels.clear();
399 for (const auto& footprint : placed) {
400 const auto& f = footprint.Footprint;
401 for (UINT y = 0; y < f.Height; ++y) {
402 const auto* row = static_cast<unsigned char*>(mapped) + footprint.Offset + y * f.RowPitch;
403 pixels.insert(pixels.end(), row, row + f.Width * 4);
404 }
405 }
406 const D3D12_RANGE none{};
407 readback->Unmap(0, &none);
408 return true;
409}
249} // namespace 410} // namespace
250 411
251int main() { 412int main() {
@@ -452,8 +613,10 @@ int main() {
452 regressions, vk.conditional_rendering ? "enabled" : "unavailable (predicated cases skipped)"); 613 regressions, vk.conditional_rendering ? "enabled" : "unavailable (predicated cases skipped)");
453 if (mismatches) return 1; 614 if (mismatches) return 1;
454 const auto rejects = [&](DXGI_FORMAT resource_format, const D3D12_RENDER_TARGET_VIEW_DESC* view, 615 const auto rejects = [&](DXGI_FORMAT resource_format, const D3D12_RENDER_TARGET_VIEW_DESC* view,
455 UINT16 mips = 1, UINT16 layers = 1) { 616 UINT16 mips = 1, UINT16 layers = 1, UINT samples = 1,
456 if (!rejects_view(ours.p, resource_format, view, mips, layers)) return false; 617 const DXGI_FORMAT* cast_list = nullptr, UINT32 cast_count = 0) {
618 if (!rejects_view(ours.p, resource_format, view, mips, layers, samples, cast_list, cast_count))
619 return false;
457 ++rejected; 620 ++rejected;
458 return true; 621 return true;
459 }; 622 };
@@ -501,6 +664,64 @@ int main() {
501 invalid.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2DARRAY; 664 invalid.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2DARRAY;
502 invalid.Texture2DArray = {1, 1, 2, 1}; 665 invalid.Texture2DArray = {1, 1, 2, 1};
503 if (!rejects(DXGI_FORMAT_R8G8B8A8_TYPELESS, &invalid, 3, 4)) return 1; 666 if (!rejects(DXGI_FORMAT_R8G8B8A8_TYPELESS, &invalid, 3, 4)) return 1;
667
668 // 4x MSAA typeless and castable RGBA8 RTVs (TEXTURE2DMS / TEXTURE2DMSARRAY) compared against WARP.
669 {
670 const DXGI_FORMAT srgb_list[] = {DXGI_FORMAT_R8G8B8A8_UNORM, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB};
671 const auto compare_msaa = [&](DXGI_FORMAT resource_format, const DXGI_FORMAT* cast_list,
672 UINT32 cast_count, DXGI_FORMAT full, DXGI_FORMAT rect, bool partial,
673 bool array, UINT first_layer, UINT layer_count) {
674 std::vector<unsigned char> actual, expected;
675 if (!clear_and_read_msaa(ours.p, resource_format, cast_list, cast_count, full, rect, partial, array,
676 first_layer, layer_count, actual) ||
677 !clear_and_read_msaa(host.p, resource_format, cast_list, cast_count, full, rect, partial, array,
678 first_layer, layer_count, expected))
679 return false;
680 ++comparisons;
681 if (actual.size() != expected.size()) return false;
682 for (std::size_t i = 0; i < actual.size(); ++i) {
683 if (std::abs(int(actual[i]) - int(expected[i])) > 1) {
684 std::fprintf(stderr, "MSAA RTV mismatch fmt %d full %d rect %d array %d byte %zu: ours %u WARP %u\n",
685 int(resource_format), int(full), int(rect), int(array), i, unsigned(actual[i]),
686 unsigned(expected[i]));
687 ++mismatches;
688 return false;
689 }
690 }
691 return true;
692 };
693 if (!compare_msaa(DXGI_FORMAT_R8G8B8A8_TYPELESS, nullptr, 0, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB,
694 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, false, false, 0, 1))
695 return 1;
696 if (!compare_msaa(DXGI_FORMAT_R8G8B8A8_TYPELESS, nullptr, 0, DXGI_FORMAT_R8G8B8A8_UNORM,
697 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, true, false, 0, 1))
698 return 1;
699 if (!compare_msaa(DXGI_FORMAT_R8G8B8A8_TYPELESS, nullptr, 0, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB,
700 DXGI_FORMAT_R8G8B8A8_UNORM, true, true, 1, 2))
701 return 1;
702 Ref<ID3D12Device10> host10;
703 if (SUCCEEDED(host->QueryInterface(IID_PPV_ARGS(&host10.p)))) {
704 if (!compare_msaa(DXGI_FORMAT_R8G8B8A8_UNORM, srgb_list, 2, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB,
705 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, false, false, 0, 1))
706 return 1;
707 if (!compare_msaa(DXGI_FORMAT_R8G8B8A8_UNORM, srgb_list, 2, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB,
708 DXGI_FORMAT_R8G8B8A8_UNORM, true, true, 1, 2))
709 return 1;
710 }
711 // MSAA vs 1x view-dimension mismatches, out-of-range MSAA array slices, and unlisted castable formats.
712 D3D12_RENDER_TARGET_VIEW_DESC bad_msaa{};
713 bad_msaa.Format = DXGI_FORMAT_R8G8B8A8_UNORM_SRGB;
714 bad_msaa.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2D;
715 if (!rejects(DXGI_FORMAT_R8G8B8A8_TYPELESS, &bad_msaa, 1, 1, 4)) return 1;
716 bad_msaa.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2DMS;
717 if (!rejects(DXGI_FORMAT_R8G8B8A8_TYPELESS, &bad_msaa, 1, 1, 1)) return 1;
718 bad_msaa.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY;
719 bad_msaa.Texture2DMSArray = {3, 2};
720 if (!rejects(DXGI_FORMAT_R8G8B8A8_TYPELESS, &bad_msaa, 1, 4, 4)) return 1;
721 bad_msaa.ViewDimension = D3D12_RTV_DIMENSION_TEXTURE2DMS;
722 bad_msaa.Format = DXGI_FORMAT_R8G8B8A8_UINT;
723 if (!rejects(DXGI_FORMAT_R8G8B8A8_UNORM, &bad_msaa, 1, 1, 4, srgb_list, 2)) return 1;
724 }
504 } 725 }
505 if (vk.validation_errors()) return 1; 726 if (vk.validation_errors()) return 1;
506 std::printf("typeless RTV: %u WARP readbacks matched, descriptor snapshots and format-cache order checked; %u unsupported/invalid views rejected\n", 727 std::printf("typeless RTV: %u WARP readbacks matched, descriptor snapshots and format-cache order checked; %u unsupported/invalid views rejected\n",
diff --git a/runtime/test/d3d12_vulkan_device_test.cpp b/runtime/test/d3d12_vulkan_device_test.cpp
index a528202bc..9d49740e0 100644
--- a/runtime/test/d3d12_vulkan_device_test.cpp
+++ b/runtime/test/d3d12_vulkan_device_test.cpp
@@ -2229,6 +2229,32 @@ HRESULT fence(ID3D12Device* device, D3D12_FENCE_FLAGS flags, REFIID riid = __uui
2229 return released(device->CreateFence(0, flags, riid, &out), &out); 2229 return released(device->CreateFence(0, flags, riid, &out), &out);
2230} 2230}
2231 2231
2232// A 64 KiB heap description for the CreateHeap/CreateHeap1 cases (D3D-238).
2233D3D12_HEAP_DESC heap_desc_of(UINT64 alignment, D3D12_HEAP_PROPERTIES properties = {D3D12_HEAP_TYPE_DEFAULT},
2234 D3D12_HEAP_FLAGS flags = D3D12_HEAP_FLAG_NONE, UINT64 size = 64 * 1024) {
2235 D3D12_HEAP_DESC desc{};
2236 desc.SizeInBytes = size;
2237 desc.Properties = properties;
2238 desc.Alignment = alignment;
2239 desc.Flags = flags;
2240 return desc;
2241}
2242
2243HRESULT heap_create(ID3D12Device* device, D3D12_HEAP_DESC desc) {
2244 void* out = nullptr;
2245 return released(device->CreateHeap(&desc, __uuidof(ID3D12Heap), &out), &out);
2246}
2247
2248// CreateHeap1 without a protected session; E_NOINTERFACE when the device has no ID3D12Device4.
2249HRESULT heap_create1(ID3D12Device* device, D3D12_HEAP_DESC desc) {
2250 ID3D12Device4* device4 = nullptr;
2251 if (FAILED(device->QueryInterface(IID_PPV_ARGS(&device4)))) return E_NOINTERFACE;
2252 void* out = nullptr;
2253 const HRESULT hr = device4->CreateHeap1(&desc, nullptr, __uuidof(ID3D12Heap), &out);
2254 device4->Release();
2255 return released(hr, &out);
2256}
2257
2232// Map on a fresh committed resource; `range` is the read range, or null. 2258// Map on a fresh committed resource; `range` is the read range, or null.
2233HRESULT map(ID3D12Device* device, D3D12_HEAP_PROPERTIES heap, D3D12_RESOURCE_DESC desc, D3D12_RESOURCE_STATES state, 2259HRESULT map(ID3D12Device* device, D3D12_HEAP_PROPERTIES heap, D3D12_RESOURCE_DESC desc, D3D12_RESOURCE_STATES state,
2234 UINT subresource, const D3D12_RANGE* range, bool want_pointer = true) { 2260 UINT subresource, const D3D12_RANGE* range, bool want_pointer = true) {
@@ -2818,6 +2844,42 @@ int compare_invalid_arguments(ID3D12Device* ours) {
2818 return d->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_COMMON, 2844 return d->CreateCommittedResource(&heap, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_COMMON,
2819 nullptr, __uuidof(ID3D12Resource), nullptr); 2845 nullptr, __uuidof(ID3D12Resource), nullptr);
2820 }}, 2846 }},
2847 // CreateHeap and CreateHeap1 (D3D-238): the four descriptions the host refused on an RX 5700 and WARP, the
2848 // heap-property rules CreateCommittedResource shares. A refusal needs no arena; the valid neighbours do, so
2849 // compare_heap_neighbours compares them on the standalone device.
2850 {"heap: alignment 4096", [](ID3D12Device* d) { return heap_create(d, heap_desc_of(4096)); }},
2851 {"heap1: alignment 4096", [](ID3D12Device* d) { return heap_create1(d, heap_desc_of(4096)); }},
2852 {"heap: custom heap, unknown page property", [](ID3D12Device* d) {
2853 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_UNKNOWN,
2854 D3D12_MEMORY_POOL_L0}));
2855 }},
2856 {"heap1: custom heap, unknown page property", [](ID3D12Device* d) {
2857 return heap_create1(d, heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_UNKNOWN,
2858 D3D12_MEMORY_POOL_L0}));
2859 }},
2860 {"heap: all three DENY flags", [](ID3D12Device* d) {
2861 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT},
2862 D3D12_HEAP_FLAG_DENY_BUFFERS | D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES |
2863 D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES));
2864 }},
2865 {"heap1: all three DENY flags", [](ID3D12Device* d) {
2866 return heap_create1(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT},
2867 D3D12_HEAP_FLAG_DENY_BUFFERS | D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES |
2868 D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES));
2869 }},
2870 {"heap: type 0", [](ID3D12Device* d) { return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE(0)})); }},
2871 {"heap1: type 0", [](ID3D12Device* d) { return heap_create1(d, heap_desc_of(0, {D3D12_HEAP_TYPE(0)})); }},
2872 {"heap: custom heap, unknown pool", [](ID3D12Device* d) {
2873 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
2874 D3D12_MEMORY_POOL_UNKNOWN}));
2875 }},
2876 {"heap: default heap with a CPU page property", [](ID3D12Device* d) {
2877 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT, D3D12_CPU_PAGE_PROPERTY_WRITE_BACK}));
2878 }},
2879 {"heap: default heap with a memory pool", [](ID3D12Device* d) {
2880 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT, D3D12_CPU_PAGE_PROPERTY_UNKNOWN,
2881 D3D12_MEMORY_POOL_L0}));
2882 }},
2821 // CreateDescriptorHeap. A null description faults in the host runtime, so it is not compared. 2883 // CreateDescriptorHeap. A null description faults in the host runtime, so it is not compared.
2822 {"descriptor heap: null output", [](ID3D12Device* d) { 2884 {"descriptor heap: null output", [](ID3D12Device* d) {
2823 const D3D12_DESCRIPTOR_HEAP_DESC desc{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 4}; 2885 const D3D12_DESCRIPTOR_HEAP_DESC desc{D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 4};
@@ -3053,6 +3115,59 @@ int compare_invalid_arguments(ID3D12Device* ours) {
3053 return mismatches; 3115 return mismatches;
3054} 3116}
3055 3117
3118// D3D-238: the valid neighbours of the CreateHeap/CreateHeap1 refusals in compare_invalid_arguments, compared
3119// with the host on a device that has the GPU address arena (without it the layer answers every heap E_NOTIMPL).
3120int compare_heap_neighbours(ID3D12Device* ours) {
3121 Ref<ID3D12Device> host;
3122 if (!create_host_device(host)) return -1;
3123 struct Case {
3124 const char* name;
3125 InvalidCase call;
3126 };
3127 static const Case cases[] = {
3128 {"heap: alignment 0", [](ID3D12Device* d) { return heap_create(d, heap_desc_of(0)); }},
3129 {"heap: alignment 64 KiB", [](ID3D12Device* d) {
3130 return heap_create(d, heap_desc_of(D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT));
3131 }},
3132 {"heap: alignment 4 MiB", [](ID3D12Device* d) {
3133 return heap_create(d, heap_desc_of(D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT,
3134 {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_NONE,
3135 D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT));
3136 }},
3137 {"heap1: alignment 4 MiB", [](ID3D12Device* d) {
3138 return heap_create1(d, heap_desc_of(D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT,
3139 {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_NONE,
3140 D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT));
3141 }},
3142 {"heap: size 1000", [](ID3D12Device* d) {
3143 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_NONE, 1000));
3144 }},
3145 {"heap: upload", [](ID3D12Device* d) { return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_UPLOAD})); }},
3146 {"heap: readback", [](ID3D12Device* d) {
3147 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_READBACK}));
3148 }},
3149 {"heap: custom write-combine L0", [](ID3D12Device* d) {
3150 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
3151 D3D12_MEMORY_POOL_L0}));
3152 }},
3153 {"heap1: custom write-combine L0", [](ID3D12Device* d) {
3154 return heap_create1(d, heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
3155 D3D12_MEMORY_POOL_L0}));
3156 }},
3157 {"heap: ALLOW_ONLY_BUFFERS (two DENY flags)", [](ID3D12Device* d) {
3158 return heap_create(d, heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS));
3159 }},
3160 };
3161 int mismatches = 0;
3162 for (const Case& c : cases) {
3163 const HRESULT a = call_guarded(c.call, ours), b = call_guarded(c.call, host.p);
3164 if (a == b) continue;
3165 ++mismatches;
3166 std::fprintf(stderr, "invalid arguments %s: ours 0x%08lx, host 0x%08lx\n", c.name, a, b);
3167 }
3168 return mismatches;
3169}
3170
3056} // namespace 3171} // namespace
3057 3172
3058int main() { 3173int main() {
@@ -3478,6 +3593,68 @@ int main() {
3478 std::printf("invalid arguments: no host D3D12 device to compare with, skipped\n"); 3593 std::printf("invalid arguments: no host D3D12 device to compare with, skipped\n");
3479 EXPECT(argument_mismatches <= 0); 3594 EXPECT(argument_mismatches <= 0);
3480 3595
3596 // D3D-236: CreateCommandQueue with D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME requires
3597 // SeIncreaseBasePriorityPrivilege enabled in the token, matching the Windows D3D12 runtime.
3598 {
3599 const D3D12_COMMAND_QUEUE_DESC rt_desc{
3600 D3D12_COMMAND_LIST_TYPE_DIRECT, D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME,
3601 D3D12_COMMAND_QUEUE_FLAG_NONE, 0};
3602 struct RestoreOverride {
3603 ~RestoreOverride() { rt::d3d12::set_global_realtime_privilege_override_for_test(-1); }
3604 } restore_override;
3605
3606 rt::d3d12::set_global_realtime_privilege_override_for_test(0);
3607 EXPECT(!rt::d3d12::has_global_realtime_privilege());
3608 Ref<ID3D12CommandQueue> denied_q;
3609 EXPECT(device->CreateCommandQueue(&rt_desc, IID_PPV_ARGS(&denied_q.p)) == DXGI_ERROR_ACCESS_DENIED);
3610 EXPECT(!denied_q.p);
3611 EXPECT(device->CreateCommandQueue(&rt_desc, __uuidof(ID3D12CommandQueue), nullptr) ==
3612 DXGI_ERROR_ACCESS_DENIED);
3613
3614 rt::d3d12::set_global_realtime_privilege_override_for_test(1);
3615 EXPECT(rt::d3d12::has_global_realtime_privilege());
3616 EXPECT(device->CreateCommandQueue(&rt_desc, __uuidof(ID3D12CommandQueue), nullptr) == E_UNEXPECTED);
3617 Ref<ID3D12CommandQueue> granted_q;
3618 EXPECT(SUCCEEDED(device->CreateCommandQueue(&rt_desc, IID_PPV_ARGS(&granted_q.p))) && granted_q.p);
3619 if (granted_q.p) {
3620 EXPECT(granted_q->GetDesc().Priority == D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME);
3621 }
3622 granted_q.reset();
3623 rt::d3d12::set_global_realtime_privilege_override_for_test(-1);
3624
3625 // When the process token holds SeIncreaseBasePriorityPrivilege (e.g. an elevated session), toggle the
3626 // real token privilege and verify both states against the host D3D12 runtime.
3627 HANDLE token = nullptr;
3628 LUID luid{};
3629 if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &token)) {
3630 if (LookupPrivilegeValueW(nullptr, L"SeIncreaseBasePriorityPrivilege", &luid)) {
3631 TOKEN_PRIVILEGES tp{}, prev{};
3632 DWORD prev_len = 0;
3633 tp.PrivilegeCount = 1;
3634 tp.Privileges[0].Luid = luid;
3635 tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
3636 if (AdjustTokenPrivileges(token, FALSE, &tp, sizeof(prev), &prev, &prev_len) &&
3637 GetLastError() == ERROR_SUCCESS) {
3638 EXPECT(rt::d3d12::has_global_realtime_privilege());
3639 EXPECT(command_queue(device.p, rt_desc) == S_OK);
3640 Ref<ID3D12Device> host;
3641 if (create_host_device(host)) {
3642 EXPECT(command_queue(host.p, rt_desc) == S_OK);
3643 }
3644 tp.Privileges[0].Attributes = 0;
3645 if (AdjustTokenPrivileges(token, FALSE, &tp, 0, nullptr, nullptr) &&
3646 GetLastError() == ERROR_SUCCESS) {
3647 EXPECT(!rt::d3d12::has_global_realtime_privilege());
3648 EXPECT(command_queue(device.p, rt_desc) == DXGI_ERROR_ACCESS_DENIED);
3649 if (host.p) EXPECT(command_queue(host.p, rt_desc) == DXGI_ERROR_ACCESS_DENIED);
3650 }
3651 AdjustTokenPrivileges(token, FALSE, &prev, 0, nullptr, nullptr);
3652 }
3653 }
3654 CloseHandle(token);
3655 }
3656 }
3657
3481 const int depth_quality_mismatches = compare_depth_multisample_quality_levels(device.p, depth_sample_counts); 3658 const int depth_quality_mismatches = compare_depth_multisample_quality_levels(device.p, depth_sample_counts);
3482 if (depth_quality_mismatches < 0) 3659 if (depth_quality_mismatches < 0)
3483 std::printf("Depth/stencil MSAA quality queries: no host D3D12 device to compare with, skipped\n"); 3660 std::printf("Depth/stencil MSAA quality queries: no host D3D12 device to compare with, skipped\n");
@@ -4856,6 +5033,52 @@ int main() {
4856 upload_heap_desc.Properties.Type = D3D12_HEAP_TYPE_UPLOAD; 5033 upload_heap_desc.Properties.Type = D3D12_HEAP_TYPE_UPLOAD;
4857 EXPECT(SUCCEEDED(standalone->CreateHeap(&upload_heap_desc, IID_PPV_ARGS(&upload_placed_heap.p)))); 5034 EXPECT(SUCCEEDED(standalone->CreateHeap(&upload_heap_desc, IID_PPV_ARGS(&upload_placed_heap.p))));
4858 5035
5036 // D3D-238: heap descriptions the host refuses (RX 5700 and WARP), from CreateHeap and CreateHeap1 alike, and
5037 // their valid neighbours. compare_invalid_arguments and compare_heap_neighbours check them against a host.
5038 {
5039 const D3D12_HEAP_FLAGS deny_all = D3D12_HEAP_FLAG_DENY_BUFFERS | D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES |
5040 D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES;
5041 const D3D12_HEAP_DESC refused_heaps[] = {
5042 heap_desc_of(4096),
5043 heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_UNKNOWN, D3D12_MEMORY_POOL_L0}),
5044 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, deny_all),
5045 heap_desc_of(0, {D3D12_HEAP_TYPE(0)}),
5046 heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE,
5047 D3D12_MEMORY_POOL_UNKNOWN}),
5048 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT, D3D12_CPU_PAGE_PROPERTY_WRITE_BACK}),
5049 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_NONE, 0),
5050 };
5051 for (const D3D12_HEAP_DESC& hd : refused_heaps) {
5052 EXPECT(heap_create(standalone.p, hd) == E_INVALIDARG);
5053 EXPECT(heap_create1(standalone.p, hd) == E_INVALIDARG);
5054 }
5055 const D3D12_HEAP_DESC accepted_heaps[] = {
5056 heap_desc_of(0),
5057 heap_desc_of(D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT),
5058 heap_desc_of(D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT, {D3D12_HEAP_TYPE_DEFAULT},
5059 D3D12_HEAP_FLAG_NONE, D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT),
5060 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_NONE, 1000),
5061 heap_desc_of(0, {D3D12_HEAP_TYPE_UPLOAD}),
5062 heap_desc_of(0, {D3D12_HEAP_TYPE_READBACK}),
5063 heap_desc_of(0, {D3D12_HEAP_TYPE_CUSTOM, D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE, D3D12_MEMORY_POOL_L0}),
5064 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT}, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS),
5065 heap_desc_of(0, {D3D12_HEAP_TYPE_DEFAULT},
5066 D3D12_HEAP_FLAG_DENY_BUFFERS | D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES),
5067 };
5068 for (const D3D12_HEAP_DESC& hd : accepted_heaps) {
5069 EXPECT(heap_create(standalone.p, hd) == S_OK);
5070 EXPECT(heap_create1(standalone.p, hd) == S_OK);
5071 }
5072 Ref<ID3D12Device4> device4;
5073 Ref<ID3D12Heap> unused;
5074 EXPECT(SUCCEEDED(standalone->QueryInterface(IID_PPV_ARGS(&device4.p))));
5075 EXPECT(device4->CreateHeap1(&placed_heap_desc, nullptr, IID_PPV_ARGS(&unused.p)) == S_OK && unused.p);
5076 const int heap_mismatches = compare_heap_neighbours(standalone.p);
5077 if (heap_mismatches < 0)
5078 std::printf("CreateHeap valid neighbours: no host D3D12 device to compare with, skipped\n");
5079 EXPECT(heap_mismatches <= 0);
5080 }
5081
4859 auto tiled_2d = [&](UINT w, UINT h, DXGI_FORMAT fmt, UINT16 mips, D3D12_RESOURCE_FLAGS flags, 5082 auto tiled_2d = [&](UINT w, UINT h, DXGI_FORMAT fmt, UINT16 mips, D3D12_RESOURCE_FLAGS flags,
4860 UINT64 align = 0) { 5083 UINT64 align = 0) {
4861 D3D12_RESOURCE_DESC d = texture_desc(w, h, fmt, flags, mips); 5084 D3D12_RESOURCE_DESC d = texture_desc(w, h, fmt, flags, mips);
@@ -5133,6 +5356,7 @@ int main() {
5133 {msaa_heap.p, msaa_heap_desc.SizeInBytes - 65536, msaa_unk_small_desc}, 5356 {msaa_heap.p, msaa_heap_desc.SizeInBytes - 65536, msaa_unk_small_desc},
5134 {upload_placed_heap.p, 0, msaa_unk_small_desc}, 5357 {upload_placed_heap.p, 0, msaa_unk_small_desc},
5135 {deny_rt_heap.p, 0, msaa_unk_small_desc}, 5358 {deny_rt_heap.p, 0, msaa_unk_small_desc},
5359 {deny_rt_heap.p, 0, tiled_rt_desc},
5136 {msaa_heap.p, 0, 5360 {msaa_heap.p, 0,
5137 msaa_desc(256, 256, 4, 0, D3D12_TEXTURE_LAYOUT_UNKNOWN, D3D12_RESOURCE_FLAG_NONE)}, 5361 msaa_desc(256, 256, 4, 0, D3D12_TEXTURE_LAYOUT_UNKNOWN, D3D12_RESOURCE_FLAG_NONE)},
5138 {msaa_heap.p, 0, 5362 {msaa_heap.p, 0,
@@ -5149,6 +5373,18 @@ int main() {
5149 nullptr, IID_PPV_ARGS(&fail.p)) == E_INVALIDARG); 5373 nullptr, IID_PPV_ARGS(&fail.p)) == E_INVALIDARG);
5150 EXPECT(!fail.p); 5374 EXPECT(!fail.p);
5151 } 5375 }
5376 D3D12_HEAP_DESC only_rt_desc = tiled_heap_desc;
5377 only_rt_desc.Flags = D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES;
5378 Ref<ID3D12Heap> only_rt_heap;
5379 EXPECT(SUCCEEDED(standalone->CreateHeap(&only_rt_desc, IID_PPV_ARGS(&only_rt_heap.p))));
5380 for (const D3D12_RESOURCE_DESC& bad_only_rt :
5381 {texture_desc(64, 64, DXGI_FORMAT_R8G8B8A8_UNORM, D3D12_RESOURCE_FLAG_NONE, 1),
5382 buffer_desc(4096)}) {
5383 Ref<ID3D12Resource> fail;
5384 EXPECT(standalone->CreatePlacedResource(only_rt_heap.p, 0, &bad_only_rt, D3D12_RESOURCE_STATE_COMMON,
5385 nullptr, IID_PPV_ARGS(&fail.p)) == E_INVALIDARG);
5386 EXPECT(!fail.p);
5387 }
5152 } 5388 }
5153 5389
5154 // Clear placed 4x MSAA RTVs (UNKNOWN + tiled) and DSV, resolve, and read back to verify GPU execution. 5390 // Clear placed 4x MSAA RTVs (UNKNOWN + tiled) and DSV, resolve, and read back to verify GPU execution.
diff --git a/runtime/test/d3d12_xdxr_rt_test.cpp b/runtime/test/d3d12_xdxr_rt_test.cpp
index 0b4d3da52..51f357fc1 100644
--- a/runtime/test/d3d12_xdxr_rt_test.cpp
+++ b/runtime/test/d3d12_xdxr_rt_test.cpp
@@ -3,7 +3,9 @@
3// unindexed triangle soup, and an R16-indexed grid with a 16-byte stride and a 3x4 transform) and a TLAS of three 3// unindexed triangle soup, and an R16-indexed grid with a 16-byte stride and a 3x4 transform) and a TLAS of three
4// instances are built through the D3D12 API, sized by GetRaytracingAccelerationStructurePrebuildInfo, copied to 4// instances are built through the D3D12 API, sized by GetRaytracingAccelerationStructurePrebuildInfo, copied to
5// readback buffers and written to <out dir>; the BLAS is then updated in place (PERFORM_UPDATE) after its soup moves, 5// readback buffers and written to <out dir>; the BLAS is then updated in place (PERFORM_UPDATE) after its soup moves,
6// and written again as d3d12_blas_update as <case>.bin + <case>.json at their console GPU virtual addresses. 6// and written again as d3d12_blas_update; then its postbuild COMPACTED_SIZE and a TLAS rebuild's CURRENT_SIZE are
7// checked against the prebuild sizes, and the BLAS is compacted (CopyRaytracingAccelerationStructure COMPACT) into a
8// buffer of exactly that size, written as d3d12_blas_compacted as <case>.bin + <case>.json at their console GPU virtual addresses.
7// `python -I tools/xdxr_bvh.py check-build <out dir>` validates them and traces rays against brute force (ctest: 9// `python -I tools/xdxr_bvh.py check-build <out dir>` validates them and traces rays against brute force (ctest:
8// d3d12_xdxr_rt + d3d12_xdxr_rt_check). Exit 77 without a Vulkan device, or with LEONIDA_RT_AS=khr. No game files. 10// d3d12_xdxr_rt + d3d12_xdxr_rt_check). Exit 77 without a Vulkan device, or with LEONIDA_RT_AS=khr. No game files.
9#include "../shims/d3d12_com.h" 11#include "../shims/d3d12_com.h"
@@ -336,6 +338,71 @@ int main(int argc, char** argv) {
336 "{\"kind\": \"blas\", \"address\": " + std::to_string(blas->GetGPUVirtualAddress()) + 338 "{\"kind\": \"blas\", \"address\": " + std::to_string(blas->GetGPUVirtualAddress()) +
337 ", \"triangles\": " + triangles_json(moved) + "}\n")) 339 ", \"triangles\": " + triangles_json(moved) + "}\n"))
338 return fail("BLAS readback after the update"); 340 return fail("BLAS readback after the update");
341
342 // ---- postbuild info and compaction: EmitRaytracingAccelerationStructurePostbuildInfo for both structures, a
343 // TLAS rebuild with a CURRENT_SIZE postbuild desc, then COMPACT the BLAS into a buffer of exactly its size ----
344 auto submit = [&](UINT64 value) {
345 if (FAILED(list->Close())) return false;
346 queue->ExecuteCommandLists(1, lists);
347 if (FAILED(queue->Signal(fence.p, value))) return false;
348 HANDLE e = CreateEventW(nullptr, FALSE, FALSE, nullptr);
349 const bool ok = e && SUCCEEDED(fence->SetEventOnCompletion(value, e)) &&
350 WaitForSingleObject(e, 10000) == WAIT_OBJECT_0;
351 if (e) CloseHandle(e);
352 return ok;
353 };
354 Ref<ID3D12Resource> info, info_rb;
355 if (FAILED(hr = buffer(device.p, D3D12_HEAP_TYPE_DEFAULT, 24, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, uav, info.put())) ||
356 FAILED(hr = buffer(device.p, D3D12_HEAP_TYPE_READBACK, 24, D3D12_RESOURCE_STATE_COPY_DEST,
357 D3D12_RESOURCE_FLAG_NONE, info_rb.put())))
358 return fail("postbuild buffers", hr);
359 if (FAILED(allocator->Reset()) || FAILED(list->Reset(allocator.p, nullptr))) return fail("Reset for postbuild");
360 D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC compacted_desc{
361 info->GetGPUVirtualAddress(), D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE};
362 const D3D12_GPU_VIRTUAL_ADDRESS both[2] = {blas->GetGPUVirtualAddress(), tlas->GetGPUVirtualAddress()};
363 list->EmitRaytracingAccelerationStructurePostbuildInfo(&compacted_desc, 2, both);
364 D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC current_desc{
365 info->GetGPUVirtualAddress() + 16, D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE};
366 build = {};
367 build.Inputs = tlas_inputs;
368 build.DestAccelerationStructureData = tlas->GetGPUVirtualAddress();
369 build.ScratchAccelerationStructureData = scratch->GetGPUVirtualAddress();
370 list->BuildRaytracingAccelerationStructure(&build, 1, &current_desc);
371 list->ResourceBarrier(1, &barrier);
372 list->CopyBufferRegion(info_rb.p, 0, info.p, 0, 24);
373 if (!submit(3)) return fail("postbuild submission");
374 UINT64 sizes[3] = {};
375 {
376 void* p = nullptr;
377 if (FAILED(info_rb->Map(0, nullptr, &p))) return fail("Map postbuild");
378 std::memcpy(sizes, p, sizeof sizes);
379 info_rb->Unmap(0, nullptr);
380 }
381 // the builds are exactly their prebuild size, so the compacted size is that size
382 if (sizes[0] != blas_info.ResultDataMaxSizeInBytes || sizes[1] != tlas_info.ResultDataMaxSizeInBytes ||
383 sizes[2] != tlas_info.ResultDataMaxSizeInBytes) {
384 std::fprintf(stderr, "postbuild sizes %llu %llu %llu, prebuild %llu %llu\n",
385 static_cast<unsigned long long>(sizes[0]), static_cast<unsigned long long>(sizes[1]),
386 static_cast<unsigned long long>(sizes[2]),
387 static_cast<unsigned long long>(blas_info.ResultDataMaxSizeInBytes),
388 static_cast<unsigned long long>(tlas_info.ResultDataMaxSizeInBytes));
389 return fail("postbuild sizes");
390 }
391 Ref<ID3D12Resource> compacted, compacted_rb;
392 if (FAILED(hr = buffer(device.p, D3D12_HEAP_TYPE_DEFAULT, sizes[0], as_state, uav, compacted.put())) ||
393 FAILED(hr = buffer(device.p, D3D12_HEAP_TYPE_READBACK, sizes[0], D3D12_RESOURCE_STATE_COPY_DEST,
394 D3D12_RESOURCE_FLAG_NONE, compacted_rb.put())))
395 return fail("compacted buffers", hr);
396 if (FAILED(allocator->Reset()) || FAILED(list->Reset(allocator.p, nullptr))) return fail("Reset for compaction");
397 list->CopyRaytracingAccelerationStructure(compacted->GetGPUVirtualAddress(), blas->GetGPUVirtualAddress(),
398 D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT);
399 list->ResourceBarrier(1, &barrier);
400 list->CopyBufferRegion(compacted_rb.p, 0, compacted.p, 0, sizes[0]);
401 if (!submit(4)) return fail("compaction submission");
402 if (!dump(compacted_rb.p, sizes[0], "d3d12_blas_compacted",
403 "{\"kind\": \"blas\", \"address\": " + std::to_string(compacted->GetGPUVirtualAddress()) +
404 ", \"triangles\": " + triangles_json(moved) + "}\n"))
405 return fail("compacted BLAS readback");
339 std::printf("d3d12_xdxr_rt: BLAS %llu bytes (prebuild %llu), TLAS (prebuild %llu), written to %s\n", 406 std::printf("d3d12_xdxr_rt: BLAS %llu bytes (prebuild %llu), TLAS (prebuild %llu), written to %s\n",
340 static_cast<unsigned long long>(blas_info.ResultDataMaxSizeInBytes), 407 static_cast<unsigned long long>(blas_info.ResultDataMaxSizeInBytes),
341 static_cast<unsigned long long>(blas_info.ResultDataMaxSizeInBytes), 408 static_cast<unsigned long long>(blas_info.ResultDataMaxSizeInBytes),
diff --git a/runtime/test/descriptor_table_test.cpp b/runtime/test/descriptor_table_test.cpp
index a24a9c6e2..26fb39083 100644
--- a/runtime/test/descriptor_table_test.cpp
+++ b/runtime/test/descriptor_table_test.cpp
@@ -233,7 +233,7 @@ int test_clear_resets_table() {
233 return 0; 233 return 0;
234} 234}
235 235
236int test_erase_and_cluster_compact() { 236int test_erase_and_reinsert() {
237 DescriptorTable table(16); 237 DescriptorTable table(16);
238 238
239 const std::uint32_t k1[8] = {1, 10, 100, 1000, 2, 20, 200, 2000}; 239 const std::uint32_t k1[8] = {1, 10, 100, 1000, 2, 20, 200, 2000};
@@ -310,12 +310,12 @@ int test_change_tracking() {
310 EXPECT(!changes.all && changes.slots.size() == 1 && changes.slots.front() == slot); 310 EXPECT(!changes.all && changes.slots.size() == 1 && changes.slots.front() == slot);
311 EXPECT(table.read_slot(slot, read) && read[8] == 43); 311 EXPECT(table.read_slot(slot, read) && read[8] == 43);
312 312
313 // Erasing marks the slot it was in and the ones the cluster compaction moved. 313 // Erasing marks only the slot it was in: no other entry moves.
314 EXPECT(table.insert(k2, 7)); 314 EXPECT(table.insert(k2, 7));
315 table.take_changes(); 315 table.take_changes();
316 EXPECT(table.erase(k1)); 316 EXPECT(table.erase(k1));
317 changes = table.take_changes(); 317 changes = table.take_changes();
318 EXPECT(!changes.all && !changes.slots.empty() && changes.slots.front() == slot); 318 EXPECT(!changes.all && changes.slots.size() == 1 && changes.slots.front() == slot);
319 319
320 // Growth changes the mask, so everything re-uploads. 320 // Growth changes the mask, so everything re-uploads.
321 const std::size_t before = table.capacity(); 321 const std::size_t before = table.capacity();
@@ -366,6 +366,48 @@ int test_relocation_marks_both_slots() {
366 return 0; 366 return 0;
367} 367}
368 368
369// Shaders keep probing the GPU copy of the table while an erase is uploaded without waiting for idle
370// (BindlessSet::flush_needs_idle), so an erase must leave every other key's slot exactly as it was.
371int test_erase_moves_no_other_entry() {
372 DescriptorTable table(64);
373 const std::uint32_t slots = std::uint32_t(table.capacity());
374 // Five keys with one home: they fill five consecutive slots, the cluster the old erase compacted.
375 std::array<DescriptorKey, 5> keys{};
376 for (std::uint32_t i = 0; i < keys.size(); ++i) {
377 auto& key = keys[i];
378 key[0] = i + 1;
379 while ((hash_descriptor_key(key) & (slots - 1)) != slots - 2) ++key[7]; // the cluster wraps the end
380 EXPECT(table.insert_or_update(key.data(), 200 + i) == DescriptorTable::InsertResult::added);
381 }
382 table.take_changes();
383 const auto before = table.build_gpu_buffer();
384
385 EXPECT(table.erase(keys[1].data()));
386 const DescriptorTable::Changes changes = table.take_changes();
387 EXPECT(!changes.all && changes.slots.size() == 1);
388 const std::uint32_t hole = changes.slots.front();
389 const auto after = table.build_gpu_buffer();
390 for (std::uint32_t s = 0; s < slots; ++s) {
391 const bool same = std::memcmp(&before[1 + s * 10], &after[1 + s * 10], 10 * sizeof(std::uint32_t)) == 0;
392 EXPECT(same == (s != hole));
393 }
394 for (std::uint32_t w = 0; w < 10; ++w) EXPECT(after[1 + hole * 10 + w] == 0); // an empty slot: a miss
395 for (std::uint32_t i = 0; i < keys.size(); ++i) EXPECT(table.lookup(keys[i]) == (i == 1 ? 0u : 200 + i));
396
397 // Keys past the hole are still found after more erases, and a new key of the same home reuses the hole.
398 EXPECT(table.erase(keys[0].data()));
399 EXPECT(table.lookup(keys[4]) == 204 && table.lookup(keys[3]) == 203);
400 DescriptorKey extra = keys[0];
401 extra[0] = 100;
402 while ((hash_descriptor_key(extra) & (slots - 1)) != slots - 2) ++extra[7];
403 table.take_changes();
404 EXPECT(table.insert_or_update(extra.data(), 300) == DescriptorTable::InsertResult::added);
405 const DescriptorTable::Changes reuse = table.take_changes();
406 EXPECT(reuse.slots.size() == 1 && reuse.slots.front() == slots - 2); // the first hole of the probe window
407 EXPECT(table.lookup(extra) == 300 && table.size() == 4);
408 return 0;
409}
410
369int main() { 411int main() {
370 EXPECT(test_fnv1a_hash_matches_contract() == 0); 412 EXPECT(test_fnv1a_hash_matches_contract() == 0);
371 EXPECT(test_ssharp_key_padding() == 0); 413 EXPECT(test_ssharp_key_padding() == 0);
@@ -376,9 +418,10 @@ int main() {
376 EXPECT(test_gpu_buffer_serialization() == 0); 418 EXPECT(test_gpu_buffer_serialization() == 0);
377 EXPECT(test_change_tracking() == 0); 419 EXPECT(test_change_tracking() == 0);
378 EXPECT(test_relocation_marks_both_slots() == 0); 420 EXPECT(test_relocation_marks_both_slots() == 0);
421 EXPECT(test_erase_moves_no_other_entry() == 0);
379 EXPECT(test_multithreaded_insert_and_lookup() == 0); 422 EXPECT(test_multithreaded_insert_and_lookup() == 0);
380 EXPECT(test_clear_resets_table() == 0); 423 EXPECT(test_clear_resets_table() == 0);
381 EXPECT(test_erase_and_cluster_compact() == 0); 424 EXPECT(test_erase_and_reinsert() == 0);
382 425
383 std::printf("descriptor_table_test: all tests passed (0 failures)\n"); 426 std::printf("descriptor_table_test: all tests passed (0 failures)\n");
384 return 0; 427 return 0;
diff --git a/runtime/test/dxgi_swapchain_test.cpp b/runtime/test/dxgi_swapchain_test.cpp
index c42707640..c22397d90 100644
--- a/runtime/test/dxgi_swapchain_test.cpp
+++ b/runtime/test/dxgi_swapchain_test.cpp
@@ -458,6 +458,9 @@ int main() {
458 458
459 // Frame 2: ResizeBuffers to explicit 37x19 on the unchanged 128x128 HWND, clear to green, read back all 703 pixels, Present. 459 // Frame 2: ResizeBuffers to explicit 37x19 on the unchanged 128x128 HWND, clear to green, read back all 703 pixels, Present.
460 if (FAILED(sc->ResizeBuffers(2, 37, 19, DXGI_FORMAT_UNKNOWN, 0))) return fail("ResizeBuffers"); 460 if (FAILED(sc->ResizeBuffers(2, 37, 19, DXGI_FORMAT_UNKNOWN, 0))) return fail("ResizeBuffers");
461 DXGI_SWAP_CHAIN_DESC1 preserved_format{};
462 if (FAILED(sc->GetDesc1(&preserved_format)) || preserved_format.Format != scd.Format)
463 return fail("ResizeBuffers with DXGI_FORMAT_UNKNOWN changed the format");
461 const float green[4] = {0.0f, 1.0f, 0.0f, 1.0f}; 464 const float green[4] = {0.0f, 1.0f, 0.0f, 1.0f};
462 if (run_clear_readback_present(37, 19, green, 0, 255, 0) != 0) return 1; 465 if (run_clear_readback_present(37, 19, green, 0, 255, 0) != 0) return 1;
463 466
@@ -618,9 +621,28 @@ int main() {
618 return fail("GetRotation(nullptr) should return E_INVALIDARG"); 621 return fail("GetRotation(nullptr) should return E_INVALIDARG");
619 } 622 }
620 623
621 // Unsupported swapchain format must fail explicitly instead of silently downgrading to BGRA8. 624 constexpr DXGI_FORMAT invalid_formats[] = {
622 if (sc->ResizeBuffers(2, 37, 19, DXGI_FORMAT_R32_UINT, 0) != DXGI_ERROR_UNSUPPORTED) 625 DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, DXGI_FORMAT_B8G8R8A8_UNORM_SRGB,
623 return fail("ResizeBuffers should reject unsupported format DXGI_FORMAT_R32_UINT"); 626 DXGI_FORMAT_R8G8B8A8_TYPELESS, DXGI_FORMAT_R32_UINT,
627 };
628 {
629 DXGI_SWAP_CHAIN_DESC1 before{}, after{};
630 if (FAILED(sc->GetDesc1(&before))) return fail("GetDesc1 before invalid formats");
631 const UINT node_masks[2] = {1, 1};
632 IUnknown* const present_queues[2] = {queue, queue};
633 for (DXGI_FORMAT format : invalid_formats) {
634 if (sc->ResizeBuffers(2, 64, 64, format, 0) != E_INVALIDARG ||
635 sc->ResizeBuffers1(2, 64, 64, format, 0, node_masks, present_queues) != E_INVALIDARG)
636 return fail("ResizeBuffers and ResizeBuffers1 should reject invalid flip-model formats");
637 }
638 if (FAILED(sc->GetDesc1(&after)) || after.Format != before.Format || after.BufferCount != before.BufferCount ||
639 after.Width != before.Width || after.Height != before.Height)
640 return fail("Invalid format changed the existing swapchain");
641 ID3D12Resource* buffer = nullptr;
642 if (FAILED(sc->GetBuffer(sc->GetCurrentBackBufferIndex(), IID_PPV_ARGS(&buffer))) || !buffer)
643 return fail("GetBuffer after invalid swapchain formats");
644 buffer->Release();
645 }
624 646
625 // Measured on host DXGI (RTX 5070 and WARP): DXGI_PRESENT_TEST returns S_OK without presenting, so the back 647 // Measured on host DXGI (RTX 5070 and WARP): DXGI_PRESENT_TEST returns S_OK without presenting, so the back
626 // buffer index and last present count stay; a sync interval above 4 is DXGI_ERROR_INVALID_CALL and presents nothing. 648 // buffer index and last present count stay; a sync interval above 4 is DXGI_ERROR_INVALID_CALL and presents nothing.
@@ -798,6 +820,21 @@ int main() {
798 HWND hwnd2 = create_test_window(200, 150); 820 HWND hwnd2 = create_test_window(200, 150);
799 if (!hwnd2) return fail("CreateWindowExW (second)"); 821 if (!hwnd2) return fail("CreateWindowExW (second)");
800 GetClientRect(hwnd2, &cr); 822 GetClientRect(hwnd2, &cr);
823 const auto rejects_creation_format = [&](DXGI_FORMAT format) {
824 DXGI_SWAP_CHAIN_DESC1 invalid = scd;
825 invalid.Format = format;
826 IDXGISwapChain1* rejected = nullptr;
827 const HRESULT hr = factory->CreateSwapChainForHwnd(queue, hwnd2, &invalid, nullptr, nullptr, &rejected);
828 if (rejected) {
829 rejected->Release();
830 return false;
831 }
832 return hr == DXGI_ERROR_INVALID_CALL;
833 };
834 if (!rejects_creation_format(DXGI_FORMAT_UNKNOWN))
835 return fail("CreateSwapChainForHwnd accepted DXGI_FORMAT_UNKNOWN");
836 for (DXGI_FORMAT format : invalid_formats)
837 if (!rejects_creation_format(format)) return fail("CreateSwapChainForHwnd invalid flip-model format");
801 DXGI_SWAP_CHAIN_DESC1 zd = scd; 838 DXGI_SWAP_CHAIN_DESC1 zd = scd;
802 zd.Width = 0; 839 zd.Width = 0;
803 zd.Height = 0; 840 zd.Height = 0;
diff --git a/runtime/test/fixtures/tiny_gdk_load.cpp b/runtime/test/fixtures/tiny_gdk_load.cpp
index 780b10edb..291d3a5d7 100644
--- a/runtime/test/fixtures/tiny_gdk_load.cpp
+++ b/runtime/test/fixtures/tiny_gdk_load.cpp
@@ -51,10 +51,27 @@ int main() {
51 HRESULT hr = init(0, 0, 0x02, &options); 51 HRESULT hr = init(0, 0, 0x02, &options);
52 if (hr != S_OK) return fail("InitializeApiImplEx2", static_cast<unsigned long>(hr)); 52 if (hr != S_OK) return fail("InitializeApiImplEx2", static_cast<unsigned long>(hr));
53 53
54 // XThreadingImpl, the first class XCurl.dll references (docs/runtime_imports.md); not provided offline yet. 54 // XThreadingImpl, the first class XCurl.dll references (docs/runtime_imports.md), used as its thunks do: the
55 // class id as both ids, a slot with `this` first, then Release (slot 2). Slot 12 is XTaskQueueCreate, 17
56 // XTaskQueueCloseHandle.
55 const GUID threading = {0x073b7dcb, 0x1fcf, 0x4030, {0x94, 0xbe, 0xe3, 0xc9, 0xeb, 0x62, 0x34, 0x28}}; 57 const GUID threading = {0x073b7dcb, 0x1fcf, 0x4030, {0x94, 0xbe, 0xe3, 0xc9, 0xeb, 0x62, 0x34, 0x28}};
58 void* obj = nullptr;
59 hr = query(&threading, threading, &obj);
60 if (hr != S_OK || !obj) return fail("QueryApiImpl hands out XThreadingImpl", static_cast<unsigned long>(hr));
61 void* const* vtable = *static_cast<void* const* const*>(obj);
62 using Create = HRESULT(STDMETHODCALLTYPE*)(void*, UINT32, UINT32, void**);
63 using Close = void(STDMETHODCALLTYPE*)(void*, void*);
64 using Release = ULONG(STDMETHODCALLTYPE*)(void*);
65 void* queue = nullptr;
66 hr = reinterpret_cast<Create>(vtable[12])(obj, 0, 0, &queue); // XTaskQueueDispatchMode::Manual twice
67 if (hr != S_OK || !queue) return fail("XThreadingImpl slot 12 (XTaskQueueCreate)", static_cast<unsigned long>(hr));
68 reinterpret_cast<Close>(vtable[17])(obj, queue);
69 reinterpret_cast<Release>(vtable[2])(obj);
70
71 // A class not served yet (XNetworkingImpl) is refused, with the out pointer cleared.
72 const GUID networking = {0x37e56907, 0x2f10, 0x41e8, {0xb7, 0x2f, 0x36, 0xed, 0xb1, 0x85, 0x33, 0x1a}};
56 void* out = reinterpret_cast<void*>(1); 73 void* out = reinterpret_cast<void*>(1);
57 hr = query(&threading, threading, &out); 74 hr = query(&networking, networking, &out);
58 if (hr != static_cast<HRESULT>(0x80070032) || out != nullptr) 75 if (hr != static_cast<HRESULT>(0x80070032) || out != nullptr)
59 return fail("QueryApiImpl refuses an unprovided class and clears its out pointer", static_cast<unsigned long>(hr)); 76 return fail("QueryApiImpl refuses an unprovided class and clears its out pointer", static_cast<unsigned long>(hr));
60 hr = uninit(); 77 hr = uninit();
diff --git a/runtime/test/shaders/build.py b/runtime/test/shaders/build.py
index c9796f244..7ec6608d6 100644
--- a/runtime/test/shaders/build.py
+++ b/runtime/test/shaders/build.py
@@ -20,6 +20,8 @@ With LEONIDA_FMA=khr (or glsl), the fused multiply-adds are translated with --fm
20VK_KHR_shader_fma; the test programs enable it when the device has it, else they exit 77) or --fma glsl. 20VK_KHR_shader_fma; the test programs enable it when the device has it, else they exit 77) or --fma glsl.
21With LEONIDA_BARY_FALLBACK=1, pixel shaders that read raw barycentrics are translated with --bary-fallback, and 21With LEONIDA_BARY_FALLBACK=1, pixel shaders that read raw barycentrics are translated with --bary-fallback, and
22each gets a pass-through geometry shader, <name>.bary_gs.spv, that check.py draws it with (tools/bary_fallback_gs.py). 22each gets a pass-through geometry shader, <name>.bary_gs.spv, that check.py draws it with (tools/bary_fallback_gs.py).
23Under that or LEONIDA_F16_INTERP_FALLBACK=1, ps_ij_computed isn't built: its computed I/J pair needs PerVertexKHR
24inputs, and check.py reports it as SKIP.
23""" 25"""
24import json 26import json
25import os 27import os
@@ -38,6 +40,8 @@ import mc_command # noqa: E402
38 40
39MC = mc_command.mc_command() 41MC = mc_command.mc_command()
40RSRC2, GROUP = 0x8088, (64, 1, 1) 42RSRC2, GROUP = 0x8088, (64, 1, 1)
43# Not built under LEONIDA_BARY_FALLBACK=1 or LEONIDA_F16_INTERP_FALLBACK=1 (see main).
44NEEDS_PER_VERTEX_INPUTS = ("ps_ij_computed",)
41sys.path.insert(0, HERE) # this script is also run with python -I 45sys.path.insert(0, HERE) # this script is also run with python -I
42from compute_fixture import compute_header # noqa: E402 46from compute_fixture import compute_header # noqa: E402
43 47
@@ -58,8 +62,8 @@ def asm_mattr(path):
58CLIP_CASES = {"vs_clip": 1, "vs_clip_param4": 4, "vs_clip_undeclared": 1} 62CLIP_CASES = {"vs_clip": 1, "vs_clip_param4": 4, "vs_clip_undeclared": 1}
59 63
60 64
61def asm_fssm(path): 65def asm_fssm_fields(path):
62 """The synthetic FSSM program a vs_/ps_ shader's header asks for, or None.""" 66 """(offset, words) of the "fssm-at" and "fssm-data" header comments, (None, []) without them."""
63 at, words = None, [] 67 at, words = None, []
64 for ln in Path(path).read_text(encoding="utf-8").splitlines(): 68 for ln in Path(path).read_text(encoding="utf-8").splitlines():
65 s = ln.strip() 69 s = ln.strip()
@@ -71,11 +75,27 @@ def asm_fssm(path):
71 m = re.match(r";\s*fssm-data:\s*(.*)", s) 75 m = re.match(r";\s*fssm-data:\s*(.*)", s)
72 if m: 76 if m:
73 words += [int(w, 0) for w in m.group(1).split()] 77 words += [int(w, 0) for w in m.group(1).split()]
78 return at, words
79
80
81def asm_fssm(path):
82 """The synthetic FSSM program a vs_/ps_ shader's header asks for, or None."""
83 at, words = asm_fssm_fields(path)
74 if at is None or not words or at < 4 or at % 4: 84 if at is None or not words or at < 4 or at % 4:
75 return None 85 return None
76 return b"FSSM" + bytes(at - 4) + b"".join(struct.pack("<I", w) for w in words) 86 return b"FSSM" + bytes(at - 4) + b"".join(struct.pack("<I", w) for w in words)
77 87
78 88
89def cs_fssm_extra(path):
90 """A compute shader's "fssm-at"/"fssm-data" words (at 0x148 or later, after compute_header's header), or None.
91 Two compute shaders with the same group size and RSRC2 would otherwise share one FSSM hash, which is what the
92 layer finds a PSO's shader by."""
93 at, words = asm_fssm_fields(path)
94 if at is None or not words or at < 0x148 or at % 4:
95 return None
96 return at, b"".join(struct.pack("<I", w) for w in words)
97
98
79def shader_source(name): 99def shader_source(name):
80 return "vs_clip" if name in CLIP_CASES else name 100 return "vs_clip" if name in CLIP_CASES else name
81 101
@@ -108,12 +128,16 @@ def translate_tests(work, names):
108 sys.exit(f"{n}.asm did not assemble:\n{r.stderr}") 128 sys.exit(f"{n}.asm did not assemble:\n{r.stderr}")
109 # rdna2spirv.py rejects assembler directives such as the "\t.text" llvm-mc prints first. 129 # rdna2spirv.py rejects assembler directives such as the "\t.text" llvm-mc prints first.
110 code = "".join(ln for ln in r.stdout.splitlines(keepends=True) if not ln.lstrip().startswith(".")) 130 code = "".join(ln for ln in r.stdout.splitlines(keepends=True) if not ln.lstrip().startswith("."))
111 (disasm / (n + ".s")).write_text(f"; {n} hand-written test\n{code}", encoding="utf-8") 131 (disasm / (n + ".s")).write_text(f"; {n} hand-written test\n{code}", encoding="utf-8", newline="\n")
112 program = None if n.startswith("cs_") else asm_fssm(asm_path) 132 program = None if n.startswith("cs_") else asm_fssm(asm_path)
113 if program: # where the translator looks for a program to hash, as in the game's work folder 133 if program: # where the translator looks for a program to hash, as in the game's work folder
114 (fssm / (n + ".fssm")).write_bytes(program) 134 (fssm / (n + ".fssm")).write_bytes(program)
115 if n.startswith("cs_"): 135 if n.startswith("cs_"):
116 (fssm / (n + ".fssm")).write_bytes(compute_header(asm_path)) 136 program = bytes(compute_header(asm_path))
137 extra = cs_fssm_extra(asm_path)
138 if extra:
139 program += bytes(extra[0] - len(program)) + extra[1]
140 (fssm / (n + ".fssm")).write_bytes(program)
117 elif n in CLIP_CASES and n != "vs_clip_undeclared": 141 elif n in CLIP_CASES and n != "vs_clip_undeclared":
118 (work / (n + ".dxbc")).write_bytes(clip_container()) 142 (work / (n + ".dxbc")).write_bytes(clip_container())
119 else: 143 else:
@@ -149,6 +173,14 @@ def main():
149 if skipped: 173 if skipped:
150 print("not built (need a DXBC container with signatures):", ", ".join(skipped)) 174 print("not built (need a DXBC container with signatures):", ", ".join(skipped))
151 names = [n for n in names if n not in skipped] 175 names = [n for n in names if n not in skipped]
176 # A computed I/J pair needs PerVertexKHR inputs, which both fallbacks take away: the translator refuses it there,
177 # and check.py and run_gpu_tests.py report it as SKIP. Leave it out instead of losing the whole batch.
178 if os.environ.get("LEONIDA_BARY_FALLBACK") == "1" or os.environ.get("LEONIDA_F16_INTERP_FALLBACK") == "1":
179 per_vertex = [n for n in names if n in NEEDS_PER_VERTEX_INPUTS]
180 if per_vertex:
181 print("not built (computed I/J pairs need PerVertexKHR inputs, off under the fallback):",
182 ", ".join(per_vertex))
183 names = [n for n in names if n not in per_vertex]
152 if not names: 184 if not names:
153 return 0 185 return 0
154 out.mkdir(parents=True, exist_ok=True) 186 out.mkdir(parents=True, exist_ok=True)
@@ -168,13 +200,14 @@ def main():
168 published_index = spirv / index.name 200 published_index = spirv / index.name
169 combined = json.loads(published_index.read_text(encoding="utf-8")) if published_index.exists() else {} 201 combined = json.loads(published_index.read_text(encoding="utf-8")) if published_index.exists() else {}
170 combined.update(validated) 202 combined.update(validated)
171 index.write_text(json.dumps(combined, indent=2) + "\n", encoding="utf-8") 203 index.write_text(json.dumps(combined, indent=2) + "\n", encoding="utf-8", newline="\n")
172 for n in validated: 204 for n in validated:
173 for suffix in (".spv", ".spvasm"): 205 for suffix in (".spv", ".spvasm"):
174 artifact = built / (n + suffix) 206 artifact = built / (n + suffix)
175 artifact.replace(spirv / artifact.name) 207 artifact.replace(spirv / artifact.name)
176 sidecar = work / "fssm" / (n + ".fssm") 208 sidecar = work / "fssm" / (n + ".fssm")
177 if not n.startswith("cs_") and sidecar.is_file(): 209 published = not n.startswith("cs_") or cs_fssm_extra(os.path.join(HERE, n + ".asm"))
210 if published and sidecar.is_file():
178 (out / "fssm").mkdir(exist_ok=True) 211 (out / "fssm").mkdir(exist_ok=True)
179 sidecar.replace(out / "fssm" / sidecar.name) 212 sidecar.replace(out / "fssm" / sidecar.name)
180 index.replace(published_index) 213 index.replace(published_index)
diff --git a/runtime/test/shaders/check.py b/runtime/test/shaders/check.py
index 77f55f5b1..3985f85e4 100644
--- a/runtime/test/shaders/check.py
+++ b/runtime/test/shaders/check.py
@@ -81,14 +81,14 @@ CS_SMEM = [0x5eed0024, 0x5eed0028, 0x5eed002c, 0x5eed0030, 0x5eed0010, 0x5eed001
81WAVE32_DUMPS = ("cs_store", "cs_smem_soffset_imm", "cs_wqm_w32", "cs_w32_lane_wrap", "cs_movrelsd_2", "cs_w32_permute", 81WAVE32_DUMPS = ("cs_store", "cs_smem_soffset_imm", "cs_wqm_w32", "cs_w32_lane_wrap", "cs_movrelsd_2", "cs_w32_permute",
82 "cs_barrier_divergent", "cs_barrier_early_end", "cs_barrier_loop", "cs_w32_lds_u8_d16", "cs_bpermute32", 82 "cs_barrier_divergent", "cs_barrier_early_end", "cs_barrier_loop", "cs_w32_lds_u8_d16", "cs_bpermute32",
83 "cs_w32_partial_scmp", "cs_exec_const", "cs_w32_mask_imm", "cs_w32_int_ext", 83 "cs_w32_partial_scmp", "cs_exec_const", "cs_w32_mask_imm", "cs_w32_int_ext",
84 "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", "cs_w32_sincos") 84 "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", "cs_w32_sincos", "cs_lds_b64_cmpst")
85# Wave32 lane-mask dumps: their EXEC/VCC masks and lane selects cover 32 lanes, so a device whose widest subgroup is 85# Wave32 lane-mask dumps: their EXEC/VCC masks and lane selects cover 32 lanes, so a device whose widest subgroup is
86# narrower (Mesa llvmpipe: 8) can't produce their words. They are skipped there, as ps_bitmask_perm is. They run with 86# narrower (Mesa llvmpipe: 8) can't produce their words. They are skipped there, as ps_bitmask_perm is. They run with
87# 32 lanes requested (WAVE32_LANE_ENV), as run_gpu_tests.py does: a device with a range like 8..32 (Intel ANV) may 87# 32 lanes requested (WAVE32_LANE_ENV), as run_gpu_tests.py does: a device with a range like 8..32 (Intel ANV) may
88# otherwise pick a narrower size and return different words (#774). 88# otherwise pick a narrower size and return different words (#774).
89WAVE32_LANE_ENV = {"VKC_SUBGROUP_SIZE": "32"} 89WAVE32_LANE_ENV = {"VKC_SUBGROUP_SIZE": "32"}
90WAVE32_LANE_DUMPS = ("cs_wqm_w32", "cs_w32_lane_wrap", "cs_w32_permute", "cs_bpermute32", "cs_w32_partial_scmp", "cs_exec_const", 90WAVE32_LANE_DUMPS = ("cs_wqm_w32", "cs_w32_lane_wrap", "cs_w32_permute", "cs_bpermute32", "cs_w32_partial_scmp", "cs_exec_const",
91 "cs_w32_mask_imm") 91 "cs_w32_mask_imm", "cs_lds_b64_cmpst")
92CS_DPP = [("cs_dpp", [1, 0, 3, 2, 5, 4, 7, 6]), 92CS_DPP = [("cs_dpp", [1, 0, 3, 2, 5, 4, 7, 6]),
93 ("cs_dpp_row", [0, 0, 1, 2, 3, 4, 5, 6]), 93 ("cs_dpp_row", [0, 0, 1, 2, 3, 4, 5, 6]),
94 ("cs_dpp_mask", [1, 0, 3, 2, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee]), 94 ("cs_dpp_mask", [1, 0, 3, 2, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee, 0xeeeeeeee]),
@@ -116,6 +116,9 @@ CS_DUMPS = [*CS_DPP, ("cs_store", CS_STORE), ("cs_smem_soffset_imm", CS_SMEM),
116 ("cs_w32_salu64", [0x1E6A2C48, 0x1234, 0xFFFFFFFF, 0x100, 47, 48, 0xFFFF8000, 0xFFFFFFFE]), 116 ("cs_w32_salu64", [0x1E6A2C48, 0x1234, 0xFFFFFFFF, 0x100, 47, 48, 0xFFFF8000, 0xFFFFFFFE]),
117 # SHADER-85: 8-bit LDS reads into one half of a VGPR, the other half kept 117 # SHADER-85: 8-bit LDS reads into one half of a VGPR, the other half kept
118 ("cs_w32_lds_u8_d16", [0xBEEF00FF, 0x00FF1234, 0xBEEFFF80, 0xFF801234, 0xBEEF007F, 0x007F1234, 0xBEEF0080, 0xFFFF1234]), 118 ("cs_w32_lds_u8_d16", [0xBEEF00FF, 0x00FF1234, 0xBEEFFF80, 0xFF801234, 0xBEEF007F, 0x007F1234, 0xBEEF0080, 0xFFFF1234]),
119 # ds_cmpst_b32 and the b64 2-address forms (cs_lds_b64_cmpst.asm header)
120 ("cs_lds_b64_cmpst", [0x11110001, 0x22220002, 0x33330003, 0x44440004,
121 0xCCCC000C, 0x44440004, 0xBBBB000B, 0x3579BADC]),
119 # constant EXEC: each lane takes its own bit (Intel got 16-bit constants wrong for lanes 16-31) 122 # constant EXEC: each lane takes its own bit (Intel got 16-bit constants wrong for lanes 16-31)
120 ("cs_exec_const", [16, 8, 2, 16, 0, 16]), 123 ("cs_exec_const", [16, 8, 2, 16, 0, 16]),
121 # a constant lane mask (saveexec, wrexec, s_and/s_not/s_mov_b64 into EXEC or VCC) gives lane L its bit L, 124 # a constant lane mask (saveexec, wrexec, s_and/s_not/s_mov_b64 into EXEC or VCC) gives lane L its bit L,
@@ -188,6 +191,16 @@ FMT_XY_XYZ_WORDS = [
188 0x3F800000, 0xA5A50284, 0xA5A50288, 0xA5A5028C, 0x0000FFFF, 0xA5A50294, 0xA5A50298, 0xA5A5029C, 191 0x3F800000, 0xA5A50284, 0xA5A50288, 0xA5A5028C, 0x0000FFFF, 0xA5A50294, 0xA5A50298, 0xA5A5029C,
189 0x0003FF01, 0xA5A502A4, 0xA5A502A8, 0xA5A502AC, 0xA5A502B0, 0xA5A502B4, 0xA5A502B8, 0xA5A502BC, 192 0x0003FF01, 0xA5A502A4, 0xA5A502A8, 0xA5A502AC, 0xA5A502B0, 0xA5A502B4, 0xA5A502B8, 0xA5A502BC,
190 0xA5A502C0, 0xA5A502C4, 0xA5A502C8, 0xA5A502CC] 193 0xA5A502C0, 0xA5A502C4, 0xA5A502C8, 0xA5A502CC]
194# cs_tbuffer_store.asm: 13 tbuffer_store_format_* regions read back, as a Radeon 680M (gfx1035) gives them
195# natively. Layout and rules in the .asm header.
196TBUFFER_STORE_WORDS = [
197 0x3F800000, 0x40000000, 0x40400000, 0x40800000, 0x40003C00, 0x00000000, 0xA5A50218, 0xA5A5021C,
198 0x00030201, 0xA5A50224, 0xA5A50228, 0xA5A5022C, 0xA5A5FF30, 0xA5A50234, 0xA5A50238, 0xA5A5023C,
199 0x40000240, 0xA5A50244, 0xA5A50248, 0xA5A5024C, 0xD00003FF, 0xA5A50254, 0xA5A50258, 0xA5A5025C,
200 0x3F800000, 0x40000000, 0xA5A50268, 0xA5A5026C, 0x40003C00, 0xA5A50274, 0xA5A50278, 0xA5A5027C,
201 0xFF0080FF, 0xA5A50284, 0xA5A50288, 0xA5A5028C, 0xA5A50290, 0xA5A50294, 0xA5A50298, 0xA5A5029C,
202 0xA5A502FF, 0xA5A502A4, 0xA5A502A8, 0xA5A502AC, 0x3F800000, 0xA5A502B4, 0xA5A502B8, 0xA5A502BC,
203 0xA5A502C0, 0xA5A502C4, 0xA5A502C8, 0xA5A502CC]
191# Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups make a 0x2800-byte heap that holds 204# Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups make a 0x2800-byte heap that holds
192# both the right addresses and the 4096-lower ones; only group 0 thread 0 runs, so no wave64 requirement. 205# both the right addresses and the 4096-lower ones; only group 0 thread 0 runs, so no wave64 requirement.
193GLOBAL_OFFSET = [("cs_global_neg_offset", "40", [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4, 206GLOBAL_OFFSET = [("cs_global_neg_offset", "40", [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4,
@@ -318,7 +331,8 @@ CLIP_TESTS = ("vs_clip", "vs_clip_param4", "vs_clip_undeclared")
318# One definition: a later assignment used to drop ps_texoff (and any entry added by an earlier assignment) from 331# One definition: a later assignment used to drop ps_texoff (and any entry added by an earlier assignment) from
319# the standalone run. Keep every pixel fixture in this tuple. 332# the standalone run. Keep every pixel fixture in this tuple.
320PIXEL_TESTS = sorted((*PIXEL_BITS, "ps_bary", "ps_flat", "ps_bitmask_perm", "ps_texoff", "ps_texoff_implicit", 333PIXEL_TESTS = sorted((*PIXEL_BITS, "ps_bary", "ps_flat", "ps_bitmask_perm", "ps_texoff", "ps_texoff_implicit",
321 "ps_uniform_branch", "ps_wqm", "ps_scc_mask32", "ps_interp_f16_high", "ps_ij_computed")) 334 "ps_uniform_branch", "ps_wqm", "ps_scc_mask32", "ps_interp_f16_high", "ps_ij_computed",
335 "ps_mandelbrot"))
322# Pixel fixtures drawn with another vertex shader than vs_ids. 336# Pixel fixtures drawn with another vertex shader than vs_ids.
323PIXEL_VERTEX = {"ps_interp_f16_high": "vs_f16_pack", 337PIXEL_VERTEX = {"ps_interp_f16_high": "vs_f16_pack",
324 "ps_interp_f32_mods": "vs_interp_consts", "ps_interp_mov_mods": "vs_interp_consts"} 338 "ps_interp_f32_mods": "vs_interp_consts", "ps_interp_mov_mods": "vs_interp_consts"}
@@ -467,6 +481,12 @@ def fmt_xy_xyz_test(tools, spirv, env=None):
467 return dump_test(tools, spirv, "cs_fmt_xy_xyz", FMT_XY_XYZ_WORDS + [0xEEEEEEEE] * 44, 192, env) 481 return dump_test(tools, spirv, "cs_fmt_xy_xyz", FMT_XY_XYZ_WORDS + [0xEEEEEEEE] * 44, 192, env)
468 482
469 483
484def tbuffer_store_test(tools, spirv, env=None):
485 """The 52 region words tbuffer_store_format_* leaves and the untouched words after them, up to the regions at
486 0x200. The heap needs 0x2d0 bytes, so it is 192 words."""
487 return dump_test(tools, spirv, "cs_tbuffer_store", TBUFFER_STORE_WORDS + [0xEEEEEEEE] * 76, 192, env)
488
489
470class Skip(str): 490class Skip(str):
471 """A result that is neither a pass nor a failure: the device can't run the test.""" 491 """A result that is neither a pass nor a failure: the device can't run the test."""
472 492
@@ -661,6 +681,8 @@ def cvt_f32_sat_test(tools, spirv):
661 for bits, unsigned, signed in CVT_F32_SAT_CASES: 681 for bits, unsigned, signed in CVT_F32_SAT_CASES:
662 problem = compute_test(tools, spirv, "cs_cvt_f32_sat", "1", "dump", expected_words=[unsigned, signed], 682 problem = compute_test(tools, spirv, "cs_cvt_f32_sat", "1", "dump", expected_words=[unsigned, signed],
663 env={"VKC_SGPRS": f"{bits:#010x}"}) 683 env={"VKC_SGPRS": f"{bits:#010x}"})
684 if problem is None or isinstance(problem, Skip):
685 return problem # the device can't run it as recorded (wave size not pinnable): the same for every input
664 if problem: 686 if problem:
665 wrong.append(f"{bits:#010x}: {problem}") 687 wrong.append(f"{bits:#010x}: {problem}")
666 return f"{len(wrong)} of {len(CVT_F32_SAT_CASES)} inputs wrong, first {wrong[0]}" if wrong else "" 688 return f"{len(wrong)} of {len(CVT_F32_SAT_CASES)} inputs wrong, first {wrong[0]}" if wrong else ""
@@ -1104,6 +1126,46 @@ def wide_pixel_skip(name, out):
1104 return Skip(f"SKIP (this device cannot require a {want}-wide fragment subgroup{seen})") 1126 return Skip(f"SKIP (this device cannot require a {want}-wide fragment subgroup{seen})")
1105 1127
1106 1128
1129def f32(x):
1130 """x rounded to the nearest float32. One double add or multiply of two float32 values, then this, is the exact
1131 IEEE float32 result, so a model built from it matches the GPU bit for bit."""
1132 return struct.unpack("<f", struct.pack("<f", x))[0]
1133
1134
1135def mandelbrot_counts(w):
1136 """ps_mandelbrot.asm's iteration counts over a w x w frame, in the shader's order of float32 operations."""
1137 counts = []
1138 for y in range(w):
1139 cy = f32(f32(3.0 * f32((y + 0.5) / w)) - 1.5)
1140 for x in range(w):
1141 cx = f32(f32(3.0 * f32((x + 0.5) / w)) - 2.25)
1142 zx = zy = 0.0
1143 n = 0
1144 while n < 64:
1145 zx2, zy2 = f32(zx * zx), f32(zy * zy)
1146 if not 4.0 >= f32(zx2 + zy2):
1147 break
1148 xy = f32(zx * zy)
1149 zx, zy = f32(f32(zx2 - zy2) + cx), f32(f32(xy + xy) + cy)
1150 n += 1
1151 counts.append(n)
1152 return counts
1153
1154
1155def mandelbrot_problem(px):
1156 """ps_mandelbrot: channel 3 is the lane's iteration count. A lane that leaves EXEC too early or late, or a loop
1157 that ends on the wrong branch, changes counts; the colour channels are only for looking at the frame."""
1158 w = int(len(px) ** 0.5)
1159 if w * w != len(px):
1160 return f"{len(px)} pixels is not a square frame"
1161 want = mandelbrot_counts(w)
1162 wrong = [(i, p[3], e) for i, (p, e) in enumerate(zip(px, want)) if p[3] != e]
1163 if not wrong:
1164 return ""
1165 i, got, e = wrong[0]
1166 return f"{len(wrong)} of {len(px)} iteration counts differ, e.g. pixel ({i % w}, {i // w}) {got} instead of {e}"
1167
1168
1107def pixel_test(tools, spirv, name): 1169def pixel_test(tools, spirv, name):
1108 path = os.path.join(spirv, name + ".spv") 1170 path = os.path.join(spirv, name + ".spv")
1109 if name == "ps_ij_computed" and (BARY_FALLBACK or F16_HALVES): 1171 if name == "ps_ij_computed" and (BARY_FALLBACK or F16_HALVES):
@@ -1170,6 +1232,8 @@ def pixel_test(tools, spirv, name):
1170 c = collections.Counter((a, b) for a, b, _, _ in px) 1232 c = collections.Counter((a, b) for a, b, _, _ in px)
1171 fine = c[(8, 1)] and c[(8, 0)] and c[(7, 0)] and set(c) <= {(8, 1), (8, 0), (7, 0)} 1233 fine = c[(8, 1)] and c[(8, 0)] and c[(7, 0)] and set(c) <= {(8, 1), (8, 0), (7, 0)}
1172 return "" if fine else f"(s5, bit) counts {dict(c)}" 1234 return "" if fine else f"(s5, bit) counts {dict(c)}"
1235 if name == "ps_mandelbrot":
1236 return mandelbrot_problem(px)
1173 return "no check written for this shader" 1237 return "no check written for this shader"
1174 1238
1175 1239
@@ -1223,6 +1287,7 @@ def main():
1223 results.append(("cs_fmt_1010102", fmt_1010102_test(tools, spirv))) 1287 results.append(("cs_fmt_1010102", fmt_1010102_test(tools, spirv)))
1224 results.append(("cs_fmt_sint32", fmt_sint32_test(tools, spirv))) 1288 results.append(("cs_fmt_sint32", fmt_sint32_test(tools, spirv)))
1225 results.append(("cs_fmt_xy_xyz", fmt_xy_xyz_test(tools, spirv))) 1289 results.append(("cs_fmt_xy_xyz", fmt_xy_xyz_test(tools, spirv)))
1290 results.append(("cs_tbuffer_store", tbuffer_store_test(tools, spirv)))
1226 for name, groups, want in GLOBAL_OFFSET: 1291 for name, groups, want in GLOBAL_OFFSET:
1227 results.append((name, compute_test(tools, spirv, name, groups, "dump", expected_words=want))) 1292 results.append((name, compute_test(tools, spirv, name, groups, "dump", expected_words=want)))
1228 results.append(("cs_user_sgprs", compute_test(tools, spirv, "cs_user_sgprs", "1", "dump", 1293 results.append(("cs_user_sgprs", compute_test(tools, spirv, "cs_user_sgprs", "1", "dump",
diff --git a/runtime/test/shaders/cs_buf_counter.asm b/runtime/test/shaders/cs_buf_counter.asm
new file mode 100644
index 000000000..9bbe84bea
--- /dev/null
+++ b/runtime/test/shaders/cs_buf_counter.asm
@@ -0,0 +1,40 @@
1; group: 64,1,1
2; rsrc2: 0x808c
3; fssm-at: 0x150
4; fssm-data: 0x4e554f43 0x3d524554
5; UAV counters (D3D12 CreateUnorderedAccessView with pCounterResource): AppendStructuredBuffer and
6; ConsumeStructuredBuffer as hand-written RDNA2, the way docs/d3d12_vulkan.md section 3.4 describes the contract:
7; the counter is a second, raw 4-byte V# in the upper 16 bytes of the view's descriptor slot, and append and consume
8; are buffer atomics on it. Run: d3d12_buffer_uav_test (a compute PSO found by the SHA-256 of its synthetic FSSM header).
9; The branch skips the 10 dwords of the append path (checked with llvm-mc -show-encoding).
10; User data, from the root signature: [0] four 32-bit constants, [1] a descriptor table of six UAVs, TGID_X in s6:
11; s0 = mode: 0 append, 1 consume s[4:5] = console VA of the table's first slot (32 bytes a slot)
12; slot 0 (+0x00): V#, structured buffer, stride 8, 256 records; the counter V# in +0x10 (raw, 4 bytes)
13; slot 1 (+0x20): V#, raw buffer, 128 records of 8 bytes (written by consume)
14; g = 64 * group + lane
15; append: i = counter++ (buffer_atomic_add, glc returns the old value); record i = { g, g * 3 + 1 }
16; consume: i = --counter (the old value of buffer_atomic_sub, minus one); out[g] = record i
17s_load_dwordx8 s[8:15], s[4:5], 0x0
18s_load_dwordx4 s[16:19], s[4:5], 0x20
19s_lshl_b32 s7, s6, 6
20s_waitcnt lgkmcnt(0)
21v_add_nc_u32_e32 v1, s7, v0
22v_mov_b32_e32 v2, 1
23s_cmp_eq_u32 s0, 0
24s_cbranch_scc0 10
25buffer_atomic_add v2, off, s[12:15], 0 glc
26s_waitcnt vmcnt(0)
27v_mul_lo_u32 v6, v1, 3
28v_add_nc_u32_e32 v6, 1, v6
29v_mov_b32_e32 v5, v1
30buffer_store_dwordx2 v[5:6], v2, s[8:11], 0 idxen
31s_endpgm
32; consume:
33buffer_atomic_sub v2, off, s[12:15], 0 glc
34s_waitcnt vmcnt(0)
35v_add_nc_u32_e32 v2, -1, v2
36buffer_load_dwordx2 v[5:6], v2, s[8:11], 0 idxen
37s_waitcnt vmcnt(0)
38v_lshlrev_b32_e32 v7, 3, v1
39buffer_store_dwordx2 v[5:6], v7, s[16:19], 0 offen
40s_endpgm
diff --git a/runtime/test/shaders/cs_buf_typed.asm b/runtime/test/shaders/cs_buf_typed.asm
new file mode 100644
index 000000000..b101343e8
--- /dev/null
+++ b/runtime/test/shaders/cs_buf_typed.asm
@@ -0,0 +1,63 @@
1; group: 64,1,1
2; rsrc2: 0x808c
3; fssm-at: 0x150
4; fssm-data: 0x44505954 0x3d424655
5; Typed buffer UAVs (D3D12 CreateUnorderedAccessView with a Format on a BUFFER view): hand-written RDNA2 the way a
6; translated `RWBuffer<T>` shader reads and writes them. Run: d3d12_buffer_uav_test (a compute PSO found by the
7; SHA-256 of its synthetic FSSM header, as for the other cs_ shaders).
8; User data, from the root signature: [0] four 32-bit constants, [1] a descriptor table of six UAVs. RSRC2 0x808c =
9; six user SGPRs and TGID_X, so the group index is s6:
10; s0 = seed s1 = multiplier s[4:5] = console VA of the table's first slot (a slot is 32 bytes, a V# in its first 16)
11; slot 0 (+0x00): V#, typed R32_UINT, 240 elements of a 256-element buffer (written, then atomically added to)
12; slot 1 (+0x20): V#, typed R16G16B16A16_FLOAT, 256 elements (written)
13; slot 2 (+0x40): V#, typed R8G8B8A8_UNORM, 256 elements from element 16 of the buffer (written)
14; slot 3 (+0x60): V#, typed R32G32B32A32_UINT, 256 elements (written)
15; slot 4 (+0x80): V#, typed R32_FLOAT, 250 elements of a 256-element buffer (read)
16; slot 5 (+0xa0): V#, typed R32_SINT, 256 elements (written)
17; g = 64 * group + lane, 0..255 (an index past a view's NUM_RECORDS is out of range: a load gives 0, a store or an
18; atomic touches nothing):
19; slot 0: element g = g * mul + seed, then += g
20; slot 1: element g = { f16(g), f16(g + 0.5), f16(-1 - g), f16(0.25) }
21; slot 2: element g = unorm8 { (g & 255) / 255, (255 - (g & 255)) / 255, 0, 1 }
22; slot 3: element g = { g, g ^ 0xffff, g * 7, 0xa5 }
23; slot 5: element g = (int)(2 * input[g]), input[g] = g - 100.5
24s_load_dwordx4 s[8:11], s[4:5], 0x0
25s_load_dwordx4 s[12:15], s[4:5], 0x20
26s_load_dwordx4 s[16:19], s[4:5], 0x40
27s_load_dwordx4 s[20:23], s[4:5], 0x60
28s_load_dwordx4 s[24:27], s[4:5], 0x80
29s_load_dwordx4 s[28:31], s[4:5], 0xa0
30s_lshl_b32 s7, s6, 6
31s_waitcnt lgkmcnt(0)
32v_add_nc_u32_e32 v1, s7, v0
33v_mul_lo_u32 v2, v1, s1
34v_add_nc_u32_e32 v2, s0, v2
35buffer_store_format_x v2, v1, s[8:11], 0 idxen
36v_mov_b32_e32 v3, v1
37buffer_atomic_add v3, v1, s[8:11], 0 idxen
38v_cvt_f32_u32_e32 v4, v1
39v_add_f32_e32 v5, 0.5, v4
40v_sub_f32_e32 v6, -1.0, v4
41v_mov_b32_e32 v7, 0x3e800000
42buffer_store_format_xyzw v[4:7], v1, s[12:15], 0 idxen
43v_and_b32_e32 v8, 255, v1
44v_cvt_f32_ubyte0_e32 v9, v8
45v_mov_b32_e32 v10, 0x3b808081
46v_mul_f32_e32 v11, v9, v10
47v_sub_nc_u32_e32 v12, 255, v8
48v_cvt_f32_ubyte0_e32 v12, v12
49v_mul_f32_e32 v12, v12, v10
50v_mov_b32_e32 v13, 0
51v_mov_b32_e32 v14, 1.0
52buffer_store_format_xyzw v[11:14], v1, s[16:19], 0 idxen
53v_mov_b32_e32 v15, v1
54v_xor_b32_e32 v16, 0xffff, v1
55v_mul_lo_u32 v17, v1, 7
56v_mov_b32_e32 v18, 0xa5
57buffer_store_format_xyzw v[15:18], v1, s[20:23], 0 idxen
58buffer_load_format_x v19, v1, s[24:27], 0 idxen
59s_waitcnt vmcnt(0)
60v_add_f32_e32 v19, v19, v19
61v_cvt_i32_f32_e32 v19, v19
62buffer_store_format_x v19, v1, s[28:31], 0 idxen
63s_endpgm
diff --git a/runtime/test/shaders/cs_lds_b64_cmpst.asm b/runtime/test/shaders/cs_lds_b64_cmpst.asm
new file mode 100644
index 000000000..0998d8576
--- /dev/null
+++ b/runtime/test/shaders/cs_lds_b64_cmpst.asm
@@ -0,0 +1,132 @@
1; GPU test for the two LDS families that docs/design.md lists as not GPU-verified:
2; ds_cmpst_b32 (the non-returning compare-and-store) and the b64 2-address forms
3; (ds_read2_b64 / ds_write2_b64 and their st64 variants).
4;
5; LDS 4 KiB (RSRC2 0x40088), group 32x1x1, only lane 0 runs. The output words are
6; derived from the RDNA2 ISA's 2-address and DS_CMPST_B32 pseudocode:
7;
8; out[0..3] ds_write2_b64 then ds_read2_b64 at base 0x20, offset0:1 offset1:3,
9; writes A at 0x28 and B at 0x38 (unit 8), reads the same two elements:
10; A.lo A.hi B.lo B.hi
11; out[4] ds_read2st64_b64 at base 0x100, offset0:0 offset1:1 (unit 512):
12; XOR of the four dwords seeded at 0x100 and 0x300
13; out[5] ds_write2st64_b64 at base 0x100, offset0:0 offset1:1, then plain
14; ds_read_b32 at 0x100/0x104/0x300/0x304: XOR of the four dwords
15; out[6] ds_read2_b64 v[2:5], v2 at base 0x200 (vdst overlaps vaddr): the
16; second element's low dword, 0xBBBB000B, read before v2 is overwritten
17; out[7] ds_cmpst_b32 hit (mem 0x13572468 -> 0x2468ABCD) XOR the miss case's
18; unchanged word (0x11111111): 0x3579BADC
19;
20; Run: vk_compute_test cs_lds_b64_cmpst.spv 1 dump
21; -> out[0..7] = 0x11110001 0x22220002 0x33330003 0x44440004
22; 0xCCCC000C 0x44440004 0xBBBB000B 0x3579BADC
23; rsrc2: 0x40088
24; group: 32,1,1
25; mattr: +wavefrontsize32,-wavefrontsize64
26v_cmpx_eq_u32_e32 0, v0
27
28; --- ds_write2_b64 / ds_read2_b64, unit 8 bytes ---
29v_mov_b32_e32 v2, 0x20
30v_mov_b32_e32 v4, 0x11110001
31v_mov_b32_e32 v5, 0x22220002
32v_mov_b32_e32 v6, 0x33330003
33v_mov_b32_e32 v7, 0x44440004
34ds_write2_b64 v2, v[4:5], v[6:7] offset0:1 offset1:3
35s_waitcnt lgkmcnt(0)
36ds_read2_b64 v[10:13], v2 offset0:1 offset1:3
37s_waitcnt lgkmcnt(0)
38v_mov_b32_e32 v21, 0
39buffer_store_dword v10, v21, s[0:3], 0 offen
40v_mov_b32_e32 v21, 4
41buffer_store_dword v11, v21, s[0:3], 0 offen
42v_mov_b32_e32 v21, 8
43buffer_store_dword v12, v21, s[0:3], 0 offen
44v_mov_b32_e32 v21, 12
45buffer_store_dword v13, v21, s[0:3], 0 offen
46
47; --- ds_read2st64_b64, unit 512 bytes: seed 0x100 and 0x300 ---
48v_mov_b32_e32 v1, 0x100
49v_mov_b32_e32 v3, 0x55550005
50ds_write_b32 v1, v3
51v_mov_b32_e32 v1, 0x104
52v_mov_b32_e32 v3, 0x66660006
53ds_write_b32 v1, v3
54v_mov_b32_e32 v1, 0x300
55v_mov_b32_e32 v3, 0x77770007
56ds_write_b32 v1, v3
57v_mov_b32_e32 v1, 0x304
58v_mov_b32_e32 v3, 0x88880008
59ds_write_b32 v1, v3
60s_waitcnt lgkmcnt(0)
61v_mov_b32_e32 v2, 0x100
62ds_read2st64_b64 v[10:13], v2 offset0:0 offset1:1
63s_waitcnt lgkmcnt(0)
64v_xor_b32_e32 v14, v10, v11
65v_xor_b32_e32 v14, v14, v12
66v_xor_b32_e32 v14, v14, v13
67v_mov_b32_e32 v21, 16
68buffer_store_dword v14, v21, s[0:3], 0 offen
69
70; --- ds_write2st64_b64, unit 512 bytes: A at 0x100, B at 0x300 ---
71v_mov_b32_e32 v2, 0x100
72ds_write2st64_b64 v2, v[4:5], v[6:7] offset0:0 offset1:1
73s_waitcnt lgkmcnt(0)
74v_mov_b32_e32 v1, 0x100
75ds_read_b32 v10, v1
76v_mov_b32_e32 v1, 0x104
77ds_read_b32 v11, v1
78v_mov_b32_e32 v1, 0x300
79ds_read_b32 v12, v1
80v_mov_b32_e32 v1, 0x304
81ds_read_b32 v13, v1
82s_waitcnt lgkmcnt(0)
83v_xor_b32_e32 v15, v10, v11
84v_xor_b32_e32 v15, v15, v12
85v_xor_b32_e32 v15, v15, v13
86v_mov_b32_e32 v21, 20
87buffer_store_dword v15, v21, s[0:3], 0 offen
88
89; --- ds_read2_b64 with vdst overlapping vaddr: v[2:5] <- base v2 ---
90v_mov_b32_e32 v1, 0x200
91v_mov_b32_e32 v3, 0x99990009
92ds_write_b32 v1, v3
93v_mov_b32_e32 v1, 0x204
94v_mov_b32_e32 v3, 0xAAAA000A
95ds_write_b32 v1, v3
96v_mov_b32_e32 v1, 0x208
97v_mov_b32_e32 v3, 0xBBBB000B
98ds_write_b32 v1, v3
99v_mov_b32_e32 v1, 0x20C
100v_mov_b32_e32 v3, 0xCCCC000C
101ds_write_b32 v1, v3
102s_waitcnt lgkmcnt(0)
103v_mov_b32_e32 v2, 0x200
104ds_read2_b64 v[2:5], v2 offset0:0 offset1:1
105s_waitcnt lgkmcnt(0)
106v_mov_b32_e32 v21, 24
107buffer_store_dword v4, v21, s[0:3], 0 offen
108
109; --- ds_cmpst_b32: hit at 0x400, miss at 0x404 ---
110v_mov_b32_e32 v1, 0x400
111v_mov_b32_e32 v3, 0x13572468
112ds_write_b32 v1, v3
113v_mov_b32_e32 v1, 0x404
114v_mov_b32_e32 v3, 0x11111111
115ds_write_b32 v1, v3
116s_waitcnt lgkmcnt(0)
117v_mov_b32_e32 v1, 0x400
118v_mov_b32_e32 v3, 0x13572468
119v_mov_b32_e32 v4, 0x2468ABCD
120ds_cmpst_b32 v1, v3, v4
121s_waitcnt lgkmcnt(0)
122ds_read_b32 v10, v1
123v_mov_b32_e32 v1, 0x404
124v_mov_b32_e32 v3, 0
125v_mov_b32_e32 v4, 0xFFFFFFFF
126ds_cmpst_b32 v1, v3, v4
127s_waitcnt lgkmcnt(0)
128ds_read_b32 v11, v1
129v_xor_b32_e32 v16, v10, v11
130v_mov_b32_e32 v21, 28
131buffer_store_dword v16, v21, s[0:3], 0 offen
132s_endpgm
diff --git a/runtime/test/shaders/cs_m4_fill.asm b/runtime/test/shaders/cs_m4_fill.asm
new file mode 100644
index 000000000..1af46dac9
--- /dev/null
+++ b/runtime/test/shaders/cs_m4_fill.asm
@@ -0,0 +1,51 @@
1; group: 64,1,1
2; rsrc2: 0x808c
3; fssm-at: 0x150
4; fssm-data: 0x4c4c4946 0x3d344d5f
5; M4 compute shader 1: fills a structured UAV buffer and a typed UAV image from a raw input buffer, and writes the
6; arguments of the next (indirect) dispatch. Run: d3d12_m4_compute_test (a compute PSO found by the SHA-256 of its
7; synthetic FSSM header, as for the other cs_ shaders).
8; User data, from the root signature: [0] four 32-bit constants, [1] a descriptor table of five UAVs. RSRC2 0x808c =
9; six user SGPRs and TGID_X, so the group index is s6:
10; s0 = seed s1 = multiplier s2 = group count of the indirect dispatch s3 = unused
11; s[4:5] = console VA of the table's first slot. A slot is 32 bytes: a V# in its first 16 bytes or a T# in all 32.
12; slot 0 (+0x00): V#, structured buffer, stride 16, 256 records (written)
13; slot 1 (+0x20): V#, raw buffer, the arguments of the indirect dispatch (written)
14; slot 2 (+0x40): T#, 16x16 R32_UINT image (written)
15; slot 3 (+0x60): V#, raw buffer, 256 input words (read)
16; slot 4 (+0x80): V#, raw buffer, the second shader's output (not used here)
17; g = 64 * group + lane, 0..255: in = input[g]
18; record g = { in + seed, g * mul, in ^ (g << 8), rotr(in, 13) }
19; image(x = g & 15, y = g >> 4) = in * 3 + x * 0x10001 + y
20; g == 0 also writes the arguments { s2, 1, 1, 0xc0de0001 }
21s_load_dwordx4 s[8:11], s[4:5], 0x0
22s_load_dwordx4 s[12:15], s[4:5], 0x20
23s_load_dwordx8 s[16:23], s[4:5], 0x40
24s_load_dwordx4 s[24:27], s[4:5], 0x60
25s_lshl_b32 s7, s6, 6
26s_waitcnt lgkmcnt(0)
27v_add_nc_u32_e32 v1, s7, v0
28v_lshlrev_b32_e32 v2, 2, v1
29buffer_load_dword v3, v2, s[24:27], 0 offen
30s_waitcnt vmcnt(0)
31v_add_nc_u32_e32 v4, s0, v3
32v_mul_lo_u32 v5, v1, s1
33v_lshlrev_b32_e32 v6, 8, v1
34v_xor_b32_e32 v6, v3, v6
35v_alignbit_b32 v7, v3, v3, 13
36buffer_store_dwordx4 v[4:7], v1, s[8:11], 0 idxen
37v_and_b32_e32 v8, 15, v1
38v_lshrrev_b32_e32 v9, 4, v1
39v_mul_u32_u24_e32 v10, 0x10001, v8
40v_mul_lo_u32 v11, v3, 3
41v_add_nc_u32_e32 v10, v10, v11
42v_add_nc_u32_e32 v10, v10, v9
43image_store v10, v[8:9], s[16:23] dmask:0x1 dim:SQ_RSRC_IMG_2D unorm
44v_cmpx_eq_u32_e32 0, v1
45v_mov_b32_e32 v12, 0
46v_mov_b32_e32 v13, s2
47v_mov_b32_e32 v14, 1
48v_mov_b32_e32 v15, 1
49v_mov_b32_e32 v16, 0xc0de0001
50buffer_store_dwordx4 v[13:16], v12, s[12:15], 0 offen
51s_endpgm
diff --git a/runtime/test/shaders/cs_m4_indirect.asm b/runtime/test/shaders/cs_m4_indirect.asm
new file mode 100644
index 000000000..8a23596bf
--- /dev/null
+++ b/runtime/test/shaders/cs_m4_indirect.asm
@@ -0,0 +1,28 @@
1; group: 64,1,1
2; rsrc2: 0x808c
3; fssm-at: 0x150
4; fssm-data: 0x44444e49 0x3d344d5f
5; M4 compute shader 2: runs under ExecuteIndirect with the arguments cs_m4_fill wrote ({ groups, 1, 1 }), reads the
6; structured buffer and the image the first dispatch wrote, and writes a raw output buffer. Run:
7; d3d12_m4_compute_test. Same root signature, user data and table as cs_m4_fill (see there):
8; slot 0: structured buffer (read) slot 2: R32_UINT image (read, image_load) slot 4: raw output (written)
9; g = 64 * group + lane; t = image(g & 15, g >> 4); record g = { w0, w1, w2, w3 }
10; out[g] = { (w0 + t) ^ w3, (w2 ^ t) + w1 } at byte offset 8 * g
11s_load_dwordx4 s[8:11], s[4:5], 0x0
12s_load_dwordx8 s[16:23], s[4:5], 0x40
13s_load_dwordx4 s[12:15], s[4:5], 0x80
14s_lshl_b32 s7, s6, 6
15s_waitcnt lgkmcnt(0)
16v_add_nc_u32_e32 v1, s7, v0
17buffer_load_dwordx4 v[4:7], v1, s[8:11], 0 idxen
18v_and_b32_e32 v8, 15, v1
19v_lshrrev_b32_e32 v9, 4, v1
20image_load v10, v[8:9], s[16:23] dmask:0x1 dim:SQ_RSRC_IMG_2D unorm
21s_waitcnt vmcnt(0)
22v_add_nc_u32_e32 v11, v4, v10
23v_xor_b32_e32 v11, v11, v7
24v_xor_b32_e32 v12, v6, v10
25v_add_nc_u32_e32 v12, v12, v5
26v_lshlrev_b32_e32 v13, 3, v1
27buffer_store_dwordx2 v[11:12], v13, s[12:15], 0 offen
28s_endpgm
diff --git a/runtime/test/shaders/cs_tbuffer_store.asm b/runtime/test/shaders/cs_tbuffer_store.asm
new file mode 100644
index 000000000..a6e0e78e5
--- /dev/null
+++ b/runtime/test/shaders/cs_tbuffer_store.asm
@@ -0,0 +1,275 @@
1; tbuffer_store_format_* and its d16 forms. Every expected word was measured by running this body natively on a Radeon
2; 680M (gfx1035, RDNA2) through tools/hw_oracle's kernel wrapper, with s[0:3] set to the V# vk_compute_test passes;
3; wave32 and wave64 gave the same 52 words. One thread runs.
4; - The instruction's format replaces the V#'s, for the encoding, the element size and the bounds check alike. No
5; format modifier means GFX10's default, BUF_FMT_8_UNORM: one byte, its neighbours kept.
6; - A store writes its format's whole element: components the format has but the instruction doesn't give are 0
7; (xy into 16_16_16_16 leaves z = w = 0); components the format doesn't have are dropped (xyzw into 32_32 writes
8; x, y; into 32 only x).
9; - d16 data is two 16-bit values per VGPR, low half first.
10; - Bounds (OOB_SELECT 3): the instruction's element must end inside num_records. With NR 0x298, an xy store of a
11; 16-byte element at 0x290 writes nothing, though a V# that says 32_FLOAT has a 4-byte element; with NR 0x2a1, an
12; 8_UNORM byte at 0x2a0 is written, though the V#'s 16-byte element would not fit.
13; - A V# whose FORMAT is 0 (INVALID) disables the store, though the instruction brings its own format.
14; Store regions 0x200..0x2cf start as 0xa5a50000 | address; out[0..51] are the 13 regions read back, in source order.
15; Run: VKC_OUT_WORDS=192 VKC_DUMP=<file> vk_compute_test cs_tbuffer_store.spv 1 dump; check.py compares words 0..127 of
16; the dump with TBUFFER_STORE_WORDS and 76 untouched 0xeeeeeeee words.
17v_cmpx_eq_u32_e32 0, v0
18; the store regions 0x200..0x2cf hold 0xa5a50000 | their address
19v_mov_b32_e32 v1, 0xa5a50200
20v_mov_b32_e32 v2, 0xa5a50204
21v_mov_b32_e32 v3, 0xa5a50208
22v_mov_b32_e32 v4, 0xa5a5020c
23v_mov_b32_e32 v5, 0x200
24buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
25v_mov_b32_e32 v1, 0xa5a50210
26v_mov_b32_e32 v2, 0xa5a50214
27v_mov_b32_e32 v3, 0xa5a50218
28v_mov_b32_e32 v4, 0xa5a5021c
29v_mov_b32_e32 v5, 0x210
30buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
31v_mov_b32_e32 v1, 0xa5a50220
32v_mov_b32_e32 v2, 0xa5a50224
33v_mov_b32_e32 v3, 0xa5a50228
34v_mov_b32_e32 v4, 0xa5a5022c
35v_mov_b32_e32 v5, 0x220
36buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
37v_mov_b32_e32 v1, 0xa5a50230
38v_mov_b32_e32 v2, 0xa5a50234
39v_mov_b32_e32 v3, 0xa5a50238
40v_mov_b32_e32 v4, 0xa5a5023c
41v_mov_b32_e32 v5, 0x230
42buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
43v_mov_b32_e32 v1, 0xa5a50240
44v_mov_b32_e32 v2, 0xa5a50244
45v_mov_b32_e32 v3, 0xa5a50248
46v_mov_b32_e32 v4, 0xa5a5024c
47v_mov_b32_e32 v5, 0x240
48buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
49v_mov_b32_e32 v1, 0xa5a50250
50v_mov_b32_e32 v2, 0xa5a50254
51v_mov_b32_e32 v3, 0xa5a50258
52v_mov_b32_e32 v4, 0xa5a5025c
53v_mov_b32_e32 v5, 0x250
54buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
55v_mov_b32_e32 v1, 0xa5a50260
56v_mov_b32_e32 v2, 0xa5a50264
57v_mov_b32_e32 v3, 0xa5a50268
58v_mov_b32_e32 v4, 0xa5a5026c
59v_mov_b32_e32 v5, 0x260
60buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
61v_mov_b32_e32 v1, 0xa5a50270
62v_mov_b32_e32 v2, 0xa5a50274
63v_mov_b32_e32 v3, 0xa5a50278
64v_mov_b32_e32 v4, 0xa5a5027c
65v_mov_b32_e32 v5, 0x270
66buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
67v_mov_b32_e32 v1, 0xa5a50280
68v_mov_b32_e32 v2, 0xa5a50284
69v_mov_b32_e32 v3, 0xa5a50288
70v_mov_b32_e32 v4, 0xa5a5028c
71v_mov_b32_e32 v5, 0x280
72buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
73v_mov_b32_e32 v1, 0xa5a50290
74v_mov_b32_e32 v2, 0xa5a50294
75v_mov_b32_e32 v3, 0xa5a50298
76v_mov_b32_e32 v4, 0xa5a5029c
77v_mov_b32_e32 v5, 0x290
78buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
79v_mov_b32_e32 v1, 0xa5a502a0
80v_mov_b32_e32 v2, 0xa5a502a4
81v_mov_b32_e32 v3, 0xa5a502a8
82v_mov_b32_e32 v4, 0xa5a502ac
83v_mov_b32_e32 v5, 0x2a0
84buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
85v_mov_b32_e32 v1, 0xa5a502b0
86v_mov_b32_e32 v2, 0xa5a502b4
87v_mov_b32_e32 v3, 0xa5a502b8
88v_mov_b32_e32 v4, 0xa5a502bc
89v_mov_b32_e32 v5, 0x2b0
90buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
91v_mov_b32_e32 v1, 0xa5a502c0
92v_mov_b32_e32 v2, 0xa5a502c4
93v_mov_b32_e32 v3, 0xa5a502c8
94v_mov_b32_e32 v4, 0xa5a502cc
95v_mov_b32_e32 v5, 0x2c0
96buffer_store_dwordx4 v[1:4], v5, s[0:3], 0 offen
97s_waitcnt_vscnt null, 0x0
98s_mov_b32 s4, s0
99s_mov_b32 s5, s1
100; 0x200: tbuffer_store_format_xyzw, xyzw, 32_32_32_32_FLOAT over a V# that says 32_FLOAT: all four dwords
101v_mov_b32_e32 v20, 0x3f800000
102v_mov_b32_e32 v21, 0x40000000
103v_mov_b32_e32 v22, 0x40400000
104v_mov_b32_e32 v23, 0x40800000
105s_mov_b32 s6, 0xffffffff
106s_mov_b32 s7, 0x31016fac
107v_mov_b32_e32 v5, 0x200
108tbuffer_store_format_xyzw v[20:23], v5, s[4:7], 0 format:[BUF_FMT_32_32_32_32_FLOAT] offen
109; 0x210: tbuffer_store_format_xy, xy, 16_16_16_16_FLOAT over a V# that says 32_32_32_32_FLOAT: the 8-byte element, z = w = 0
110v_mov_b32_e32 v20, 0x3f800000
111v_mov_b32_e32 v21, 0x40000000
112s_mov_b32 s6, 0xffffffff
113s_mov_b32 s7, 0x3104dfac
114v_mov_b32_e32 v5, 0x210
115tbuffer_store_format_xy v[20:21], v5, s[4:7], 0 format:[BUF_FMT_16_16_16_16_FLOAT] offen
116; 0x220: tbuffer_store_format_xyz, xyz, 8_8_8_8_UINT over a V# that says 32_FLOAT
117v_mov_b32_e32 v20, 0x1
118v_mov_b32_e32 v21, 0x2
119v_mov_b32_e32 v22, 0x3
120s_mov_b32 s6, 0xffffffff
121s_mov_b32 s7, 0x31016fac
122v_mov_b32_e32 v5, 0x220
123tbuffer_store_format_xyz v[20:22], v5, s[4:7], 0 format:[BUF_FMT_8_8_8_8_UINT] offen
124; 0x230: tbuffer_store_format_x, x, no format modifier (GFX10 default 8_UNORM) at byte 1, over a V# that says 32_32_32_32_FLOAT
125v_mov_b32_e32 v20, 0x3f800000
126s_mov_b32 s6, 0xffffffff
127s_mov_b32 s7, 0x3104dfac
128v_mov_b32_e32 v5, 0x231
129tbuffer_store_format_x v20, v5, s[4:7], 0 offen
130; 0x240: tbuffer_store_format_x, x, 16_FLOAT at byte 2 (the high half)
131v_mov_b32_e32 v20, 0x40000000
132s_mov_b32 s6, 0xffffffff
133s_mov_b32 s7, 0x31016fac
134v_mov_b32_e32 v5, 0x242
135tbuffer_store_format_x v20, v5, s[4:7], 0 format:[BUF_FMT_16_FLOAT] offen
136; 0x250: tbuffer_store_format_xyzw, xyzw, 2_10_10_10_UNORM (1.0, 0.0, 0.25, 1.0)
137v_mov_b32_e32 v20, 0x3f800000
138v_mov_b32_e32 v21, 0x0
139v_mov_b32_e32 v22, 0x3e800000
140v_mov_b32_e32 v23, 0x3f800000
141s_mov_b32 s6, 0xffffffff
142s_mov_b32 s7, 0x31016fac
143v_mov_b32_e32 v5, 0x250
144tbuffer_store_format_xyzw v[20:23], v5, s[4:7], 0 format:[BUF_FMT_2_10_10_10_UNORM] offen
145; 0x260: tbuffer_store_format_xyzw, xyzw into 32_32_FLOAT: only x, y
146v_mov_b32_e32 v20, 0x3f800000
147v_mov_b32_e32 v21, 0x40000000
148v_mov_b32_e32 v22, 0x40400000
149v_mov_b32_e32 v23, 0x40800000
150s_mov_b32 s6, 0xffffffff
151s_mov_b32 s7, 0x3104dfac
152v_mov_b32_e32 v5, 0x260
153tbuffer_store_format_xyzw v[20:23], v5, s[4:7], 0 format:[BUF_FMT_32_32_FLOAT] offen
154; 0x270: tbuffer_store_format_d16_xy, d16_xy, 16_16_FLOAT (packed 1.0, 2.0)
155v_mov_b32_e32 v20, 0x40003c00
156s_mov_b32 s6, 0xffffffff
157s_mov_b32 s7, 0x3104dfac
158v_mov_b32_e32 v5, 0x270
159tbuffer_store_format_d16_xy v20, v5, s[4:7], 0 format:[BUF_FMT_16_16_FLOAT] offen
160; 0x280: tbuffer_store_format_d16_xyzw, d16_xyzw, 8_8_8_8_UNORM (packed 1.0, 0.5, 0.0, 1.0)
161v_mov_b32_e32 v20, 0x38003c00
162v_mov_b32_e32 v21, 0x3c000000
163s_mov_b32 s6, 0xffffffff
164s_mov_b32 s7, 0x31016fac
165v_mov_b32_e32 v5, 0x280
166tbuffer_store_format_d16_xyzw v[20:21], v5, s[4:7], 0 format:[BUF_FMT_8_8_8_8_UNORM] offen
167; 0x290: tbuffer_store_format_xy, xy, 32_32_32_32_FLOAT, NR 0x298 over a V# that says 32_FLOAT: x, y end at 0x298, the element at 0x2a0
168v_mov_b32_e32 v20, 0x3f800000
169v_mov_b32_e32 v21, 0x40000000
170s_mov_b32 s6, 0x298
171s_mov_b32 s7, 0x31016fac
172v_mov_b32_e32 v5, 0x290
173tbuffer_store_format_xy v[20:21], v5, s[4:7], 0 format:[BUF_FMT_32_32_32_32_FLOAT] offen
174; 0x2a0: tbuffer_store_format_x, x, 8_UNORM, NR 0x2a1 over a V# that says 32_32_32_32_FLOAT: the byte fits, the V#'s element would not
175v_mov_b32_e32 v20, 0x3f800000
176s_mov_b32 s6, 0x2a1
177s_mov_b32 s7, 0x3104dfac
178v_mov_b32_e32 v5, 0x2a0
179tbuffer_store_format_x v20, v5, s[4:7], 0 format:[BUF_FMT_8_UNORM] offen
180; 0x2b0: tbuffer_store_format_xyzw, xyzw into 32_FLOAT (one channel) over a V# that says 32_32_32_32_FLOAT: only x
181v_mov_b32_e32 v20, 0x3f800000
182v_mov_b32_e32 v21, 0x40000000
183v_mov_b32_e32 v22, 0x40400000
184v_mov_b32_e32 v23, 0x40800000
185s_mov_b32 s6, 0xffffffff
186s_mov_b32 s7, 0x3104dfac
187v_mov_b32_e32 v5, 0x2b0
188tbuffer_store_format_xyzw v[20:23], v5, s[4:7], 0 format:[BUF_FMT_32_FLOAT] offen
189; 0x2c0: tbuffer_store_format_xy, xy, 32_32_FLOAT over a V# whose FORMAT is 0 (INVALID): nothing
190v_mov_b32_e32 v20, 0x3f800000
191v_mov_b32_e32 v21, 0x40000000
192s_mov_b32 s6, 0xffffffff
193s_mov_b32 s7, 0x31000fac
194v_mov_b32_e32 v5, 0x2c0
195tbuffer_store_format_xy v[20:21], v5, s[4:7], 0 format:[BUF_FMT_32_32_FLOAT] offen
196s_waitcnt_vscnt null, 0x0
197; out[0..3]: the 16 bytes at 0x200
198v_mov_b32_e32 v5, 0x200
199buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
200s_waitcnt vmcnt(0)
201v_mov_b32_e32 v6, 0x0
202buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
203; out[4..7]: the 16 bytes at 0x210
204v_mov_b32_e32 v5, 0x210
205buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
206s_waitcnt vmcnt(0)
207v_mov_b32_e32 v6, 0x10
208buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
209; out[8..11]: the 16 bytes at 0x220
210v_mov_b32_e32 v5, 0x220
211buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
212s_waitcnt vmcnt(0)
213v_mov_b32_e32 v6, 0x20
214buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
215; out[12..15]: the 16 bytes at 0x230
216v_mov_b32_e32 v5, 0x230
217buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
218s_waitcnt vmcnt(0)
219v_mov_b32_e32 v6, 0x30
220buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
221; out[16..19]: the 16 bytes at 0x240
222v_mov_b32_e32 v5, 0x240
223buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
224s_waitcnt vmcnt(0)
225v_mov_b32_e32 v6, 0x40
226buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
227; out[20..23]: the 16 bytes at 0x250
228v_mov_b32_e32 v5, 0x250
229buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
230s_waitcnt vmcnt(0)
231v_mov_b32_e32 v6, 0x50
232buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
233; out[24..27]: the 16 bytes at 0x260
234v_mov_b32_e32 v5, 0x260
235buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
236s_waitcnt vmcnt(0)
237v_mov_b32_e32 v6, 0x60
238buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
239; out[28..31]: the 16 bytes at 0x270
240v_mov_b32_e32 v5, 0x270
241buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
242s_waitcnt vmcnt(0)
243v_mov_b32_e32 v6, 0x70
244buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
245; out[32..35]: the 16 bytes at 0x280
246v_mov_b32_e32 v5, 0x280
247buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
248s_waitcnt vmcnt(0)
249v_mov_b32_e32 v6, 0x80
250buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
251; out[36..39]: the 16 bytes at 0x290
252v_mov_b32_e32 v5, 0x290
253buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
254s_waitcnt vmcnt(0)
255v_mov_b32_e32 v6, 0x90
256buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
257; out[40..43]: the 16 bytes at 0x2a0
258v_mov_b32_e32 v5, 0x2a0
259buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
260s_waitcnt vmcnt(0)
261v_mov_b32_e32 v6, 0xa0
262buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
263; out[44..47]: the 16 bytes at 0x2b0
264v_mov_b32_e32 v5, 0x2b0
265buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
266s_waitcnt vmcnt(0)
267v_mov_b32_e32 v6, 0xb0
268buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
269; out[48..51]: the 16 bytes at 0x2c0
270v_mov_b32_e32 v5, 0x2c0
271buffer_load_dwordx4 v[10:13], v5, s[0:3], 0 offen
272s_waitcnt vmcnt(0)
273v_mov_b32_e32 v6, 0xc0
274buffer_store_dwordx4 v[10:13], v6, s[0:3], 0 offen
275s_endpgm
diff --git a/runtime/test/shaders/ps_mandelbrot.asm b/runtime/test/shaders/ps_mandelbrot.asm
new file mode 100644
index 000000000..98c70f6cc
--- /dev/null
+++ b/runtime/test/shaders/ps_mandelbrot.asm
@@ -0,0 +1,46 @@
1; Mandelbrot set: a divergent backward loop with EXEC masking. Each lane iterates z = z^2 + c until |z|^2 > 4 or
2; 64 iterations, with c from attr0.xy (u, v 0..1 over the image) mapped to [-2.25, 0.75] x [-1.5, 1.5]. A lane that
3; escapes drops out of EXEC (s_and_b32 exec_lo, exec_lo, vcc_lo); s_cbranch_execz leaves the loop once every lane has
4; escaped, else the uniform counter s10 ends it after 64 rounds. EXEC is restored from s20 before the export.
5; Only v_mul/v_add/v_sub (no FMA), so a float32 model on the CPU gives the same counts.
6; Branch offsets are dwords from the next instruction: execz +9 forward to the restore, scc1 -15 back to the loop top.
7; Run: vk_harness vs_ids.spv ps_mandelbrot.spv out.raw
8; -> mrt0 = (sqrt(t), t*t, 4t(1-t), iteration count as raw bits) with t = count / 64
9v_interp_p1_f32_e32 v2, v0, attr0.x
10v_interp_p2_f32_e32 v2, v1, attr0.x
11v_interp_p1_f32_e32 v3, v0, attr0.y
12v_interp_p2_f32_e32 v3, v1, attr0.y
13v_mul_f32_e32 v4, 0x40400000, v2
14v_add_f32_e32 v4, 0xc0100000, v4
15v_mul_f32_e32 v5, 0x40400000, v3
16v_add_f32_e32 v5, 0xbfc00000, v5
17v_mov_b32_e32 v6, 0
18v_mov_b32_e32 v7, 0
19v_mov_b32_e32 v8, 0
20s_mov_b32 s10, 0
21s_mov_b32 s20, exec_lo
22v_mul_f32_e32 v9, v6, v6
23v_mul_f32_e32 v10, v7, v7
24v_add_f32_e32 v11, v9, v10
25v_cmp_ge_f32_e32 vcc_lo, 4.0, v11
26s_and_b32 exec_lo, exec_lo, vcc_lo
27s_cbranch_execz 9
28v_sub_f32_e32 v12, v9, v10
29v_mul_f32_e32 v13, v6, v7
30v_add_f32_e32 v13, v13, v13
31v_add_f32_e32 v6, v12, v4
32v_add_f32_e32 v7, v13, v5
33v_add_nc_u32_e32 v8, 1, v8
34s_add_u32 s10, s10, 1
35s_cmp_lt_u32 s10, 64
36s_cbranch_scc1 -15
37s_mov_b32 exec_lo, s20
38v_cvt_f32_u32_e32 v14, v8
39v_mul_f32_e32 v14, 0x3c800000, v14
40v_sqrt_f32_e32 v15, v14
41v_mul_f32_e32 v16, v14, v14
42v_sub_f32_e32 v17, 1.0, v14
43v_mul_f32_e32 v17, v14, v17
44v_mul_f32_e32 v17, 4.0, v17
45exp mrt0 v15, v16, v17, v8 done vm
46s_endpgm
diff --git a/runtime/test/shaders/vs_w64_a_skip.asm b/runtime/test/shaders/vs_w64_a_skip.asm
new file mode 100644
index 000000000..dac0d885e
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_a_skip.asm
@@ -0,0 +1,45 @@
1; TEST-251 (SHADER-10 tier A, vertex stage): the skip regions and the loop of ps_w64_a_skip in a wave64 vertex shader,
2; without its whole-quad mask (vertex quads are lanes, not pixels). Vertex v (v0 = vertex index) has x = v & 63 and
3; y = v >> 6, so every word is a function of v and not of the lane the vertex landed on. It stores (r0, r1, r2, r3)
4; to its record at heap 0x1000 + 16 * v through the V# in s[0:3].
5; (1) a skip region behind s_cbranch_execz: only lanes with x % 4 == 1 run it. r0 = x % 4 == 1 ? 7 * y + x : 1000 + x.
6; (2) r1 = x % 4 == 1 (the VCC of (1), per lane).
7; (3) s_cbranch_vccz over a region that narrows EXEC to that VCC. r2 = 2000 + y + (y % 4 == 2 ? 9 : 0).
8; (4) a loop closed by s_cbranch_execnz, no scalar state carried. r3 = x % 4 + 1.
9; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
10; vs_w64_a_skip.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32: equal records, and equal
11; to the expected words.
12; mattr: +wavefrontsize64,-wavefrontsize32
13v_and_b32_e32 v2, 63, v0
14v_lshrrev_b32_e32 v3, 6, v0
15s_mov_b64 s[10:11], exec
16v_add_nc_u32_e32 v6, 0x3e8, v2
17v_and_b32_e32 v4, 3, v2
18v_cmp_eq_u32_e32 vcc, 1, v4
19v_cndmask_b32_e64 v7, 0, 1, vcc
20s_and_saveexec_b64 s[12:13], vcc
21s_cbranch_execz 2
22v_mul_u32_u24_e32 v6, 7, v3
23v_add_nc_u32_e32 v6, v6, v2
24s_or_b64 exec, exec, s[12:13]
25v_and_b32_e32 v5, 3, v3
26v_add_nc_u32_e32 v8, 0x7d0, v3
27v_cmp_eq_u32_e32 vcc, 2, v5
28s_cbranch_vccz 3
29s_and_saveexec_b64 s[16:17], vcc
30v_add_nc_u32_e32 v8, 9, v8
31s_or_b64 exec, exec, s[16:17]
32v_add_nc_u32_e32 v10, 1, v4
33v_mov_b32_e32 v9, 0
34v_add_nc_u32_e32 v9, 1, v9
35v_cmp_lt_u32_e32 vcc, v9, v10
36s_and_b64 exec, exec, vcc
37s_cbranch_execnz -4
38s_mov_b64 exec, s[10:11]
39v_lshlrev_b32_e32 v12, 4, v0
40v_add_nc_u32_e32 v12, 0x1000, v12
41buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
42v_mov_b32_e32 v5, 0
43exp pos0 v5, v5, v5, v5 done
44exp param0 v5, v5, v5, v5
45s_endpgm
diff --git a/runtime/test/shaders/vs_w64_b_ballot_atomic.asm b/runtime/test/shaders/vs_w64_b_ballot_atomic.asm
new file mode 100644
index 000000000..f718c25f8
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_b_ballot_atomic.asm
@@ -0,0 +1,42 @@
1; TEST-251 (SHADER-10 tier B, vertex stage): the wave-aggregated atomic of ps_w64_b_ballot_atomic in a wave64 vertex
2; shader. Vertex v (v0 = vertex index) has x = v & 63; vertices with x % 4 == 1 are the "wanted" lanes. EXEC = the
3; wanted lanes; n = s_bcnt1_i32_b64 exec; rank = v_mbcnt_lo/hi of EXEC; the lane of rank 0 does buffer_atomic_add of n
4; to the counter at heap offset 0 and gets the old value back; v_readfirstlane broadcasts it as the base; every wanted
5; vertex stores v + 1 at heap offset 0x100 + 4 * (base + rank). Whatever the wave size and the packing, every wanted
6; vertex gets a slot of its own and the counter ends at the number of wanted vertices (240 of 960); which vertex gets
7; which slot depends on the packing, so the slots are compared as a set. Its record at heap 0x1000 + 16 * v holds
8; (x % 4 == 1, 0, 0, 0).
9; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
10; vs_w64_b_ballot_atomic.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32.
11; mattr: +wavefrontsize64,-wavefrontsize32
12v_and_b32_e32 v2, 63, v0
13v_and_b32_e32 v4, 3, v2
14s_mov_b64 s[10:11], exec
15v_cmp_eq_u32_e32 vcc, 1, v4
16v_cndmask_b32_e64 v6, 0, 1, vcc
17s_and_saveexec_b64 s[12:13], vcc
18s_bcnt1_i32_b64 s6, exec
19v_mbcnt_lo_u32_b32 v10, exec_lo, 0
20v_mbcnt_hi_u32_b32 v10, exec_hi, v10
21v_cmp_eq_u32_e32 vcc, 0, v10
22s_and_saveexec_b64 s[14:15], vcc
23v_mov_b32_e32 v11, s6
24v_mov_b32_e32 v13, 0
25buffer_atomic_add v11, v13, s[0:3], 0 offen glc
26s_or_b64 exec, exec, s[14:15]
27v_readfirstlane_b32 s7, v11
28v_add_nc_u32_e32 v13, s7, v10
29v_lshlrev_b32_e32 v13, 2, v13
30v_add_nc_u32_e32 v14, 1, v0
31buffer_store_dword v14, v13, s[0:3], 0 offen offset:256
32s_mov_b64 exec, s[10:11]
33v_mov_b32_e32 v7, 0
34v_mov_b32_e32 v8, 0
35v_mov_b32_e32 v9, 0
36v_lshlrev_b32_e32 v12, 4, v0
37v_add_nc_u32_e32 v12, 0x1000, v12
38buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
39v_mov_b32_e32 v5, 0
40exp pos0 v5, v5, v5, v5 done
41exp param0 v5, v5, v5, v5
42s_endpgm
diff --git a/runtime/test/shaders/vs_w64_b_readlane_uniform.asm b/runtime/test/shaders/vs_w64_b_readlane_uniform.asm
new file mode 100644
index 000000000..0fb85008d
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_b_readlane_uniform.asm
@@ -0,0 +1,33 @@
1; TEST-251 (SHADER-10 tier B, vertex stage): v_readfirstlane and v_readlane (lanes 40 and 63) of wave-uniform VGPRs
2; in a wave64 vertex shader, the vertex twin of ps_w64_b_readfirstlane and ps_w64_b_readlane_uniform. s4 is a user
3; SGPR (VKH_SGPRS sets it to 123), copied to a VGPR and read back; so is the constant 77. Every lane holds the same
4; value, so the scalar does not depend on which lane is read, on the wave size or on how many vertices a wave got.
5; Vertex v (v0 = vertex index) has x = v & 63. r0 = x + 123 (readfirstlane), r1 = 123 + 77 (readlane 40 and 63),
6; r2 = x + 123 (readlane 40), r3 = 77 * 2 + 123 (readfirstlane), stored to its record at heap 0x1000 + 16 * v
7; through the V# in s[0:3].
8; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000,123 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
9; vs_w64_b_readlane_uniform.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32: equal, and
10; equal to the expected words.
11; mattr: +wavefrontsize64,-wavefrontsize32
12v_and_b32_e32 v2, 63, v0
13s_mov_b64 s[10:11], exec
14v_mov_b32_e32 v5, s4
15v_mov_b32_e32 v4, 77
16v_readfirstlane_b32 s20, v5
17v_add_nc_u32_e32 v6, s20, v2
18v_readlane_b32 s21, v5, 40
19v_readlane_b32 s22, v4, 63
20s_add_u32 s23, s21, s22
21v_mov_b32_e32 v7, s23
22v_add_nc_u32_e32 v8, s21, v2
23v_readfirstlane_b32 s24, v4
24s_lshl_b32 s24, s24, 1
25s_add_u32 s24, s24, s20
26v_mov_b32_e32 v9, s24
27v_lshlrev_b32_e32 v12, 4, v0
28v_add_nc_u32_e32 v12, 0x1000, v12
29buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
30v_mov_b32_e32 v5, 0
31exp pos0 v5, v5, v5, v5 done
32exp param0 v5, v5, v5, v5
33s_endpgm
diff --git a/runtime/test/shaders/vs_w64_b_waterfall.asm b/runtime/test/shaders/vs_w64_b_waterfall.asm
new file mode 100644
index 000000000..814259842
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_b_waterfall.asm
@@ -0,0 +1,35 @@
1; TEST-251 (SHADER-10 tier B, vertex stage): the waterfall loop of ps_w64_b_waterfall in a wave64 vertex shader.
2; Vertex v (v0 = vertex index) has x = v & 63, y = v >> 6 and the key a = x % 4 + 4 * (y % 4). The loop takes
3; v_readfirstlane of the key, runs the lanes holding it (v_cmp_eq, s_and_saveexec), retires them (s_xor exec) and
4; repeats while lanes are left (s_cbranch_execnz); the scalar is used only inside the body. It runs once per distinct
5; key of the wave or of the 32-lane subgroup, and every vertex ends with r0 = 17 * a + x, r1 = a, r2 = r3 = 0, stored
6; to its record at heap 0x1000 + 16 * v through the V# in s[0:3].
7; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
8; vs_w64_b_waterfall.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32: equal, and equal to
9; the expected words.
10; mattr: +wavefrontsize64,-wavefrontsize32
11v_and_b32_e32 v2, 63, v0
12v_lshrrev_b32_e32 v3, 6, v0
13v_and_b32_e32 v4, 3, v2
14v_and_b32_e32 v5, 3, v3
15v_lshl_add_u32 v4, v5, 2, v4
16v_mov_b32_e32 v6, 0
17s_mov_b64 s[10:11], exec
18v_readfirstlane_b32 s20, v4
19v_cmp_eq_u32_e32 vcc, s20, v4
20s_and_saveexec_b64 s[12:13], vcc
21s_mul_i32 s21, s20, 17
22v_add_nc_u32_e32 v6, s21, v2
23s_xor_b64 exec, exec, s[12:13]
24s_cbranch_execnz -7
25s_mov_b64 exec, s[10:11]
26v_mov_b32_e32 v7, v4
27v_mov_b32_e32 v8, 0
28v_mov_b32_e32 v9, 0
29v_lshlrev_b32_e32 v12, 4, v0
30v_add_nc_u32_e32 v12, 0x1000, v12
31buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
32v_mov_b32_e32 v5, 0
33exp pos0 v5, v5, v5, v5 done
34exp param0 v5, v5, v5, v5
35s_endpgm
diff --git a/runtime/test/shaders/vs_w64_c_bcnt_export.asm b/runtime/test/shaders/vs_w64_c_bcnt_export.asm
new file mode 100644
index 000000000..84dd9bf53
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_c_bcnt_export.asm
@@ -0,0 +1,23 @@
1; TEST-251 (SHADER-10 tier C, vertex stage): a lane count used as data. Vertex v (v0 = vertex index) has x = v & 63;
2; s_bcnt1_i32_b64 counts the lanes of its wave with x % 4 == 1, which depends on the wave size and on how many
3; vertices the driver put in the wave. r0 = that count (partition dependent), r1 = x % 4 == 1, r2 = r3 = 0, stored to
4; its record at heap 0x1000 + 16 * v through the V# in s[0:3].
5; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
6; vs_w64_c_bcnt_export.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32: r1 equal, r0
7; differs.
8; mattr: +wavefrontsize64,-wavefrontsize32
9v_and_b32_e32 v2, 63, v0
10v_and_b32_e32 v4, 3, v2
11v_cmp_eq_u32_e32 vcc, 1, v4
12s_bcnt1_i32_b64 s6, vcc
13v_mov_b32_e32 v6, s6
14v_cndmask_b32_e64 v7, 0, 1, vcc
15v_mov_b32_e32 v8, 0
16v_mov_b32_e32 v9, 0
17v_lshlrev_b32_e32 v12, 4, v0
18v_add_nc_u32_e32 v12, 0x1000, v12
19buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
20v_mov_b32_e32 v5, 0
21exp pos0 v5, v5, v5, v5 done
22exp param0 v5, v5, v5, v5
23s_endpgm
diff --git a/runtime/test/shaders/vs_w64_c_lane_id.asm b/runtime/test/shaders/vs_w64_c_lane_id.asm
new file mode 100644
index 000000000..c69850333
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_c_lane_id.asm
@@ -0,0 +1,21 @@
1; TEST-251 (SHADER-10 tier C, vertex stage): the raw lane number (v_mbcnt_lo/hi of -1) used as data. Each vertex v
2; (v0 = vertex index) stores (lane id, lane id & 31, v, 0) to its record at heap 0x1000 + 16 * v through the V# in
3; s[0:3]. In a wave64 VS some vertices get lanes 32..63; in a wave32 VS none do, so r0 and r1 depend on how the driver
4; packed the vertices into waves and r2 does not. w64_graphics.py also uses it as its probe: the largest r0 shows the
5; wave size the driver picked (63 by default on RADV GFX12, 31 with RADV_PERFTEST=gewave32).
6; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
7; vs_w64_c_lane_id.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32 (the triangles have
8; zero area, so nothing is drawn).
9; mattr: +wavefrontsize64,-wavefrontsize32
10v_mbcnt_lo_u32_b32 v6, -1, 0
11v_mbcnt_hi_u32_b32 v6, -1, v6
12v_and_b32_e32 v7, 31, v6
13v_mov_b32_e32 v8, v0
14v_mov_b32_e32 v9, 0
15v_lshlrev_b32_e32 v12, 4, v0
16v_add_nc_u32_e32 v12, 0x1000, v12
17buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
18v_mov_b32_e32 v5, 0
19exp pos0 v5, v5, v5, v5 done
20exp param0 v5, v5, v5, v5
21s_endpgm
diff --git a/runtime/test/shaders/vs_w64_c_readlane.asm b/runtime/test/shaders/vs_w64_c_readlane.asm
new file mode 100644
index 000000000..d472b1ee5
--- /dev/null
+++ b/runtime/test/shaders/vs_w64_c_readlane.asm
@@ -0,0 +1,23 @@
1; TEST-251 (SHADER-10 tier C, vertex stage): v_readlane of a varying value (the vertex index) at lanes 40 and 7. In a
2; wave64 VS every lane gets the vertex in hardware lane 40 (or 7) of its wave; in a wave32 VS lane 40 wraps or is
3; undefined and lane 7 is the vertex of another wave. Vertex v (v0 = vertex index): r0 = readlane 40, r1 = v,
4; r2 = readlane 7 (both partition dependent), r3 = 0, stored to its record at heap 0x1000 + 16 * v through the V# in
5; s[0:3].
6; Run: VKH_VERTICES=960 VKH_SGPRS=0,0,65536,0x30000000 VKH_HEAP=0=0 VKH_HEAP_DUMP=heap.raw vk_harness
7; vs_w64_c_readlane.spv <any fragment shader> out.raw, with and without RADV_PERFTEST=gewave32: r1 equal, r2 differs.
8; mattr: +wavefrontsize64,-wavefrontsize32
9s_mov_b64 s[10:11], exec
10v_mov_b32_e32 v4, v0
11v_readlane_b32 s6, v4, 40
12v_readlane_b32 s7, v4, 7
13v_mov_b32_e32 v6, s6
14v_mov_b32_e32 v7, v4
15v_mov_b32_e32 v8, s7
16v_mov_b32_e32 v9, 0
17v_lshlrev_b32_e32 v12, 4, v0
18v_add_nc_u32_e32 v12, 0x1000, v12
19buffer_store_dwordx4 v[6:9], v12, s[0:3], 0 offen
20v_mov_b32_e32 v5, 0
21exp pos0 v5, v5, v5, v5 done
22exp param0 v5, v5, v5, v5
23s_endpgm
diff --git a/runtime/test/shaders/w64_graphics.py b/runtime/test/shaders/w64_graphics.py
index 91424af99..6e281d4b4 100644
--- a/runtime/test/shaders/w64_graphics.py
+++ b/runtime/test/shaders/w64_graphics.py
@@ -1,5 +1,5 @@
1"""SHADER-10 GPU checks: wave64 pixel shaders on 32-lane subgroups (docs/design.md, "Wave64 graphics: partition 1"""SHADER-10 GPU checks: wave64 pixel and vertex shaders on 32-lane subgroups (docs/design.md, "Wave64 graphics:
2invariance"). 2partition invariance").
3 3
4 python3 -I runtime/test/shaders/w64_graphics.py <build dir with spirv/> [tools dir] [name ...] 4 python3 -I runtime/test/shaders/w64_graphics.py <build dir with spirv/> [tools dir] [name ...]
5 5
@@ -16,6 +16,13 @@ A device that can require only one size (NVIDIA: 32 only) cannot run the compari
16checked against the derived words (tiers A, B), the tier C check is skipped, and two environment variables let a 16checked against the derived words (tiers A, B), the tier C check is skipped, and two environment variables let a
17second device stand in for the missing size: W64G_SAVE_REF=<dir> stores each 64-lane run of a device that can require 17second device stand in for the missing size: W64G_SAVE_REF=<dir> stores each 64-lane run of a device that can require
18it, and W64G_REF=<dir> compares every run of the other device with those files (equal for A and B, different for C). 18it, and W64G_REF=<dir> compares every run of the other device with those files (equal for A and B, different for C).
19
20The vs_w64_* fixtures (TEST-251) are vertex shaders: Vulkan cannot require a vertex subgroup size, so the two sizes
21come from RADV, which runs the VS stage as wave64 by default and as wave32 with RADV_PERFTEST=gewave32 (GFX10+).
22Each draws 960 vertices with zero area (VKH_VERTICES) and stores four words per vertex to the heap; vs_w64_c_lane_id
23doubles as the probe that the wave size really changed, and without RADV only the default-size checks run. RADV packs
2462 or 64 vertices into a wave64 and 30 or 32 into a wave32, so the 32-lane run is a repacking, not the two halves of
25the 64-lane waves: a stricter test of tiers A and B, which key every word on the vertex index.
19""" 26"""
20import os 27import os
21import struct 28import struct
@@ -106,6 +113,25 @@ def _c_execz_sgpr(i):
106 return (7 if _on(i) else None, _on(i), 0, 0) # r0 = s5: 7 only where the active side ran 113 return (7 if _on(i) else None, _on(i), 0, 0) # r0 = s5: 7 only where the active side ran
107 114
108 115
116# vs_w64_* fixtures: i is the vertex index, x = i % 64 and y = i // 64 as for a pixel.
117def _vs_a_skip(i):
118 x, y = _x(i), _y(i)
119 return (7 * y + x if x % 4 == 1 else 1000 + x, int(x % 4 == 1), 2000 + y + (9 if y % 4 == 2 else 0), x % 4 + 1)
120
121
122def _vs_b_readlane_uniform(i):
123 return (_x(i) + 123, 200, _x(i) + 123, 277)
124
125
126def _vs_c_lane_id(i):
127 return (None, None, i, 0) # r0, r1 = the lane the vertex got
128
129
130VS_ENV = {"VKH_SGPRS": "0,0,65536,0x30000000", "VKH_HEAP": "0=0"}
131VS_VERTICES = 960 # 15 rows of 64 vertices: several waves at either size, and partial ones
132VS_RECORDS = 0x1000 // 4 # heap word of vertex 0's record (4 words per vertex); below it, the atomic's counter and slots
133
134
109# name -> (tier, expected words per pixel (None = not fixed), environment of the draw) 135# name -> (tier, expected words per pixel (None = not fixed), environment of the draw)
110FIXTURES = { 136FIXTURES = {
111 "ps_w64_a_skip": ("A", _a_skip, {}), 137 "ps_w64_a_skip": ("A", _a_skip, {}),
@@ -122,13 +148,70 @@ FIXTURES = {
122 "ps_w64_c_vote_else": ("C", _c_vote_else, {}), 148 "ps_w64_c_vote_else": ("C", _c_vote_else, {}),
123 "ps_w64_c_scc_vote": ("C", _c_scc_vote, {}), 149 "ps_w64_c_scc_vote": ("C", _c_scc_vote, {}),
124 "ps_w64_c_execz_sgpr": ("C", _c_execz_sgpr, {}), 150 "ps_w64_c_execz_sgpr": ("C", _c_execz_sgpr, {}),
151 "vs_w64_a_skip": ("A", _vs_a_skip, VS_ENV),
152 "vs_w64_b_waterfall": ("B", _b_waterfall, VS_ENV),
153 "vs_w64_b_readlane_uniform": ("B", _vs_b_readlane_uniform, dict(VS_ENV, VKH_SGPRS=VS_ENV["VKH_SGPRS"] + ",123")),
154 "vs_w64_b_ballot_atomic": ("B", _b_ballot, VS_ENV),
155 "vs_w64_c_bcnt_export": ("C", _c_bcnt, VS_ENV),
156 "vs_w64_c_readlane": ("C", _c_readlane, VS_ENV),
157 "vs_w64_c_lane_id": ("C", _vs_c_lane_id, VS_ENV),
125} 158}
126 159
160VS_PROBE = "vs_w64_c_lane_id"
161_vs_applied = {}
162
163
164def _radv_perftest(size):
165 """RADV_PERFTEST for a vertex draw at `size`. Vulkan cannot require a vertex subgroup size (requiredSubgroupSizeStages
166 has no VERTEX on RADV or on the AMD driver), but RADV runs the VS/GS (NGG) stage as wave32 with gewave32 and as
167 wave64 without it on GFX10+. Other drivers ignore the variable; the probe then finds no change."""
168 flags = [f for f in os.environ.get("RADV_PERFTEST", "").split(",") if f and f != "gewave32"]
169 return ",".join(flags + ["gewave32"] * (size == 32))
170
171
172def _vs_wave_size(tools, spirv, size, tmp):
173 """Whether a vertex draw at `size` really ran at that wave size: the largest lane id of VS_PROBE is 32..63 in a
174 wave64 VS and below 32 in a wave32 one. Size 32 also needs size 64 to work, so that the two draws differ."""
175 if size not in _vs_applied:
176 def top(s):
177 words = _draw_vs(tools, spirv, VS_PROBE, s, tmp)[0]
178 return None if words is None else max(w[0] for w in words)
179 lane64, lane32 = top(64), top(32)
180 _vs_applied[64] = lane64 is not None and 32 <= lane64 < 64
181 _vs_applied[32] = _vs_applied[64] and lane32 is not None and lane32 < 32
182 return _vs_applied[size]
183
184
185def _draw_vs(tools, spirv, name, size, tmp):
186 """(records, heap) of one vertex draw at `size` (None: as the environment says), or (None, message)."""
187 env = dict(os.environ, **FIXTURES[name][2])
188 if size:
189 env["RADV_PERFTEST"] = _radv_perftest(size)
190 raw, heap = Path(tmp) / f"{name}.{size}.raw", Path(tmp) / f"{name}.{size}.heap"
191 env.update(VKH_VERTICES=str(VS_VERTICES), VKH_HEAP_DUMP=str(heap))
192 env.pop("VKH_SUBGROUP_SIZE", None)
193 # The triangles have zero area, so no pixel is drawn and any fragment shader does.
194 cmd = [os.path.join(tools, "vk_harness" + EXE), os.path.join(spirv, name + ".spv"),
195 os.path.join(spirv, "ps_w64_a_skip.spv"), str(raw)]
196 r = subprocess.run(cmd, capture_output=True, text=True, env=env, timeout=120)
197 out = r.stdout + r.stderr
198 if r.returncode == UNSUPPORTED:
199 return None, "unsupported: " + out.strip().splitlines()[-1]
200 if r.returncode or not heap.is_file():
201 return None, f"exit {r.returncode}: {' | '.join(out.strip().splitlines()[-3:])}"
202 words = list(struct.unpack("<%dI" % (65536 // 4), heap.read_bytes()))
203 return [tuple(words[VS_RECORDS + 4 * v:VS_RECORDS + 4 * v + 4]) for v in range(VS_VERTICES)], words
204
127 205
128def draw(tools, spirv, name, size, tmp): 206def draw(tools, spirv, name, size, tmp):
129 """(words per pixel, heap words or None, applied) of one draw. `applied`: the required size took effect (size 207 """(words per pixel, heap words or None, applied) of one draw. `applied`: the required size took effect (size
130 None: no size asked, applied is None). The words are None when the draw failed; then `heap` is the message.""" 208 None: no size asked, applied is None). The words are None when the draw failed; then `heap` is the message."""
131 tier, expect, extra = FIXTURES[name] 209 tier, expect, extra = FIXTURES[name]
210 if name.startswith("vs_"):
211 words, heap = _draw_vs(tools, spirv, name, size, tmp)
212 if words is None:
213 return None, heap, None
214 return words, heap, _vs_wave_size(tools, spirv, size, tmp) if size else None
132 env = dict(os.environ, **extra) 215 env = dict(os.environ, **extra)
133 env.pop("VKH_SUBGROUP_SIZE", None) 216 env.pop("VKH_SUBGROUP_SIZE", None)
134 if size: 217 if size:
@@ -168,15 +251,16 @@ def expected_problem(name, words, heap):
168 if wrong: 251 if wrong:
169 i, w, want = wrong[0] 252 i, w, want = wrong[0]
170 return f"{len(wrong)} of {len(words)} pixels differ from the derived words, first ({_x(i)},{_y(i)}): got {w}, want {want}" 253 return f"{len(wrong)} of {len(words)} pixels differ from the derived words, first ({_x(i)},{_y(i)}): got {w}, want {want}"
171 if name == "ps_w64_b_ballot_atomic": 254 if name.endswith("_b_ballot_atomic"):
172 want = sorted(_y(i) * W + _x(i) + 1 for i in range(W * H) if _x(i) % 4 == 1) 255 want = sorted(i + 1 for i in range(len(words)) if _x(i) % 4 == 1)
173 n = len(want) 256 n = len(want)
174 if heap[0] != n: 257 if heap[0] != n:
175 return f"counter is {heap[0]}, want {n}" 258 return f"counter is {heap[0]}, want {n}"
176 slots = heap[64:64 + n] 259 slots = heap[64:64 + n]
177 if sorted(slots) != want: 260 if sorted(slots) != want:
178 return f"slot words are not the {n} wanted pixel numbers once each ({len(set(slots))} distinct)" 261 return f"slot words are not the {n} wanted pixel numbers once each ({len(set(slots))} distinct)"
179 if any(heap[64 + n:]) or any(heap[1:64]): 262 end = VS_RECORDS if name.startswith("vs_") else len(heap) # the vertex records follow the slots
263 if any(heap[64 + n:end]) or any(heap[1:64]):
180 return "words outside the counter and the slots were written" 264 return "words outside the counter and the slots were written"
181 return "" 265 return ""
182 266
@@ -184,7 +268,7 @@ def expected_problem(name, words, heap):
184def comparable(name, words, heap): 268def comparable(name, words, heap):
185 """What two draws of the same fixture must share when the shader is partition invariant.""" 269 """What two draws of the same fixture must share when the shader is partition invariant."""
186 stable = [tuple(0 if g is None else v for g, v in zip(FIXTURES[name][1](i), w)) for i, w in enumerate(words)] 270 stable = [tuple(0 if g is None else v for g, v in zip(FIXTURES[name][1](i), w)) for i, w in enumerate(words)]
187 if name == "ps_w64_b_ballot_atomic": 271 if name.endswith("_b_ballot_atomic"):
188 return stable, sorted(heap[64:64 + heap[0]]), heap[0] 272 return stable, sorted(heap[64:64 + heap[0]]), heap[0]
189 return stable, None, None 273 return stable, None, None
190 274
@@ -240,7 +324,7 @@ def check(tools, spirv, name):
240 if not partition_dependent(name, ref_words, words): 324 if not partition_dependent(name, ref_words, words):
241 return "tier C but the run equals the 64-lane reference: the detector is wrong" 325 return "tier C but the run equals the 64-lane reference: the detector is wrong"
242 compared = True 326 compared = True
243 elif name != "ps_w64_b_ballot_atomic" and comparable(name, ref_words, None) != comparable(name, words, None): 327 elif not name.endswith("_b_ballot_atomic") and comparable(name, ref_words, None) != comparable(name, words, None):
244 return "the run differs from the 64-lane reference" 328 return "the run differs from the 64-lane reference"
245 if tier == "C" and not compared: 329 if tier == "C" and not compared:
246 return Skip("SKIP (tier C needs a device that can require both 64 and 32, or W64G_REF)") 330 return Skip("SKIP (tier C needs a device that can require both 64 and 32, or W64G_REF)")
diff --git a/runtime/test/typeless_rtv_test.cpp b/runtime/test/typeless_rtv_test.cpp
index be935c123..87fa46acb 100644
--- a/runtime/test/typeless_rtv_test.cpp
+++ b/runtime/test/typeless_rtv_test.cpp
@@ -262,9 +262,27 @@ int main() {
262 EXPECT(rejects(wrong, {1, 0, 1, 2, ColorViewFormat::rgba8_srgb}, ReplayResult::invalid_subresource)); 262 EXPECT(rejects(wrong, {1, 0, 1, 2, ColorViewFormat::rgba8_srgb}, ReplayResult::invalid_subresource));
263 wrong = binding; wrong.volume = true; 263 wrong = binding; wrong.volume = true;
264 EXPECT(rejects(wrong, {1, 0, 0, 1, ColorViewFormat::rgba8_srgb})); 264 EXPECT(rejects(wrong, {1, 0, 0, 1, ColorViewFormat::rgba8_srgb}));
265 wrong = binding; wrong.samples = 4; 265 {
266 EXPECT(rejects(wrong, {1, 0, 0, 1, ColorViewFormat::rgba8_uint})); 266 auto msaa = binding; msaa.samples = 4;
267 checks += 8; 267 for (const auto [format, expected] : formats) {
268 CommandList ms_list;
269 EXPECT(ms_list.clear_render_target({1, 0, 0, 1, format}, color) && ms_list.close());
270 EXPECT(run(ms_list, msaa, vk) == ReplayResult::success);
271 const bool attachment = format != ColorViewFormat::rgba8_unorm;
272 EXPECT(image_clears == (attachment ? 0u : 1u) && attachment_clears == (attachment ? 1u : 0u));
273 EXPECT(!attachment || (requested_format == expected && rendering_layers == 1));
274 ++checks;
275 }
276 auto msaa_layered = layered; msaa_layered.mip_levels = 1; msaa_layered.samples = 4;
277 CommandList ms_layer_list;
278 EXPECT(ms_layer_list.clear_render_target({1, 0, 1, 2, ColorViewFormat::rgba8_srgb}, color) &&
279 ms_layer_list.close());
280 EXPECT(run(ms_layer_list, msaa_layered, vk) == ReplayResult::success);
281 EXPECT(attachment_clears == 1 && requested_format == VK_FORMAT_R8G8B8A8_SRGB);
282 EXPECT(requested_range.baseArrayLayer == 1 && requested_range.layerCount == 2 && rendering_layers == 2);
283 ++checks;
284 }
285 checks += 7;
268 CommandList list; 286 CommandList list;
269 EXPECT(list.clear_render_target({1, 0, 0, 1, ColorViewFormat::rgba8_srgb}, color) && list.close()); 287 EXPECT(list.clear_render_target({1, 0, 0, 1, ColorViewFormat::rgba8_srgb}, color) && list.close());
270 auto unavailable = vk; unavailable.begin_rendering = nullptr; 288 auto unavailable = vk; unavailable.begin_rendering = nullptr;
diff --git a/runtime/test/vk_bindless_test.cpp b/runtime/test/vk_bindless_test.cpp
index 419a1dda4..041f6f648 100644
--- a/runtime/test/vk_bindless_test.cpp
+++ b/runtime/test/vk_bindless_test.cpp
@@ -902,7 +902,7 @@ int main(int argc, char** argv) {
902 // 2. Without its key the T# is a miss: index 0, the fallback image of zeros. 902 // 2. Without its key the T# is a miss: index 0, the fallback image of zeros.
903 const float zeros[4] = {0, 0, 0, 0}; 903 const float zeros[4] = {0, 0, 0, 0};
904 EXPECT(set.erase_key(tsharp) && !set.erase_key(tsharp)); 904 EXPECT(set.erase_key(tsharp) && !set.erase_key(tsharp));
905 EXPECT(set.flush_needs_idle()); // erasing may move the keys behind it; nothing is running here 905 EXPECT(!set.flush_needs_idle()); // erasing empties its slot only: the three keys ahead stay where they are
906 EXPECT(flush() && !set.flush_needs_idle()); 906 EXPECT(flush() && !set.flush_needs_idle());
907 CHECK(draw()); 907 CHECK(draw());
908 compare("2 miss", zeros); 908 compare("2 miss", zeros);
diff --git a/runtime/test/vk_descriptor_bench.cpp b/runtime/test/vk_descriptor_bench.cpp
index 07be76abb..5f5e721c8 100644
--- a/runtime/test/vk_descriptor_bench.cpp
+++ b/runtime/test/vk_descriptor_bench.cpp
@@ -7,7 +7,7 @@
7// dispatch against CPU DescriptorTable::lookup() before timing. 7// dispatch against CPU DescriptorTable::lookup() before timing.
8// 8//
9// Usage: 9// Usage:
10// vk_descriptor_bench [--sizes 1000,10000,100000] [--groups 4096] [--iters 64] [--reps 25] [--warmup 5] 10// vk_descriptor_bench [--sizes 1000,10000,100000] [--groups 4096] [--iters 64] [--reps 25] [--warmup 5] [--warmup-ms 300]
11// [--memory all|device|host|rebar] [--device N] [--list-devices] [--quick] [--csv] 11// [--memory all|device|host|rebar] [--device N] [--list-devices] [--quick] [--csv]
12// [--dump-spv PREFIX] [--self-test] 12// [--dump-spv PREFIX] [--self-test]
13// LEONIDA_VK_VALIDATION=1 enables VK_LAYER_KHRONOS_validation; any validation error fails the run. 13// LEONIDA_VK_VALIDATION=1 enables VK_LAYER_KHRONOS_validation; any validation error fails the run.
@@ -969,6 +969,7 @@ struct Options {
969 std::uint32_t reps = 25u; 969 std::uint32_t reps = 25u;
970 std::uint32_t warmup = 5u; 970 std::uint32_t warmup = 5u;
971 double max_dispatch_ms = 120.0; 971 double max_dispatch_ms = 120.0;
972 double warmup_ms = 300.0; // keep running the timed dispatch until this much time has passed (0 = off)
972 std::optional<std::uint32_t> device_index; 973 std::optional<std::uint32_t> device_index;
973 MemoryFilter mem_filter = MemoryFilter::All; 974 MemoryFilter mem_filter = MemoryFilter::All;
974 bool list_devices = false; 975 bool list_devices = false;
@@ -985,6 +986,8 @@ void print_usage() {
985 " --iters N lookups per invocation per dispatch (default: 64)\n" 986 " --iters N lookups per invocation per dispatch (default: 64)\n"
986 " --reps N timed repetitions per scenario (default: 25)\n" 987 " --reps N timed repetitions per scenario (default: 25)\n"
987 " --warmup N warmup dispatches before timing (default: 5)\n" 988 " --warmup N warmup dispatches before timing (default: 5)\n"
989 " --warmup-ms F then keep dispatching until F ms have passed, so the GPU clocks are up before the\n"
990 " first timed run, 0=off (default: 300; --quick turns it off)\n"
988 " --max-dispatch-ms F auto-scale slow dispatches to avoid OS TDR, 0=off (default: 120)\n" 991 " --max-dispatch-ms F auto-scale slow dispatches to avoid OS TDR, 0=off (default: 120)\n"
989 " --memory MODE all|device|host|rebar (default: all)\n" 992 " --memory MODE all|device|host|rebar (default: all)\n"
990 " --device N select physical device index from --list-devices\n" 993 " --device N select physical device index from --list-devices\n"
@@ -1031,6 +1034,7 @@ bool parse_args(int argc, const char* const* argv, Options& opt, bool& show_help
1031 opt.groups = 16u; 1034 opt.groups = 16u;
1032 opt.iters = 4u; 1035 opt.iters = 4u;
1033 opt.warmup = 1u; 1036 opt.warmup = 1u;
1037 opt.warmup_ms = 0.0;
1034 opt.reps = 3u; 1038 opt.reps = 3u;
1035 } else if (arg == "--groups") { 1039 } else if (arg == "--groups") {
1036 const char* v = nullptr; 1040 const char* v = nullptr;
@@ -1051,6 +1055,13 @@ bool parse_args(int argc, const char* const* argv, Options& opt, bool& show_help
1051 const double val = std::strtod(v, &end); 1055 const double val = std::strtod(v, &end);
1052 if (*v == '\0' || *end != '\0' || !std::isfinite(val) || val < 0.0) return false; 1056 if (*v == '\0' || *end != '\0' || !std::isfinite(val) || val < 0.0) return false;
1053 opt.max_dispatch_ms = val; 1057 opt.max_dispatch_ms = val;
1058 } else if (arg == "--warmup-ms") {
1059 const char* v = nullptr;
1060 if (!need_val(v)) return false;
1061 char* end = nullptr;
1062 const double val = std::strtod(v, &end);
1063 if (*v == '\0' || *end != '\0' || !std::isfinite(val) || val < 0.0) return false;
1064 opt.warmup_ms = val;
1054 } else if (arg == "--device") { 1065 } else if (arg == "--device") {
1055 const char* v = nullptr; 1066 const char* v = nullptr;
1056 std::uint32_t idx = 0u; 1067 std::uint32_t idx = 0u;
@@ -1164,6 +1175,19 @@ int run_self_test() {
1164 return 1; 1175 return 1;
1165 } 1176 }
1166 1177
1178 {
1179 const char* const ok_args[] = {"vk_descriptor_bench", "--warmup-ms", "0"};
1180 const char* const bad_args[] = {"vk_descriptor_bench", "--warmup-ms", "-1"};
1181 const char* const quick_args[] = {"vk_descriptor_bench", "--quick"};
1182 Options o_ok, o_bad, o_quick, o_default;
1183 bool h = false;
1184 if (o_default.warmup_ms != 300.0 || !parse_args(3, ok_args, o_ok, h) || o_ok.warmup_ms != 0.0 ||
1185 parse_args(3, bad_args, o_bad, h) || !parse_args(2, quick_args, o_quick, h) || o_quick.warmup_ms != 0.0) {
1186 std::fprintf(stderr, "self-test: --warmup-ms parsing or its default is wrong\n");
1187 return 1;
1188 }
1189 }
1190
1167 const struct { 1191 const struct {
1168 const char* name; 1192 const char* name;
1169 ShaderKind kind; 1193 ShaderKind kind;
@@ -2134,6 +2158,22 @@ int main(int argc, char** argv) {
2134 } 2158 }
2135 } 2159 }
2136 2160
2161 // A handful of dispatches is not enough to bring the clocks up on every GPU: with --warmup 5 an idle
2162 // RX 7600 measured the first placement ~1.8x slower than with --warmup 200, and the RTX 4050 ~1.3x
2163 // (TEST-277). Keep running the command that is about to be timed for --warmup-ms.
2164 if (opt.warmup_ms > 0.0) {
2165 const auto w0 = std::chrono::steady_clock::now();
2166 for (;;) {
2167 if (!submit_and_wait(bench_cmd)) {
2168 cleanup_all(keys_buf, map_buf);
2169 return 1;
2170 }
2171 const double spent =
2172 std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - w0).count();
2173 if (spent >= opt.warmup_ms) break;
2174 }
2175 }
2176
2137 std::vector<double> samples_ms; 2177 std::vector<double> samples_ms;
2138 samples_ms.reserve(eff_reps); 2178 samples_ms.reserve(eff_reps);
2139 for (std::uint32_t r = 0; r < eff_reps; ++r) { 2179 for (std::uint32_t r = 0; r < eff_reps; ++r) {
diff --git a/runtime/test/vk_harness.cpp b/runtime/test/vk_harness.cpp
index f7f86fa51..360a20fa7 100644
--- a/runtime/test/vk_harness.cpp
+++ b/runtime/test/vk_harness.cpp
@@ -240,6 +240,17 @@ int main(int argc, char** argv) {
240 return 2; 240 return 2;
241 } 241 }
242 } 242 }
243 // Translated shaders declare a 144-byte push-constant block (user SGPRs, heap base, code base; see VKH_SGPRS /
244 // VKH_HEAP); --mesh-compute modules and their vertex shaders add the output address (152 bytes). A device with
245 // fewer bytes (128, the Vulkan minimum, as on some Intel Arc drivers and AMD's Windows driver for RDNA2 iGPUs)
246 // cannot take that range: declaring it anyway is invalid, and there a shader reading past the limit crashed or
247 // hung the device. 77, as vk_texture_test and vk_bindless_test: a device limit, not a wrong result (D3D-14).
248 const uint32_t pc_bytes = mesh_compute ? 152u : 144u;
249 if (props.limits.maxPushConstantsSize < pc_bytes) {
250 std::fprintf(stderr, "unsupported: need %u push constant bytes, device has %u\n", pc_bytes,
251 props.limits.maxPushConstantsSize);
252 return 77;
253 }
243 // VKH_MESH=1: the first shader is a mesh shader (VK_EXT_mesh_shader), drawn with vkCmdDrawMeshTasksEXT(1,1,1). 254 // VKH_MESH=1: the first shader is a mesh shader (VK_EXT_mesh_shader), drawn with vkCmdDrawMeshTasksEXT(1,1,1).
244 const bool mesh = !mesh_compute && (group_readback || std::getenv("VKH_MESH") != nullptr); 255 const bool mesh = !mesh_compute && (group_readback || std::getenv("VKH_MESH") != nullptr);
245 VkPhysicalDeviceMeshShaderFeaturesEXT meshf{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_EXT}; 256 VkPhysicalDeviceMeshShaderFeaturesEXT meshf{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_EXT};
@@ -454,12 +465,11 @@ int main(int argc, char** argv) {
454 VkPipelineColorBlendAttachmentState cba{}; cba.colorWriteMask = 0xF; 465 VkPipelineColorBlendAttachmentState cba{}; cba.colorWriteMask = 0xF;
455 VkPipelineColorBlendStateCreateInfo cb{VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO}; 466 VkPipelineColorBlendStateCreateInfo cb{VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO};
456 cb.attachmentCount = 1; cb.pAttachments = &cba; 467 cb.attachmentCount = 1; cb.pAttachments = &cba;
457 // Translated shaders declare a 144-byte push-constant block (user SGPRs, heap base, code base; see VKH_SGPRS / 468 // The push-constant block (pc_bytes, checked against the device limit above).
458 // VKH_HEAP); --mesh-compute modules and their vertex shaders add the output address (152 bytes).
459 const VkShaderStageFlags pcs = (mesh ? VK_SHADER_STAGE_MESH_BIT_EXT : VK_SHADER_STAGE_VERTEX_BIT) | 469 const VkShaderStageFlags pcs = (mesh ? VK_SHADER_STAGE_MESH_BIT_EXT : VK_SHADER_STAGE_VERTEX_BIT) |
460 VK_SHADER_STAGE_FRAGMENT_BIT | (gs_path ? VK_SHADER_STAGE_GEOMETRY_BIT : 0) | 470 VK_SHADER_STAGE_FRAGMENT_BIT | (gs_path ? VK_SHADER_STAGE_GEOMETRY_BIT : 0) |
461 (mesh_compute ? VK_SHADER_STAGE_COMPUTE_BIT : 0); 471 (mesh_compute ? VK_SHADER_STAGE_COMPUTE_BIT : 0);
462 VkPushConstantRange pcr{pcs, 0, mesh_compute ? 152u : 144u}; 472 VkPushConstantRange pcr{pcs, 0, pc_bytes};
463 VkPipelineLayoutCreateInfo pli{VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO}; 473 VkPipelineLayoutCreateInfo pli{VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO};
464 pli.pushConstantRangeCount = 1; pli.pPushConstantRanges = &pcr; 474 pli.pushConstantRangeCount = 1; pli.pPushConstantRanges = &pcr;
465 VkPipelineLayout pl; CHECK(vkCreatePipelineLayout(dev, &pli, nullptr, &pl)); 475 VkPipelineLayout pl; CHECK(vkCreatePipelineLayout(dev, &pli, nullptr, &pl));
@@ -564,7 +574,6 @@ int main(int argc, char** argv) {
564 std::memcpy(pc, shifts, sizeof(shifts)); 574 std::memcpy(pc, shifts, sizeof(shifts));
565 } 575 }
566 auto push = reinterpret_cast<PFN_vkCmdPushConstants>(vkGetDeviceProcAddr(dev, "vkCmdPushConstants")); 576 auto push = reinterpret_cast<PFN_vkCmdPushConstants>(vkGetDeviceProcAddr(dev, "vkCmdPushConstants"));
567 const uint32_t pc_bytes = mesh_compute ? 152u : 144u;
568 if (mesh_compute) { 577 if (mesh_compute) {
569 // The mesh shader as compute, then make its stores visible to the vertex shader's reads. 578 // The mesh shader as compute, then make its stores visible to the vertex shader's reads.
570 LOADD(vkCmdDispatch); LOADD(vkCmdPipelineBarrier); 579 LOADD(vkCmdDispatch); LOADD(vkCmdPipelineBarrier);
@@ -591,7 +600,11 @@ int main(int argc, char** argv) {
591 } 600 }
592 vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, pipe); 601 vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, pipe);
593 push(cmd, pl, pcs, 0, pc_bytes, pc); 602 push(cmd, pl, pcs, 0, pc_bytes, pc);
594 if (mesh_compute) 603 // VKH_VERTICES=<n>: draw n vertices instead of one triangle, so a vertex shader fills whole waves (TEST-251).
604 const char* vertices_env = std::getenv("VKH_VERTICES");
605 if (const unsigned vertices = vertices_env ? unsigned(std::strtoul(vertices_env, nullptr, 10)) : 0; vertices && !mesh)
606 vkCmdDraw(cmd, vertices, 1, 0, 0);
607 else if (mesh_compute)
595 vkCmdDraw(cmd, uint32_t(mesh_groups * mesh_prims * 3), 1, 0, 0); 608 vkCmdDraw(cmd, uint32_t(mesh_groups * mesh_prims * 3), 1, 0, 0);
596 else if (mesh) 609 else if (mesh)
597 reinterpret_cast<PFN_vkCmdDrawMeshTasksEXT>(vkGetDeviceProcAddr(dev, "vkCmdDrawMeshTasksEXT"))(cmd, groups[0], groups[1], groups[2]); 610 reinterpret_cast<PFN_vkCmdDrawMeshTasksEXT>(vkGetDeviceProcAddr(dev, "vkCmdDrawMeshTasksEXT"))(cmd, groups[0], groups[1], groups[2]);
diff --git a/runtime/test/vk_overlapping_occlusion_test.cpp b/runtime/test/vk_overlapping_occlusion_test.cpp
index cc9372feb..2a510d33a 100644
--- a/runtime/test/vk_overlapping_occlusion_test.cpp
+++ b/runtime/test/vk_overlapping_occlusion_test.cpp
@@ -135,13 +135,14 @@ struct Draws {
135 std::vector<std::uint32_t> extents; 135 std::vector<std::uint32_t> extents;
136 std::size_t next = 0; 136 std::size_t next = 0;
137 bool overflow = false; 137 bool overflow = false;
138 bool every = false; // --bisect: one 1x1 draw before every end, no schedule 138 bool every = false; // --bisect: one 1x1 draw before every end, no schedule
139 bool no_draw = false; // --bisect --no-draw: no draws at all, every query stays empty
139}; 140};
140Draws* draws = nullptr; 141Draws* draws = nullptr;
141 142
142VKAPI_ATTR void VKAPI_CALL end_query_with_draw(VkCommandBuffer cb, VkQueryPool pool, std::uint32_t index) { 143VKAPI_ATTR void VKAPI_CALL end_query_with_draw(VkCommandBuffer cb, VkQueryPool pool, std::uint32_t index) {
143 if (draws->every) { 144 if (draws->every) {
144 draws->fixture.draw(cb, 1); 145 if (!draws->no_draw) draws->fixture.draw(cb, 1);
145 } else if (draws->next == draws->extents.size()) { 146 } else if (draws->next == draws->extents.size()) {
146 draws->overflow = true; 147 draws->overflow = true;
147 } else if (const auto extent = draws->extents[draws->next++]) { 148 } else if (const auto extent = draws->extents[draws->next++]) {
@@ -159,9 +160,13 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL get_device_proc(VkDevice device, const
159// submission is waited for before the next, so the last "running" line before a hang or a lost device names the 160// submission is waited for before the next, so the last "running" line before a hang or a lost device names the
160// pattern. --gated queues them all behind one semaphore the CPU signals afterwards, as the full test does. Named 161// pattern. --gated queues them all behind one semaphore the CPU signals afterwards, as the full test does. Named
161// phases run only those, in the order below. Only completion is checked, not values. 162// phases run only those, in the order below. Only completion is checked, not values.
163// Two switches separate the draw from the resolve: --no-draw leaves every query empty (no rendering scope inside
164// it), --no-resolve records the queries but never copies or sums their results.
162struct Bisect { 165struct Bisect {
163 bool enabled = false; 166 bool enabled = false;
164 bool gated = false; 167 bool gated = false;
168 bool no_draw = false;
169 bool no_resolve = false;
165 std::vector<std::string> phases; 170 std::vector<std::string> phases;
166 bool wants(const char* name) const { 171 bool wants(const char* name) const {
167 return phases.empty() || std::find(phases.begin(), phases.end(), name) != phases.end(); 172 return phases.empty() || std::find(phases.begin(), phases.end(), name) != phases.end();
@@ -184,8 +189,9 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
184 schedule.extents.insert(schedule.extents.end(), 2 * bursts + 1, 1); 189 schedule.extents.insert(schedule.extents.end(), 2 * bursts + 1, 1);
185 // The statistics lists below: a split query (two segments), two unsplit references and a second split query. 190 // The statistics lists below: a split query (two segments), two unsplit references and a second split query.
186 if (d.pipeline_statistics_query) schedule.extents.insert(schedule.extents.end(), {3, 5, 3, 5, 3, 5}); 191 if (d.pipeline_statistics_query) schedule.extents.insert(schedule.extents.end(), {3, 5, 3, 5, 3, 5});
187 schedule.extents.insert(schedule.extents.end(), {2, 0, 0, 0}); 192 schedule.extents.insert(schedule.extents.end(), {2, 0, 0, 0, 1});
188 schedule.every = bisect.enabled; 193 schedule.every = bisect.enabled;
194 schedule.no_draw = bisect.no_draw;
189 draws = &schedule; 195 draws = &schedule;
190 VulkanContext context(get_device_proc, d.device, true, d.conditional_rendering); 196 VulkanContext context(get_device_proc, d.device, true, d.conditional_rendering);
191 EXPECT(context.loaded()); 197 EXPECT(context.loaded());
@@ -236,30 +242,37 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
236 if (!bisect.wants(name)) return nullptr; 242 if (!bisect.wants(name)) return nullptr;
237 return &lists.emplace_back(name, CommandList{}).second; 243 return &lists.emplace_back(name, CommandList{}).second;
238 }; 244 };
245 const auto resolve = [&](CommandList* l, const ResolveQueries& r) {
246 return bisect.no_resolve || l->resolve_queries(r);
247 };
239 if (auto* l = add("crossing")) { // two queries of one heap overlap; resolve while one is active 248 if (auto* l = add("crossing")) { // two queries of one heap overlap; resolve while one is active
240 EXPECT(l->begin_query({a, occ, 0}) && l->begin_query({a, occ, 1}) && l->end_query({a, occ, 0})); 249 EXPECT(l->begin_query({a, occ, 0}) && l->begin_query({a, occ, 1}) && l->end_query({a, occ, 0}));
241 EXPECT(l->resolve_queries({a, occ, 0, 1, dst_id, 8}) && l->end_query({a, occ, 1})); 250 EXPECT(resolve(l, {a, occ, 0, 1, dst_id, 8}) && l->end_query({a, occ, 1}));
242 EXPECT(l->resolve_queries({a, occ, 0, 2, dst_id, 24})); 251 EXPECT(resolve(l, {a, occ, 0, 2, dst_id, 24}));
252 }
253 if (auto* l = add("active")) { // a resolve inside one active query, without an overlap
254 EXPECT(l->begin_query({a, occ, 0}) && l->end_query({a, occ, 0}) && l->begin_query({a, occ, 3}));
255 EXPECT(resolve(l, {a, occ, 0, 1, dst_id, 128}) && l->end_query({a, occ, 3}));
243 } 256 }
244 if (auto* l = add("nested")) { // the same index in two heaps, one inside the other 257 if (auto* l = add("nested")) { // the same index in two heaps, one inside the other
245 EXPECT(l->begin_query({a, occ, 2}) && l->begin_query({b, occ, 2})); 258 EXPECT(l->begin_query({a, occ, 2}) && l->begin_query({b, occ, 2}));
246 EXPECT(l->end_query({b, occ, 2}) && l->end_query({a, occ, 2})); 259 EXPECT(l->end_query({b, occ, 2}) && l->end_query({a, occ, 2}));
247 EXPECT(l->resolve_queries({a, occ, 2, 1, dst_id, 40}) && l->resolve_queries({b, occ, 2, 1, dst_id, 48})); 260 EXPECT(resolve(l, {a, occ, 2, 1, dst_id, 40}) && resolve(l, {b, occ, 2, 1, dst_id, 48}));
248 } 261 }
249 if (auto* l = add("unwritten")) { // a query never begun: zero fill 262 if (auto* l = add("unwritten")) { // a query never begun: zero fill
250 EXPECT(l->resolve_queries({b, occ, 0, 1, dst_id, 56})); 263 EXPECT(resolve(l, {b, occ, 0, 1, dst_id, 56}));
251 } 264 }
252 if (auto* l = add("binary")) { // the binary-occlusion compute resolve 265 if (auto* l = add("binary")) { // the binary-occlusion compute resolve
253 EXPECT(l->begin_query({a, binary, 3}) && l->end_query({a, binary, 3})); 266 EXPECT(l->begin_query({a, binary, 3}) && l->end_query({a, binary, 3}));
254 EXPECT(l->resolve_queries({a, binary, 3, 1, dst_id, 64})); 267 EXPECT(resolve(l, {a, binary, 3, 1, dst_id, 64}));
255 } 268 }
256 if (d.conditional_rendering) { 269 if (d.conditional_rendering) {
257 if (auto* l = add("predicated")) { // both compute resolves under a false predicate 270 if (auto* l = add("predicated")) { // both compute resolves under a false predicate
258 EXPECT(l->begin_query({a, binary, 3}) && l->end_query({a, binary, 3})); 271 EXPECT(l->begin_query({a, binary, 3}) && l->end_query({a, binary, 3}));
259 EXPECT(l->set_predication({predicate_id, 0, d3d12_predication::equal_zero})); 272 EXPECT(l->set_predication({predicate_id, 0, d3d12_predication::equal_zero}));
260 EXPECT(l->resolve_queries({a, binary, 3, 1, dst_id, 64})); 273 EXPECT(resolve(l, {a, binary, 3, 1, dst_id, 64}));
261 EXPECT(l->resolve_queries({a, occ, 0, 1, dst_id, 72})); 274 EXPECT(resolve(l, {a, occ, 0, 1, dst_id, 72}));
262 EXPECT(l->resolve_queries({a, binary, 3, 1, dst_id, 80})); 275 EXPECT(resolve(l, {a, binary, 3, 1, dst_id, 80}));
263 EXPECT(copy_control.record(*l)); 276 EXPECT(copy_control.record(*l));
264 } 277 }
265 } 278 }
@@ -267,14 +280,24 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
267 EXPECT(l->begin_query({a, occ, 3})); 280 EXPECT(l->begin_query({a, occ, 3}));
268 for (std::uint32_t i = 0; i < bursts; ++i) EXPECT(l->begin_query({b, occ, 0}) && l->end_query({b, occ, 0})); 281 for (std::uint32_t i = 0; i < bursts; ++i) EXPECT(l->begin_query({b, occ, 0}) && l->end_query({b, occ, 0}));
269 EXPECT(l->end_query({a, occ, 3})); 282 EXPECT(l->end_query({a, occ, 3}));
270 EXPECT(l->resolve_queries({a, occ, 3, 1, dst_id, 88}) && l->resolve_queries({b, occ, 0, 1, dst_id, 96})); 283 EXPECT(resolve(l, {a, occ, 3, 1, dst_id, 88}) && resolve(l, {b, occ, 0, 1, dst_id, 96}));
271 } 284 }
272 if (auto* l = add("replace")) { // every heap query begun and ended again, then resolved 285 if (auto* l = add("replace")) { // every heap query begun and ended again, then resolved
273 for (const auto& [heap, index] : {std::pair{a, 0u}, std::pair{a, 1u}, std::pair{a, 2u}, std::pair{b, 2u}}) 286 for (const auto& [heap, index] : {std::pair{a, 0u}, std::pair{a, 1u}, std::pair{a, 2u}, std::pair{b, 2u}})
274 EXPECT(l->begin_query({heap, occ, index}) && l->end_query({heap, occ, index})); 287 EXPECT(l->begin_query({heap, occ, index}) && l->end_query({heap, occ, index}));
275 EXPECT(l->resolve_queries({a, occ, 0, 2, dst_id, 112})); 288 EXPECT(resolve(l, {a, occ, 0, 2, dst_id, 112}));
276 } 289 }
277 EXPECT(!lists.empty()); 290 EXPECT(!lists.empty());
291 std::printf("bisect:%s%s%s\n", bisect.gated ? " gated" : " ungated", bisect.no_draw ? " no-draw" : " draws",
292 bisect.no_resolve ? " no-resolve" : " resolves");
293 // After a TDR, AMD's Windows driver lets vkQueueWaitIdle succeed (#1540); every timeline semaphore then reads
294 // UINT64_MAX, so the gate's value is checked as well as what the context has seen.
295 const auto get_value = d.fn<PFN_vkGetSemaphoreCounterValue>("vkGetSemaphoreCounterValue");
296 const auto lost = [&] {
297 std::uint64_t value = 0;
298 return context.is_device_lost() || get_value(d.device, gate.semaphore(), &value) != VK_SUCCESS ||
299 value == UINT64_MAX;
300 };
278 if (bisect.gated) queue.wait(gate.semaphore(), 1); 301 if (bisect.gated) queue.wait(gate.semaphore(), 1);
279 for (auto& [name, list] : lists) { 302 for (auto& [name, list] : lists) {
280 EXPECT(list.close()); 303 EXPECT(list.close());
@@ -286,15 +309,15 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
286 std::printf("%s: execute returned %d\n", name, int(result)); 309 std::printf("%s: execute returned %d\n", name, int(result));
287 return 1; 310 return 1;
288 } 311 }
289 if (!bisect.gated && !queue.idle()) { 312 if (!bisect.gated && (!queue.idle() || lost())) {
290 std::printf("%s: vkQueueWaitIdle failed (device lost?)\n", name); 313 std::printf("%s: device lost\n", name);
291 return 1; 314 return 1;
292 } 315 }
293 } 316 }
294 if (bisect.gated) { 317 if (bisect.gated) {
295 EXPECT(gate.signal(1)); 318 EXPECT(gate.signal(1));
296 if (!queue.idle()) { 319 if (!queue.idle() || lost()) {
297 std::printf("gated: vkQueueWaitIdle failed (device lost?)\n"); 320 std::printf("gated: device lost\n");
298 return 1; 321 return 1;
299 } 322 }
300 } 323 }
@@ -414,13 +437,22 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
414 EXPECT(replace.close()); 437 EXPECT(replace.close());
415 const CommandList* fourth[] = {&replace}; 438 const CommandList* fourth[] = {&replace};
416 EXPECT(queue.execute(fourth) == ReplayResult::success); 439 EXPECT(queue.execute(fourth) == ReplayResult::success);
440
441 // A resolve inside one active query, with no overlap.
442 CommandList single;
443 EXPECT(single.begin_query({a, occ, 3}));
444 EXPECT(single.resolve_queries({a, occ, 0, 1, dst_id, 128}));
445 EXPECT(single.end_query({a, occ, 3}));
446 EXPECT(single.close());
447 const CommandList* fifth[] = {&single};
448 EXPECT(queue.execute(fifth) == ReplayResult::success);
417 EXPECT(!schedule.overflow && schedule.next == schedule.extents.size()); 449 EXPECT(!schedule.overflow && schedule.next == schedule.extents.size());
418 EXPECT(gate.signal(1)); 450 EXPECT(gate.signal(1));
419 EXPECT(queue.idle()); 451 EXPECT(queue.idle());
420 452
421 std::map<VkDeviceSize, std::uint64_t> expected = { 453 std::map<VkDeviceSize, std::uint64_t> expected = {
422 {8, 80}, {24, 80}, {32, 20}, {40, 84}, {48, 16}, {56, 0}, {64, 1}, {72, 80}, {80, 1}, 454 {8, 80}, {24, 80}, {32, 20}, {40, 84}, {48, 16}, {56, 0}, {64, 1}, {72, 80}, {80, 1},
423 {88, 2 * bursts + 1}, {96, 1}, {112, 4}, {120, 0}, 455 {88, 2 * bursts + 1}, {96, 1}, {112, 4}, {120, 0}, {128, 4},
424 }; 456 };
425 if (fixture.statistics) expected[0] = 2 * bursts + 1; // the sum resolved inside the statistics query 457 if (fixture.statistics) expected[0] = 2 * bursts + 1; // the sum resolved inside the statistics query
426 for (VkDeviceSize offset = 0; offset < size; offset += 8) { 458 for (VkDeviceSize offset = 0; offset < size; offset += 8) {
@@ -460,7 +492,7 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
460 static_cast<unsigned long long>(word(0, 0)), static_cast<unsigned long long>(word(0, 7))); 492 static_cast<unsigned long long>(word(0, 0)), static_cast<unsigned long long>(word(0, 7)));
461 } 493 }
462 std::printf("crossing 80/20; nested 84/16; %u segments summed; alternating binary results 1/1; " 494 std::printf("crossing 80/20; nested 84/16; %u segments summed; alternating binary results 1/1; "
463 "offsets and gated overwrites exact\n", 495 "resolve inside an active query 4; offsets and gated overwrites exact\n",
464 2 * bursts + 1); 496 2 * bursts + 1);
465 EXPECT(copy_control.check()); 497 EXPECT(copy_control.check());
466 return 0; 498 return 0;
@@ -468,13 +500,15 @@ int run(vktest::Device& d, const char* vertex, const char* fragment, const Bisec
468 500
469} // namespace 501} // namespace
470 502
471// vk_overlapping_occlusion_test <vert.spv> <frag.spv> [--bisect [--gated] [phase...]] 503// vk_overlapping_occlusion_test <vert.spv> <frag.spv> [--bisect [--gated] [--no-draw] [--no-resolve] [phase...]]
472int main(int argc, char** argv) { 504int main(int argc, char** argv) {
473 EXPECT(argc >= 3); 505 EXPECT(argc >= 3);
474 Bisect bisect; 506 Bisect bisect;
475 for (int i = 3; i < argc; ++i) { 507 for (int i = 3; i < argc; ++i) {
476 if (std::strcmp(argv[i], "--bisect") == 0) bisect.enabled = true; 508 if (std::strcmp(argv[i], "--bisect") == 0) bisect.enabled = true;
477 else if (std::strcmp(argv[i], "--gated") == 0) bisect.gated = true; 509 else if (std::strcmp(argv[i], "--gated") == 0) bisect.gated = true;
510 else if (std::strcmp(argv[i], "--no-draw") == 0) bisect.no_draw = true;
511 else if (std::strcmp(argv[i], "--no-resolve") == 0) bisect.no_resolve = true;
478 else bisect.phases.emplace_back(argv[i]); 512 else bisect.phases.emplace_back(argv[i]);
479 } 513 }
480 EXPECT(argc == 3 || bisect.enabled); 514 EXPECT(argc == 3 || bisect.enabled);
diff --git a/runtime/test/vk_pipeline_check.cpp b/runtime/test/vk_pipeline_check.cpp
index a8fe0eaeb..f11cc37ff 100644
--- a/runtime/test/vk_pipeline_check.cpp
+++ b/runtime/test/vk_pipeline_check.cpp
@@ -22,6 +22,12 @@
22// --cache-feedback count each stage's successful pipelines by VkPipelineCreationFeedback: hits (VALID and 22// --cache-feedback count each stage's successful pipelines by VkPipelineCreationFeedback: hits (VALID and
23// APPLICATION_PIPELINE_CACHE_HIT), no hit reported (VALID only) and unavailable (no VALID bit, or a 23// APPLICATION_PIPELINE_CACHE_HIT), no hit reported (VALID only) and unavailable (no VALID bit, or a
24// pre-1.3 device without VK_EXT_pipeline_creation_feedback). The three add up to the ok count. 24// pre-1.3 device without VK_EXT_pipeline_creation_feedback). The three add up to the ok count.
25// --isolate (POSIX only) check in child processes, --isolate-batch modules at a time (default 256), so a module
26// that kills the driver (SIGFPE, SIGSEGV, ...) is recorded as failed ("MODULE CRASH") and the pass
27// goes on. A crashed batch is bisected to the module. Children run one after the other and share
28// cache.bin. Not compatible with --stats.
29// test hook VK_PIPELINE_CHECK_SIMULATE_CRASH=<module name substring>[:SIGNAL] raises SIGNAL (default SIGFPE)
30// just before the pipeline of a matching module is created. Only for testing --isolate.
25#include "vulkan_loader.h" 31#include "vulkan_loader.h"
26#include "vk_device_pick.h" 32#include "vk_device_pick.h"
27#include "pipeline_cache_file.h" 33#include "pipeline_cache_file.h"
@@ -34,6 +40,8 @@
34#include <chrono> 40#include <chrono>
35#include <cmath> 41#include <cmath>
36#include <condition_variable> 42#include <condition_variable>
43#include <csignal>
44#include <cstdlib>
37#include <cstdio> 45#include <cstdio>
38#include <cstring> 46#include <cstring>
39#include <fstream> 47#include <fstream>
@@ -49,6 +57,13 @@
49#include <utility> 57#include <utility>
50#include <vector> 58#include <vector>
51 59
60#ifndef _WIN32
61#include <sys/wait.h>
62#include <unistd.h>
63#include <cerrno>
64#include <filesystem>
65#endif
66
52static PFN_vkGetInstanceProcAddr gipa; 67static PFN_vkGetInstanceProcAddr gipa;
53 68
54struct VertexInputMeta { 69struct VertexInputMeta {
@@ -276,11 +291,13 @@ struct JsonParser {
276 291
277std::map<std::string, ShaderMeta> read_index(const std::string& path, std::string& err) { 292std::map<std::string, ShaderMeta> read_index(const std::string& path, std::string& err) {
278 std::ifstream f(path, std::ios::binary); 293 std::ifstream f(path, std::ios::binary);
279 std::string s((std::istreambuf_iterator<char>(f)), {});
280 std::map<std::string, ShaderMeta> out; 294 std::map<std::string, ShaderMeta> out;
295 if (!f) { err = "cannot open the file"; return out; } // a missing index must not read as an empty corpus
296 std::string s((std::istreambuf_iterator<char>(f)), {});
297 if (f.bad()) { err = "read error"; return out; }
281 JsonParser p{s, 0}; 298 JsonParser p{s, 0};
282 p.ws(); 299 p.ws();
283 if (p.i >= s.size()) return out; 300 if (p.i >= s.size()) { err = "the file is empty (an intentionally empty index is {})"; return out; }
284 if (!p.consume('{')) { err = "expected '{' at byte " + std::to_string(p.i); return out; } 301 if (!p.consume('{')) { err = "expected '{' at byte " + std::to_string(p.i); return out; }
285 while (!p.error && p.i < s.size()) { 302 while (!p.error && p.i < s.size()) {
286 if (p.consume('}')) return out; 303 if (p.consume('}')) return out;
@@ -376,6 +393,116 @@ static_assert(feedback_outcome(VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT) == 1);
376static_assert(feedback_outcome(VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT | 393static_assert(feedback_outcome(VK_PIPELINE_CREATION_FEEDBACK_VALID_BIT |
377 VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT) == 0); 394 VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT) == 0);
378 395
396// Test hook (see the header): VK_PIPELINE_CHECK_SIMULATE_CRASH=<module name substring>[:SIGNAL].
397struct SimulatedCrash {
398 bool enabled = false;
399 std::string pattern;
400 int sig = SIGFPE;
401};
402
403int signal_from_name(std::string n) {
404 for (char& c : n) c = static_cast<char>(std::toupper(static_cast<unsigned char>(c)));
405 if (n.rfind("SIG", 0) == 0) n = n.substr(3);
406 if (n == "FPE") return SIGFPE;
407 if (n == "SEGV") return SIGSEGV;
408 if (n == "ABRT") return SIGABRT;
409 if (n == "ILL") return SIGILL;
410 if (n == "TERM") return SIGTERM;
411#ifndef _WIN32
412 if (n == "BUS") return SIGBUS;
413 if (n == "KILL") return SIGKILL;
414#endif
415 return 0;
416}
417
418SimulatedCrash read_simulated_crash() {
419 SimulatedCrash c;
420 const char* env = std::getenv("VK_PIPELINE_CHECK_SIMULATE_CRASH");
421 if (!env || !*env) return c;
422 std::string v = env;
423 const size_t colon = v.rfind(':');
424 if (colon != std::string::npos) {
425 if (const int sig = signal_from_name(v.substr(colon + 1))) {
426 c.sig = sig;
427 v.resize(colon);
428 }
429 }
430 c.enabled = true;
431 c.pattern = v;
432 return c;
433}
434
435#ifndef _WIN32
436std::string signal_label(int sig) {
437 switch (sig) {
438 case SIGFPE: return "SIGFPE";
439 case SIGSEGV: return "SIGSEGV";
440 case SIGABRT: return "SIGABRT";
441 case SIGILL: return "SIGILL";
442 case SIGBUS: return "SIGBUS";
443 case SIGKILL: return "SIGKILL";
444 case SIGTERM: return "SIGTERM";
445 default: return "signal " + std::to_string(sig);
446 }
447}
448
449// --isolate: one child run of this executable over [start, start + count) of the stage-filtered list.
450struct ChildRun {
451 bool ready = false; // reached the work loop (ISO-READY): Vulkan and the cache were set up
452 bool done = false; // finished the pass and saved the cache (ISO-DONE)
453 bool cache_ok = true;
454 int sig = 0; // killed by this signal
455 int status = 0; // exit status when it exited
456 std::string out; // its stdout
457};
458
459ChildRun run_child(const std::string& exe, const std::string& dir, const std::vector<std::string>& pass,
460 const std::string& cache_path, size_t start, size_t count) {
461 ChildRun r;
462 std::vector<std::string> args = {exe, dir};
463 if (!cache_path.empty()) args.push_back(cache_path);
464 for (const auto& a : pass) args.push_back(a);
465 args.insert(args.end(), {"--isolate-child", "--start", std::to_string(start), "--count", std::to_string(count)});
466 std::vector<char*> argv;
467 for (auto& a : args) argv.push_back(a.data());
468 argv.push_back(nullptr);
469 int fds[2];
470 if (pipe(fds) != 0) { r.status = 127; return r; }
471 std::fflush(nullptr);
472 const pid_t pid = fork();
473 if (pid < 0) { close(fds[0]); close(fds[1]); r.status = 127; return r; }
474 if (pid == 0) {
475 dup2(fds[1], 1);
476 close(fds[0]); close(fds[1]);
477 execv(exe.c_str(), argv.data());
478 _exit(127);
479 }
480 close(fds[1]);
481 char buf[4096];
482 for (;;) {
483 const ssize_t n = read(fds[0], buf, sizeof buf);
484 if (n > 0) r.out.append(buf, size_t(n));
485 else if (n < 0 && errno == EINTR) continue;
486 else break;
487 }
488 close(fds[0]);
489 int st = 0;
490 while (waitpid(pid, &st, 0) < 0 && errno == EINTR) {}
491 if (WIFSIGNALED(st)) r.sig = WTERMSIG(st);
492 else r.status = WIFEXITED(st) ? WEXITSTATUS(st) : 1;
493 size_t pos = 0;
494 while (pos < r.out.size()) {
495 size_t e = r.out.find('\n', pos);
496 if (e == std::string::npos) e = r.out.size();
497 const std::string_view line(r.out.data() + pos, e - pos);
498 if (line == "ISO-READY") r.ready = true;
499 else if (line.rfind("ISO-DONE", 0) == 0) { r.done = true; r.cache_ok = line.find("cache_ok=0") == std::string_view::npos; }
500 pos = e + 1;
501 }
502 return r;
503}
504#endif
505
379} // namespace 506} // namespace
380 507
381int main(int argc, char** argv) { 508int main(int argc, char** argv) {
@@ -383,7 +510,7 @@ int main(int argc, char** argv) {
383 std::fprintf(stderr, 510 std::fprintf(stderr,
384 "usage: vk_pipeline_check <spirv dir> [cache.bin] [--jobs N] [--start I] [--count N] [--slow SEC] " 511 "usage: vk_pipeline_check <spirv dir> [cache.bin] [--jobs N] [--start I] [--count N] [--slow SEC] "
385 "[--max-bytes N] [--large-module-bytes N] [--stage all|cs|graphics | --compute-only | --graphics-only] " 512 "[--max-bytes N] [--large-module-bytes N] [--stage all|cs|graphics | --compute-only | --graphics-only] "
386 "[--stats FILE] [--cache-feedback]\n"); 513 "[--stats FILE] [--cache-feedback] [--isolate [--isolate-batch N]]\n");
387 return 2; 514 return 2;
388 } 515 }
389 std::setvbuf(stdout, nullptr, _IOLBF, 1 << 16); // failures reach a redirected log as they happen 516 std::setvbuf(stdout, nullptr, _IOLBF, 1 << 16); // failures reach a redirected log as they happen
@@ -393,7 +520,8 @@ int main(int argc, char** argv) {
393 size_t large_module_bytes = 4 * 1024 * 1024; 520 size_t large_module_bytes = 4 * 1024 * 1024;
394 double slow = 30.0; 521 double slow = 30.0;
395 std::string stage_filter = "all"; 522 std::string stage_filter = "all";
396 bool cache_feedback = false; 523 bool cache_feedback = false, isolate = false, iso_child = false;
524 size_t isolate_batch = 256;
397 for (int i = 2; i < argc; i++) { 525 for (int i = 2; i < argc; i++) {
398 std::string a = argv[i]; 526 std::string a = argv[i];
399 auto value = [&]() -> std::string_view { 527 auto value = [&]() -> std::string_view {
@@ -421,6 +549,12 @@ int main(int argc, char** argv) {
421 else if (a == "--large-module-bytes") valid = number(large_module_bytes); 549 else if (a == "--large-module-bytes") valid = number(large_module_bytes);
422 else if (a == "--stats") valid = !(stats_path = value()).empty(); 550 else if (a == "--stats") valid = !(stats_path = value()).empty();
423 else if (a == "--cache-feedback") cache_feedback = true; 551 else if (a == "--cache-feedback") cache_feedback = true;
552 else if (a == "--isolate") isolate = true;
553 else if (a == "--isolate-child") iso_child = true; // internal: the parent's child runs
554 else if (a == "--isolate-batch") { // parsed like the other numbers (#1735); at least one per batch
555 valid = number(isolate_batch);
556 isolate_batch = std::max<size_t>(1, isolate_batch);
557 }
424 else cache_path = a; 558 else cache_path = a;
425 if (!valid) { 559 if (!valid) {
426 std::fprintf(stderr, "%s requires a valid value\n", a.c_str()); 560 std::fprintf(stderr, "%s requires a valid value\n", a.c_str());
@@ -432,10 +566,21 @@ int main(int argc, char** argv) {
432 return 2; 566 return 2;
433 } 567 }
434 568
569 if (isolate && !stats_path.empty()) {
570 std::fprintf(stderr, "--isolate cannot be combined with --stats\n");
571 return 2;
572 }
573#ifdef _WIN32
574 if (isolate) {
575 std::fprintf(stderr, "--isolate is not supported on Windows (it needs fork/waitpid); run without it\n");
576 return 2;
577 }
578#endif
579
435 std::string index_err; 580 std::string index_err;
436 auto index = read_index(dir + "/index.json", index_err); 581 auto index = read_index(dir + "/index.json", index_err);
437 if (!index_err.empty()) { 582 if (!index_err.empty()) {
438 std::fprintf(stderr, "error: malformed JSON in %s/index.json: %s\n", dir.c_str(), index_err.c_str()); 583 std::fprintf(stderr, "error: cannot use %s/index.json: %s\n", dir.c_str(), index_err.c_str());
439 return 2; 584 return 2;
440 } 585 }
441 std::fprintf(stderr, "%zu shaders in index\n", index.size()); 586 std::fprintf(stderr, "%zu shaders in index\n", index.size());
@@ -451,6 +596,115 @@ int main(int argc, char** argv) {
451 const auto [lo, hi] = shader_slice(all.size(), start, count); 596 const auto [lo, hi] = shader_slice(all.size(), start, count);
452 const std::vector<Item> work(all.begin() + lo, all.begin() + hi); 597 const std::vector<Item> work(all.begin() + lo, all.begin() + hi);
453 598
599#ifndef _WIN32
600 if (isolate) {
601 // Parent: no Vulkan here. Run the check in child processes, one at a time, in batches of --isolate-batch
602 // modules. A child that dies mid-batch has its output discarded and the batch is bisected until the one
603 // module that kills the driver is found; the clean sub-runs partition the rest, so nothing is counted twice.
604 std::string exe = argv[0];
605 std::error_code ec;
606 if (auto self = std::filesystem::read_symlink("/proc/self/exe", ec); !ec) exe = self.string();
607 std::vector<std::string> pass = {"--jobs", std::to_string(jobs), "--slow", std::to_string(slow), "--stage", stage_filter,
608 "--max-bytes", std::to_string(max_bytes),
609 "--large-module-bytes", std::to_string(large_module_bytes)};
610 if (cache_feedback) pass.push_back("--cache-feedback");
611 struct Agg { uint32_t mod_ok = 0, mod_bad = 0, pipe_ok = 0, pipe_bad = 0, pipe_skip = 0, big = 0, crashed = 0, fb[3] = {}; };
612 std::map<std::string, Agg> agg;
613 std::vector<std::string> crashes;
614 bool cache_ok = true, setup_failed = false;
615 size_t unreproduced = 0;
616 const auto t_iso = std::chrono::steady_clock::now();
617 std::fprintf(stderr, "isolating %zu shaders [%zu, %zu) (stage=%s) in child processes, %zu per batch\n",
618 work.size(), lo, hi, stage_filter.c_str(), isolate_batch);
619 auto commit = [&](const ChildRun& r) {
620 size_t pos = 0;
621 while (pos < r.out.size()) {
622 size_t e = r.out.find('\n', pos);
623 if (e == std::string::npos) e = r.out.size();
624 const std::string line = r.out.substr(pos, e - pos);
625 pos = e + 1;
626 // The parent prints one cache line at the end instead of one per child.
627 if (line == "ISO-READY" || line.rfind("ISO-DONE", 0) == 0 || line.rfind("pipeline cache: ", 0) == 0) continue;
628 if (line.rfind("ISO-RESULT ", 0) == 0) {
629 char st[16];
630 unsigned v[9] = {};
631 if (std::sscanf(line.c_str(), "ISO-RESULT %15s %u %u %u %u %u %u %u %u %u", st, v, v + 1, v + 2, v + 3,
632 v + 4, v + 5, v + 6, v + 7, v + 8) == 10) {
633 Agg& a = agg[st];
634 a.mod_ok += v[0]; a.mod_bad += v[1]; a.pipe_ok += v[2]; a.pipe_bad += v[3]; a.pipe_skip += v[4];
635 a.big += v[5]; a.fb[0] += v[6]; a.fb[1] += v[7]; a.fb[2] += v[8];
636 }
637 continue;
638 }
639 std::printf("%s\n", line.c_str());
640 }
641 std::fflush(stdout);
642 if (!r.cache_ok) cache_ok = false;
643 };
644 // Returns the number of failures recorded for [s, s + n): crashed modules, or 1 for a crash that vanished.
645 auto bisect = [&](auto&& self, size_t s, size_t n) -> size_t {
646 if (setup_failed) return 0;
647 const ChildRun r = run_child(exe, dir, pass, cache_path, s, n);
648 if (r.done) { commit(r); return 0; }
649 if (!r.ready) { // died or exited before the work loop: not a module's fault
650 std::fputs(r.out.c_str(), stdout);
651 if (r.sig) std::fprintf(stderr, "error: a child process died during setup (%s)\n", signal_label(r.sig).c_str());
652 else std::fprintf(stderr, "error: a child process failed during setup (exit status %d)\n", r.status);
653 setup_failed = true;
654 return 0;
655 }
656 const std::string why = r.sig ? "driver crashed: " + signal_label(r.sig)
657 : "driver exited with status " + std::to_string(r.status);
658 if (n == 1) {
659 const std::string& name = *all[s].first;
660 const std::string& st = all[s].second->stage;
661 std::printf("MODULE CRASH %s (%s, %s)\n", name.c_str(), st.c_str(), why.c_str());
662 std::fflush(stdout);
663 crashes.push_back(name + " (" + st + ", " + why + ")");
664 agg[st].pipe_bad++;
665 agg[st].crashed++;
666 return 1;
667 }
668 std::fprintf(stderr, "child over [%zu, %zu) died (%s); bisecting\n", s, s + n, why.c_str());
669 const size_t half = n / 2;
670 size_t found = self(self, s, half);
671 found += self(self, s + half, n - half);
672 if (found == 0 && !setup_failed) {
673 std::printf("MODULE CRASH [%zu, %zu) not reproduced when split (%s); counted as failed\n", s, s + n, why.c_str());
674 ++unreproduced;
675 return 1;
676 }
677 return found;
678 };
679 for (size_t s = lo; s < hi && !setup_failed; s += isolate_batch) bisect(bisect, s, std::min(isolate_batch, hi - s));
680 if (setup_failed) return 1;
681 bool failed = !crashes.empty() || unreproduced || !cache_ok;
682 for (const auto& [st, a] : agg) {
683 std::printf("%s: %u modules ok, %u failed\n", st.c_str(), a.mod_ok, a.mod_bad);
684 std::printf("%s pipelines: %u ok, %u failed, %u skipped\n", st.c_str(), a.pipe_ok, a.pipe_bad, a.pipe_skip);
685 if (a.crashed) std::printf(" %s crashed the driver: %u (counted as failed)\n", st.c_str(), a.crashed);
686 if (cache_feedback)
687 std::printf(" %s cache feedback: %u hits, %u no hit reported, %u unavailable\n", st.c_str(), a.fb[0], a.fb[1], a.fb[2]);
688 if (a.mod_bad || a.pipe_bad) failed = true;
689 }
690 uint32_t big_total = 0;
691 for (const auto& [st, a] : agg) big_total += a.big;
692 if (big_total) std::printf("big modules skipped: %u (limit %zu bytes)\n", big_total, max_bytes);
693 if (!crashes.empty()) {
694 std::printf("modules that crashed the driver: %zu\n", crashes.size());
695 for (const auto& c : crashes) std::printf(" %s\n", c.c_str());
696 }
697 if (unreproduced) std::printf("crashes not reproduced after splitting: %zu\n", unreproduced);
698 if (!cache_path.empty()) {
699 const auto sz = std::filesystem::file_size(cache_path, ec);
700 if (!ec) std::printf("pipeline cache: %ju bytes -> %s\n", static_cast<uintmax_t>(sz), cache_path.c_str());
701 }
702 std::printf("wall time: %.1fs (isolated)\n",
703 std::chrono::duration<double>(std::chrono::steady_clock::now() - t_iso).count());
704 return failed ? 1 : 0;
705 }
706#endif
707
454 // Scan selected shaders to request only the optional extensions they actually use. 708 // Scan selected shaders to request only the optional extensions they actually use.
455 bool want_mesh = false, want_bary = false, want_lock = false, want_m8 = false, want_fma = false; 709 bool want_mesh = false, want_bary = false, want_lock = false, want_m8 = false, want_fma = false;
456 for (auto& [_, meta] : work) { 710 for (auto& [_, meta] : work) {
@@ -793,6 +1047,15 @@ int main(int argc, char** argv) {
793 if (n_done % 250 == 0) std::fprintf(stderr, " pipelines %u (%.0fs elapsed)\n", n_done, elapsed()); 1047 if (n_done % 250 == 0) std::fprintf(stderr, " pipelines %u (%.0fs elapsed)\n", n_done, elapsed());
794 }; 1048 };
795 1049
1050 const SimulatedCrash sim_crash = read_simulated_crash();
1051 auto maybe_simulate_crash = [&](const std::string& name) { // test hook, see the header
1052 if (sim_crash.enabled && name.find(sim_crash.pattern) != std::string::npos) {
1053 std::fprintf(stderr, "simulating signal %d before the pipeline of %s\n", sim_crash.sig, name.c_str());
1054 std::fflush(nullptr);
1055 std::raise(sim_crash.sig);
1056 }
1057 };
1058
796 auto worker = [&] { 1059 auto worker = [&] {
797 for (size_t k; (k = next++) < work.size();) { 1060 for (size_t k; (k = next++) < work.size();) {
798 const std::string& name = *work[k].first; 1061 const std::string& name = *work[k].first;
@@ -856,6 +1119,7 @@ int main(int argc, char** argv) {
856 const auto t0 = std::chrono::steady_clock::now(); 1119 const auto t0 = std::chrono::steady_clock::now();
857 { std::lock_guard<std::mutex> g(mu); inflight[std::this_thread::get_id()] = {name, t0}; } 1120 { std::lock_guard<std::mutex> g(mu); inflight[std::this_thread::get_id()] = {name, t0}; }
858 VkPipeline p = VK_NULL_HANDLE; 1121 VkPipeline p = VK_NULL_HANDLE;
1122 maybe_simulate_crash(name);
859 VkResult r = vkCreateComputePipelines(dev, cache, 1, &cpi, nullptr, &p); 1123 VkResult r = vkCreateComputePipelines(dev, cache, 1, &cpi, nullptr, &p);
860 const double sec = std::chrono::duration<double>(std::chrono::steady_clock::now() - t0).count(); 1124 const double sec = std::chrono::duration<double>(std::chrono::steady_clock::now() - t0).count();
861 if (r == VK_SUCCESS) write_stats(name, stage, VK_SHADER_STAGE_COMPUTE_BIT, p); 1125 if (r == VK_SUCCESS) write_stats(name, stage, VK_SHADER_STAGE_COMPUTE_BIT, p);
@@ -1025,6 +1289,7 @@ int main(int argc, char** argv) {
1025 const auto t0 = std::chrono::steady_clock::now(); 1289 const auto t0 = std::chrono::steady_clock::now();
1026 { std::lock_guard<std::mutex> g(mu); inflight[std::this_thread::get_id()] = {name, t0}; } 1290 { std::lock_guard<std::mutex> g(mu); inflight[std::this_thread::get_id()] = {name, t0}; }
1027 VkPipeline p = VK_NULL_HANDLE; 1291 VkPipeline p = VK_NULL_HANDLE;
1292 maybe_simulate_crash(name);
1028 VkResult r = vkCreateGraphicsPipelines(dev, cache, 1, &gpci, nullptr, &p); 1293 VkResult r = vkCreateGraphicsPipelines(dev, cache, 1, &gpci, nullptr, &p);
1029 const double sec = std::chrono::duration<double>(std::chrono::steady_clock::now() - t0).count(); 1294 const double sec = std::chrono::duration<double>(std::chrono::steady_clock::now() - t0).count();
1030 if (r == VK_SUCCESS) write_stats(name, stage, stage_bit(stage), p); 1295 if (r == VK_SUCCESS) write_stats(name, stage, stage_bit(stage), p);
@@ -1042,6 +1307,8 @@ int main(int argc, char** argv) {
1042 } 1307 }
1043 } 1308 }
1044 }; 1309 };
1310 if (iso_child) std::printf("ISO-READY\n");
1311 std::fflush(stdout);
1045 std::vector<std::thread> pool; 1312 std::vector<std::thread> pool;
1046 for (uint32_t t = 0; t < jobs; t++) pool.emplace_back(worker); 1313 for (uint32_t t = 0; t < jobs; t++) pool.emplace_back(worker);
1047 // Watchdog: names every compile running past 60 s (about once a minute) and saves the cache every 10 minutes. 1314 // Watchdog: names every compile running past 60 s (about once a minute) and saves the cache every 10 minutes.
@@ -1080,6 +1347,20 @@ int main(int argc, char** argv) {
1080 for (auto& [st, _] : modules_bad) all_stages.insert(st); 1347 for (auto& [st, _] : modules_bad) all_stages.insert(st);
1081 for (auto& [st, _] : stats) all_stages.insert(st); 1348 for (auto& [st, _] : stats) all_stages.insert(st);
1082 1349
1350 if (iso_child) { // --isolate child: machine-readable counts; the parent prints the summary
1351 for (const auto& st : all_stages) {
1352 const StageStats* s = stats.count(st) ? &stats[st] : nullptr;
1353 uint32_t big = big_skipped.count(st) ? big_skipped[st] : 0;
1354 std::printf("ISO-RESULT %s %u %u %u %u %u %u %u %u %u\n", st.c_str(), modules_ok[st], modules_bad[st],
1355 s ? s->pipes_ok : 0u, s ? s->pipes_bad : 0u, s ? s->pipes_skipped : 0u, big,
1356 s ? s->feedback[0] : 0u, s ? s->feedback[1] : 0u, s ? s->feedback[2] : 0u);
1357 }
1358 const bool saved = save_cache(true);
1359 std::printf("ISO-DONE cache_ok=%d\n", saved ? 1 : 0);
1360 std::fflush(stdout);
1361 return saved ? 0 : 1;
1362 }
1363
1083 bool check_failed = false; 1364 bool check_failed = false;
1084 for (const auto& st : all_stages) { 1365 for (const auto& st : all_stages) {
1085 std::printf("%s: %u modules ok, %u failed\n", st.c_str(), modules_ok[st], modules_bad[st]); 1366 std::printf("%s: %u modules ok, %u failed\n", st.c_str(), modules_ok[st], modules_bad[st]);
diff --git a/runtime/test/vk_presenter_sync_test.cpp b/runtime/test/vk_presenter_sync_test.cpp
index 46a2531ef..8f5c7d7d0 100644
--- a/runtime/test/vk_presenter_sync_test.cpp
+++ b/runtime/test/vk_presenter_sync_test.cpp
@@ -21,10 +21,12 @@
21#include <atomic> 21#include <atomic>
22#include <chrono> 22#include <chrono>
23#include <cmath> 23#include <cmath>
24#include <condition_variable>
24#include <cstdint> 25#include <cstdint>
25#include <cstdio> 26#include <cstdio>
26#include <cstdlib> 27#include <cstdlib>
27#include <functional> 28#include <functional>
29#include <mutex>
28#include <string_view> 30#include <string_view>
29#include <thread> 31#include <thread>
30#include <vector> 32#include <vector>
@@ -220,20 +222,36 @@ int main() {
220 222
221 // Next present succeeds, runs the deferred zero-fill, commits GENERAL, and unlocks tracker_mutex_ before 223 // Next present succeeds, runs the deferred zero-fill, commits GENERAL, and unlocks tracker_mutex_ before
222 // vkQueuePresentKHR so other threads' emit() / layout() calls are not blocked by presentation. 224 // vkQueuePresentKHR so other threads' emit() / layout() calls are not blocked by presentation.
223 std::atomic<bool> read_done{false}; 225 std::mutex sync_mutex;
226 std::condition_variable sync_cv;
227 bool reader_started = false;
228 bool read_done = false;
224 VkImageLayout seen_during_present = VK_IMAGE_LAYOUT_UNDEFINED; 229 VkImageLayout seen_during_present = VK_IMAGE_LAYOUT_UNDEFINED;
225 bool unblocked_during_present = false; 230 bool unblocked_during_present = false;
226 std::thread reader; 231 std::thread reader;
227 driver::on_next_present = [&] { 232 driver::on_next_present = [&] {
228 reader = std::thread([&] { 233 reader = std::thread([&] {
229 seen_during_present = context.layout(1, 0); 234 {
230 read_done.store(true, std::memory_order_release); 235 std::lock_guard lk(sync_mutex);
236 reader_started = true;
237 }
238 sync_cv.notify_all();
239 const VkImageLayout layout = context.layout(1, 0);
240 {
241 std::lock_guard lk(sync_mutex);
242 seen_during_present = layout;
243 read_done = true;
244 }
245 sync_cv.notify_all();
231 }); 246 });
232 std::this_thread::sleep_for(std::chrono::milliseconds(30)); 247 std::unique_lock lk(sync_mutex);
233 unblocked_during_present = read_done.load(std::memory_order_acquire); 248 const bool started = sync_cv.wait_for(lk, std::chrono::seconds(2), [&] { return reader_started; });
249 unblocked_during_present =
250 started && sync_cv.wait_for(lk, std::chrono::milliseconds(500), [&] { return read_done; });
234 }; 251 };
235 EXPECT(presenter.present(1, true) == VK_SUCCESS); 252 const VkResult present_rc = presenter.present(1, true);
236 if (reader.joinable()) reader.join(); 253 if (reader.joinable()) reader.join();
254 EXPECT(present_rc == VK_SUCCESS);
237 EXPECT(unblocked_during_present); 255 EXPECT(unblocked_during_present);
238 EXPECT(seen_during_present == VK_IMAGE_LAYOUT_GENERAL); 256 EXPECT(seen_during_present == VK_IMAGE_LAYOUT_GENERAL);
239 EXPECT(context.layout(1, 0) == VK_IMAGE_LAYOUT_GENERAL); 257 EXPECT(context.layout(1, 0) == VK_IMAGE_LAYOUT_GENERAL);
diff --git a/runtime/test/vk_test_device.h b/runtime/test/vk_test_device.h
index 13d4ddd66..157452607 100644
--- a/runtime/test/vk_test_device.h
+++ b/runtime/test/vk_test_device.h
@@ -1,11 +1,13 @@
1// Shared setup for the GPU tests of the D3D12 layer: a Vulkan 1.3 device with dynamicRendering, synchronization2, 1// Shared setup for the GPU tests of the D3D12 layer: a Vulkan 1.3 device (or 1.2 with VK_KHR_dynamic_rendering and
2// timelineSemaphore and separateDepthStencilLayouts, images, buffers and one-shot submissions. 2// VK_KHR_synchronization2) with dynamicRendering, synchronization2, timelineSemaphore and
3// separateDepthStencilLayouts, images, buffers and one-shot submissions.
3// Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation; Device::validation_errors() counts errors. 4// Set LEONIDA_VK_VALIDATION=1 to run under VK_LAYER_KHRONOS_validation; Device::validation_errors() counts errors.
4#pragma once 5#pragma once
5 6
6#include "vulkan_loader.h" 7#include "vulkan_loader.h"
7#include "../src/queue_families.h" 8#include "../src/queue_families.h"
8#include "../src/vulkan_device_filter.h" 9#include "../src/vulkan_device_filter.h"
10#include "../src/vulkan13_features.h"
9#include "vk_device_pick.h" 11#include "vk_device_pick.h"
10#include "../src/subgroup_size.h" 12#include "../src/subgroup_size.h"
11 13
@@ -83,6 +85,12 @@ public:
83 VkDevice device = VK_NULL_HANDLE; 85 VkDevice device = VK_NULL_HANDLE;
84 VkQueue queue = VK_NULL_HANDLE; 86 VkQueue queue = VK_NULL_HANDLE;
85 std::uint32_t family = 0; 87 std::uint32_t family = 0;
88 // Set before initialize(): how many queues of `family` to create (fewer if the family has fewer). `queues` holds the
89 // handles; queues[0] == queue. A test that wants distinct VkQueues for its D3D12 queues passes them on as
90 // VulkanDeviceInfo::command_queues when there is more than one.
91 std::uint32_t queue_count_wanted = 1;
92 std::uint32_t family_queue_count = 1; // the family's queueCount, known after the device is chosen
93 std::vector<VkQueue> queues;
86 bool validation = false; 94 bool validation = false;
87 bool bc = false; // textureCompressionBC enabled 95 bool bc = false; // textureCompressionBC enabled
88 bool all_queue_types = false; 96 bool all_queue_types = false;
@@ -139,9 +147,10 @@ public:
139 reinterpret_cast<PFN_vkDestroyInstance>(instance_proc(instance, "vkDestroyInstance"))(instance, nullptr); 147 reinterpret_cast<PFN_vkDestroyInstance>(instance_proc(instance, "vkDestroyInstance"))(instance, nullptr);
140 } 148 }
141 149
150 // A Vulkan 1.3 function falls back to its KHR name on a 1.2 device.
142 template<typename F> 151 template<typename F>
143 F fn(const char* name) const { 152 F fn(const char* name) const {
144 return reinterpret_cast<F>(device_proc(device, name)); 153 return reinterpret_cast<F>(leonida::device_proc_or_khr(device_proc, device, name));
145 } 154 }
146 155
147 template<typename F> 156 template<typename F>
@@ -268,10 +277,16 @@ public:
268 if (result != VK_SUCCESS) return failure("vkEnumeratePhysicalDevices", result); 277 if (result != VK_SUCCESS) return failure("vkEnumeratePhysicalDevices", result);
269 VkPhysicalDeviceProperties chosen{}; 278 VkPhysicalDeviceProperties chosen{};
270 int best_rank = -1; 279 int best_rank = -1;
280 const auto features2_of = instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2");
281 const auto device_extensions_of =
282 instance_fn<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties");
283 leonida::Vulkan13Features candidate13;
271 for (auto candidate : devices) { 284 for (auto candidate : devices) {
272 VkPhysicalDeviceProperties props{}; 285 VkPhysicalDeviceProperties props{};
273 properties_of(candidate, &props); 286 properties_of(candidate, &props);
274 if (props.apiVersion < VK_API_VERSION_1_3 || !leonida::vulkan_device_wanted(props.deviceName)) continue; 287 if (!leonida::vulkan_device_wanted(props.deviceName)) continue;
288 candidate13.query(candidate, props.apiVersion, features2_of, device_extensions_of);
289 if (!candidate13.usable()) continue;
275 std::uint32_t family_count = 0; 290 std::uint32_t family_count = 0;
276 families_of(candidate, &family_count, nullptr); 291 families_of(candidate, &family_count, nullptr);
277 std::vector<VkQueueFamilyProperties> candidate_families(family_count); 292 std::vector<VkQueueFamilyProperties> candidate_families(family_count);
@@ -282,8 +297,10 @@ public:
282 rank > best_rank) { 297 rank > best_rank) {
283 physical = candidate; 298 physical = candidate;
284 family = i; 299 family = i;
300 family_queue_count = families[i].queueCount;
285 chosen = props; 301 chosen = props;
286 best_rank = rank; 302 best_rank = rank;
303 v13_.choose(candidate13);
287 } 304 }
288 break; 305 break;
289 } 306 }
@@ -291,22 +308,25 @@ public:
291 if (!physical) { 308 if (!physical) {
292 if (const std::string filter = leonida::vulkan_device_filter(); !filter.empty()) { 309 if (const std::string filter = leonida::vulkan_device_filter(); !filter.empty()) {
293 // A filter that matches nothing fails the test instead of skipping it. 310 // A filter that matches nothing fails the test instead of skipping it.
294 std::fprintf(stderr, "LEONIDA_VK_DEVICE=%s: no Vulkan 1.3 device with a graphics queue matches\n", 311 std::fprintf(stderr,
312 "LEONIDA_VK_DEVICE=%s: no Vulkan 1.3 device (or 1.2 with VK_KHR_dynamic_rendering and "
313 "VK_KHR_synchronization2) with a graphics queue matches\n",
295 filter.c_str()); 314 filter.c_str());
296 return DeviceStatus::failed; 315 return DeviceStatus::failed;
297 } 316 }
298 std::fprintf(stderr, "no Vulkan 1.3 device with a graphics queue\n"); 317 std::fprintf(stderr, "no Vulkan 1.3 device (or 1.2 with VK_KHR_dynamic_rendering and "
318 "VK_KHR_synchronization2) with a graphics queue\n");
299 return DeviceStatus::unavailable; 319 return DeviceStatus::unavailable;
300 } 320 }
301 std::printf("device: %s%s\n", chosen.deviceName, validation ? " (validation on)" : ""); 321 std::printf("device: %s%s%s\n", chosen.deviceName, v13_.core ? "" : " (Vulkan 1.2 + KHR extensions)",
322 validation ? " (validation on)" : "");
302 323
303 VkPhysicalDeviceVulkan13Features features13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES}; 324 VkPhysicalDeviceVulkan11Features features11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES};
304 VkPhysicalDeviceVulkan11Features features11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES, &features13};
305 VkPhysicalDeviceVulkan12Features features12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &features11}; 325 VkPhysicalDeviceVulkan12Features features12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &features11};
306 VkPhysicalDeviceFeatures2 features{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &features12}; 326 VkPhysicalDeviceFeatures2 features{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &features12};
307 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &features); 327 features2_of(physical, &features);
308 if (!features13.dynamicRendering || !features13.synchronization2 || !features12.timelineSemaphore || 328 if (!features12.timelineSemaphore || !features12.separateDepthStencilLayouts ||
309 !features12.separateDepthStencilLayouts || !features12.bufferDeviceAddress) { 329 !features12.bufferDeviceAddress) {
310 std::fprintf(stderr, "the device lacks dynamicRendering, synchronization2, timelineSemaphore or " 330 std::fprintf(stderr, "the device lacks dynamicRendering, synchronization2, timelineSemaphore or "
311 "separateDepthStencilLayouts\n"); 331 "separateDepthStencilLayouts\n");
312 return DeviceStatus::unavailable; 332 return DeviceStatus::unavailable;
@@ -332,14 +352,8 @@ public:
332 VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT}; 352 VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT};
333 enable_conditional.conditionalRendering = VK_TRUE; 353 enable_conditional.conditionalRendering = VK_TRUE;
334 354
335 VkPhysicalDeviceVulkan13Features enable13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES,
336 conditional_rendering ? &enable_conditional : nullptr};
337 enable13.dynamicRendering = VK_TRUE;
338 enable13.synchronization2 = VK_TRUE;
339 enable13.subgroupSizeControl = features13.subgroupSizeControl;
340 enable13.computeFullSubgroups = features13.computeFullSubgroups;
341 leonida::query_subgroup_size_caps(instance_fn<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2"), 355 leonida::query_subgroup_size_caps(instance_fn<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2"),
342 physical, features13.subgroupSizeControl, features13.computeFullSubgroups, 356 physical, v13_.subgroup_size_control, v13_.compute_full_subgroups,
343 subgroup); 357 subgroup);
344 std::printf("subgroup sizes: %u..%u (default %u), requirable in stages 0x%x, subgroupSizeControl %s, " 358 std::printf("subgroup sizes: %u..%u (default %u), requirable in stages 0x%x, subgroupSizeControl %s, "
345 "computeFullSubgroups %s\n", 359 "computeFullSubgroups %s\n",
@@ -347,7 +361,8 @@ public:
347 subgroup.subgroup_size_control ? "on" : "off", subgroup.compute_full_subgroups ? "on" : "off"); 361 subgroup.subgroup_size_control ? "on" : "off", subgroup.compute_full_subgroups ? "on" : "off");
348 // shaderDrawParameters, where available: translated vertex shaders will read BaseVertex and BaseInstance once PR 436 362 // shaderDrawParameters, where available: translated vertex shaders will read BaseVertex and BaseInstance once PR 436
349 // (zero-based VS ids) is in; harmless before. 363 // (zero-based VS ids) is in; harmless before.
350 VkPhysicalDeviceVulkan11Features enable11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES, &enable13}; 364 VkPhysicalDeviceVulkan11Features enable11{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES,
365 v13_.enable(conditional_rendering ? &enable_conditional : nullptr)};
351 enable11.shaderDrawParameters = features11.shaderDrawParameters; 366 enable11.shaderDrawParameters = features11.shaderDrawParameters;
352 VkPhysicalDeviceVulkan12Features enable12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &enable11}; 367 VkPhysicalDeviceVulkan12Features enable12{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, &enable11};
353 enable12.timelineSemaphore = VK_TRUE; 368 enable12.timelineSemaphore = VK_TRUE;
@@ -374,7 +389,8 @@ public:
374 enable12.samplerFilterMinmax = sampler_filter_minmax; 389 enable12.samplerFilterMinmax = sampler_filter_minmax;
375 enable12.bufferDeviceAddress = VK_TRUE; 390 enable12.bufferDeviceAddress = VK_TRUE;
376 391
377 const float priority = 1.0f; 392 const std::uint32_t graphics_count = std::max(1u, std::min(queue_count_wanted, family_queue_count));
393 const std::vector<float> priority(graphics_count, 1.0f);
378 { 394 {
379 std::uint32_t family_count = 0; 395 std::uint32_t family_count = 0;
380 families_of(physical, &family_count, nullptr); 396 families_of(physical, &family_count, nullptr);
@@ -394,8 +410,8 @@ public:
394 if (seen) continue; 410 if (seen) continue;
395 VkDeviceQueueCreateInfo q{VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO}; 411 VkDeviceQueueCreateInfo q{VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO};
396 q.queueFamilyIndex = f; 412 q.queueFamilyIndex = f;
397 q.queueCount = 1; 413 q.queueCount = f == family ? graphics_count : 1;
398 q.pQueuePriorities = &priority; 414 q.pQueuePriorities = priority.data();
399 queue_infos.push_back(q); 415 queue_infos.push_back(q);
400 sharing_.push_back(f); 416 sharing_.push_back(f);
401 } 417 }
@@ -424,8 +440,8 @@ public:
424 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query); 440 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query);
425 image_view_min_lod = min_lod.minLod == VK_TRUE; 441 image_view_min_lod = min_lod.minLod == VK_TRUE;
426 if (image_view_min_lod) { 442 if (image_view_min_lod) {
427 min_lod.pNext = enable13.pNext; 443 min_lod.pNext = *v13_.next();
428 enable13.pNext = &min_lod; 444 *v13_.next() = &min_lod;
429 } 445 }
430 } 446 }
431 VkPhysicalDeviceHostImageCopyFeaturesEXT host_copy{ 447 VkPhysicalDeviceHostImageCopyFeaturesEXT host_copy{
@@ -438,8 +454,8 @@ public:
438 } 454 }
439 const char* host_image_copy_name = VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME; 455 const char* host_image_copy_name = VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME;
440 if (host_image_copy) { 456 if (host_image_copy) {
441 host_copy.pNext = enable13.pNext; // after the conditional rendering features, if any 457 host_copy.pNext = *v13_.next(); // after the conditional rendering features, if any
442 enable13.pNext = &host_copy; 458 *v13_.next() = &host_copy;
443 } 459 }
444 460
445#ifdef VK_KHR_SHADER_FMA_EXTENSION_NAME 461#ifdef VK_KHR_SHADER_FMA_EXTENSION_NAME
@@ -452,8 +468,8 @@ public:
452 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query); 468 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query);
453 shader_fma = fma_features.shaderFmaFloat32 == VK_TRUE; 469 shader_fma = fma_features.shaderFmaFloat32 == VK_TRUE;
454 if (shader_fma) { 470 if (shader_fma) {
455 fma_features.pNext = enable13.pNext; 471 fma_features.pNext = *v13_.next();
456 enable13.pNext = &fma_features; 472 *v13_.next() = &fma_features;
457 } 473 }
458 } 474 }
459#endif 475#endif
@@ -467,6 +483,7 @@ public:
467 device_info.pEnabledFeatures = &enable; 483 device_info.pEnabledFeatures = &enable;
468 enabled = enable; 484 enabled = enable;
469 std::vector<const char*> device_extensions; 485 std::vector<const char*> device_extensions;
486 v13_.add_extensions(device_extensions);
470 if (image_view_min_lod) device_extensions.push_back(VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME); 487 if (image_view_min_lod) device_extensions.push_back(VK_EXT_IMAGE_VIEW_MIN_LOD_EXTENSION_NAME);
471 if (conditional_rendering) device_extensions.push_back(conditional_extension); 488 if (conditional_rendering) device_extensions.push_back(conditional_extension);
472 if (host_image_copy) device_extensions.push_back(host_image_copy_name); 489 if (host_image_copy) device_extensions.push_back(host_image_copy_name);
@@ -487,8 +504,8 @@ public:
487 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &swapchain_m1}; 504 VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &swapchain_m1};
488 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query); 505 instance_fn<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2")(physical, &query);
489 if (swapchain_m1.swapchainMaintenance1 == VK_TRUE) { 506 if (swapchain_m1.swapchainMaintenance1 == VK_TRUE) {
490 swapchain_m1.pNext = enable13.pNext; 507 swapchain_m1.pNext = *v13_.next();
491 enable13.pNext = &swapchain_m1; 508 *v13_.next() = &swapchain_m1;
492 device_extensions.push_back(name); 509 device_extensions.push_back(name);
493 swapchain_maintenance1 = true; 510 swapchain_maintenance1 = true;
494 } 511 }
@@ -503,7 +520,10 @@ public:
503 result = instance_fn<PFN_vkCreateDevice>("vkCreateDevice")(physical, &device_info, nullptr, &device); 520 result = instance_fn<PFN_vkCreateDevice>("vkCreateDevice")(physical, &device_info, nullptr, &device);
504 if (result != VK_SUCCESS) return failure("vkCreateDevice", result); 521 if (result != VK_SUCCESS) return failure("vkCreateDevice", result);
505 device_proc = instance_fn<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr"); 522 device_proc = instance_fn<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
506 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, family, 0, &queue); 523 queues.resize(graphics_count);
524 for (std::uint32_t i = 0; i < graphics_count; ++i)
525 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, family, i, &queues[i]);
526 queue = queues[0];
507 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, compute_family, 0, &compute_queue); 527 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, compute_family, 0, &compute_queue);
508 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, copy_family, 0, &copy_queue); 528 fn<PFN_vkGetDeviceQueue>("vkGetDeviceQueue")(device, copy_family, 0, &copy_queue);
509 instance_fn<PFN_vkGetPhysicalDeviceMemoryProperties>("vkGetPhysicalDeviceMemoryProperties")(physical, 529 instance_fn<PFN_vkGetPhysicalDeviceMemoryProperties>("vkGetPhysicalDeviceMemoryProperties")(physical,
@@ -667,6 +687,7 @@ private:
667 VkDebugUtilsMessengerEXT messenger_ = VK_NULL_HANDLE; 687 VkDebugUtilsMessengerEXT messenger_ = VK_NULL_HANDLE;
668 VkCommandPool pool_ = VK_NULL_HANDLE; 688 VkCommandPool pool_ = VK_NULL_HANDLE;
669 VkPhysicalDeviceMemoryProperties memory_{}; 689 VkPhysicalDeviceMemoryProperties memory_{};
690 leonida::Vulkan13Features v13_; // the chosen device's dynamicRendering/synchronization2 path
670 std::vector<std::pair<VkImage, VkDeviceMemory>> images_; 691 std::vector<std::pair<VkImage, VkDeviceMemory>> images_;
671 std::vector<std::pair<VkBuffer, VkDeviceMemory>> buffers_; 692 std::vector<std::pair<VkBuffer, VkDeviceMemory>> buffers_;
672}; 693};
diff --git a/runtime/test/vk_xdxr_build_test.cpp b/runtime/test/vk_xdxr_build_test.cpp
index 6f354b2b2..1f4686869 100644
--- a/runtime/test/vk_xdxr_build_test.cpp
+++ b/runtime/test/vk_xdxr_build_test.cpp
@@ -6,7 +6,8 @@
6// 6//
7// Cases: one triangle; five (two levels); 1000 random triangles; an indexed R16 grid with a 16-byte vertex stride; 7// Cases: one triangle; five (two levels); 1000 random triangles; an indexed R16 grid with a 16-byte vertex stride;
8// R32 indices with R32G32 vertices; a geometry transform; two geometries with an inactive (NaN) triangle; no 8// R32 indices with R32G32 vertices; a geometry transform; two geometries with an inactive (NaN) triangle; no
9// triangles; 5000 triangles (many radix-sort tiles); updates (refits) in place and into another buffer; a TLAS of four instances (rotated and scaled, one with mask 0, one with no BLAS). 9// triangles; 5000 triangles (many radix-sort tiles); updates (refits) in place and into another buffer; clones and a
10// compaction (CopyRaytracingAccelerationStructure) with the postbuild size; a TLAS of four instances (rotated and scaled, one with mask 0, one with no BLAS).
10// Exit 77 when there is no Vulkan device with bufferDeviceAddress. 11// Exit 77 when there is no Vulkan device with bufferDeviceAddress.
11// `vk_xdxr_build_test <out dir> <triangles>` instead times BLAS builds of that many random triangles (wall clock of 12// `vk_xdxr_build_test <out dir> <triangles>` instead times BLAS builds of that many random triangles (wall clock of
12// one submission each, after one warm-up; result and scratch in device-local memory), then in-place updates 13// one submission each, after one warm-up; result and scratch in device-local memory), then in-place updates
@@ -431,6 +432,67 @@ int main(int argc, char** argv) {
431 } 432 }
432 json2 += "]}\n"; 433 json2 += "]}\n";
433 EXPECT(write_file(dir + "/tlas_refit.json", json2.data(), json2.size())); 434 EXPECT(write_file(dir + "/tlas_refit.json", json2.data(), json2.size()));
435
436 // CopyRaytracingAccelerationStructure: a clone of blas_random, its COMPACTED_SIZE (postbuild), a compaction into
437 // a buffer of exactly that size, and a clone of the refitted TLAS. The copies are position-independent.
438 {
439 XdxrLayout blas_layout;
440 EXPECT(blas_layout.compute(1000, false));
441 Buffer clone = make(gpu, blas_layout.size + 256), info = make(gpu, 16);
442 EXPECT(clone.buffer && info.buffer);
443 const std::uint64_t clone_at = (clone.address + 255) & ~std::uint64_t(255);
444 std::memset(info.map, 0xab, 16);
445 EXPECT(gpu.run([&](VkCommandBuffer cb) {
446 const bool ok = builder.record_copy(cb, random.address, clone_at, blas_layout.size) &&
447 builder.record_postbuild(cb, random.address, info.address) &&
448 builder.record_postbuild(cb, clone_at, info.address + 8);
449 barrier_to_host(gpu, cb);
450 return ok;
451 }));
452 std::uint64_t compacted = 0, clone_size = 0;
453 std::memcpy(&compacted, info.map, 8);
454 std::memcpy(&clone_size, static_cast<char*>(info.map) + 8, 8);
455 EXPECT(compacted == blas_layout.size); // a build is exactly its layout's size
456 EXPECT(clone_size == compacted);
457 auto dump_blas = [&](const std::string& name, const Buffer& b, std::uint64_t at, std::size_t bytes) {
458 const std::string j = "{\"kind\": \"blas\", \"address\": " + std::to_string(at) +
459 ", \"triangles\": " + tris_json(random.tris) + "}\n";
460 return write_file(dir + "/" + name + ".bin", static_cast<const char*>(b.map) + (at - b.address), bytes) &&
461 write_file(dir + "/" + name + ".json", j.data(), j.size());
462 };
463 EXPECT(dump_blas("blas_clone", clone, clone_at, blas_layout.size));
464 // COMPACT into exactly the compacted size; a guard word after it must survive
465 Buffer packed = make(gpu, std::size_t(compacted) + 256 + 4);
466 EXPECT(packed.buffer);
467 const std::uint64_t packed_at = (packed.address + 255) & ~std::uint64_t(255);
468 const std::uint32_t guard = 0x600dc0deu;
469 std::memcpy(static_cast<char*>(packed.map) + (packed_at - packed.address) + compacted, &guard, 4);
470 EXPECT(gpu.run([&](VkCommandBuffer cb) {
471 const bool ok = builder.record_copy(cb, clone_at, packed_at, compacted + 4); // more room than needed
472 barrier_to_host(gpu, cb);
473 return ok;
474 }));
475 std::uint32_t after = 0;
476 std::memcpy(&after, static_cast<char*>(packed.map) + (packed_at - packed.address) + compacted, 4);
477 EXPECT(after == guard); // the copy stops at the source's own size
478 EXPECT(dump_blas("blas_compacted", packed, packed_at, std::size_t(compacted)));
479
480 Buffer tclone = make(gpu, layout.size + 256);
481 EXPECT(tclone.buffer);
482 const std::uint64_t tclone_at = (tclone.address + 255) & ~std::uint64_t(255);
483 EXPECT(gpu.run([&](VkCommandBuffer cb) {
484 const bool ok = builder.record_copy(cb, base, tclone_at, layout.size);
485 barrier_to_host(gpu, cb);
486 return ok;
487 }));
488 EXPECT(write_file(dir + "/tlas_refit_clone.bin", static_cast<const char*>(tclone.map) + (tclone_at - tclone.address),
489 layout.size));
490 std::string json3 = json2;
491 json3.replace(json3.find(std::to_string(base)), std::to_string(base).size(), std::to_string(tclone_at));
492 EXPECT(write_file(dir + "/tlas_refit_clone.json", json3.data(), json3.size()));
493 std::printf("copies: blas_clone, blas_compacted (%llu bytes), tlas_refit_clone\n",
494 static_cast<unsigned long long>(compacted));
495 }
434 std::printf("tlas: %u instances, %u bytes\nvk_xdxr_build_test: built every case\n", count, layout.size); 496 std::printf("tlas: %u instances, %u bytes\nvk_xdxr_build_test: built every case\n", count, layout.size);
435 return 0; 497 return 0;
436} 498}
diff --git a/runtime/test/xgameruntime_test.cpp b/runtime/test/xgameruntime_test.cpp
index ac36f40d9..8f5057662 100644
--- a/runtime/test/xgameruntime_test.cpp
+++ b/runtime/test/xgameruntime_test.cpp
@@ -51,8 +51,36 @@ using AsyncCompleteFn = void(__stdcall*)(XAsyncBlock*, HRESULT, size_t);
51using AsyncResultSizeFn = HRESULT(__stdcall*)(XAsyncBlock*, size_t*); 51using AsyncResultSizeFn = HRESULT(__stdcall*)(XAsyncBlock*, size_t*);
52using AsyncResultFn = HRESULT(__stdcall*)(XAsyncBlock*, const void*, size_t, void*, size_t*); 52using AsyncResultFn = HRESULT(__stdcall*)(XAsyncBlock*, const void*, size_t, void*, size_t*);
53 53
54struct XVersion {
55 union {
56 struct {
57 uint16_t major;
58 uint16_t minor;
59 uint16_t build;
60 uint16_t revision;
61 };
62 uint64_t Value;
63 };
64};
65static_assert(sizeof(XVersion) == 8, "XVersion must be 8 bytes per GDK spec");
66
67struct XSystemAnalyticsInfo {
68 XVersion osVersion;
69 XVersion hostingOsVersion;
70 char family[64];
71 char form[64];
72};
73static_assert(sizeof(XSystemAnalyticsInfo) == 144, "XSystemAnalyticsInfo must be 144 bytes per GDK spec");
74
75using AnalyticsInfoFn = XSystemAnalyticsInfo(__stdcall*)();
76using PackageIdentifierFn = HRESULT(__stdcall*)(size_t, char*);
77using PackageMountPathFn = HRESULT(__stdcall*)(void*, size_t, char*);
78using PackagedProcessFn = bool(__stdcall*)();
79
54const char* const kNames[] = { 80const char* const kNames[] = {
55 "XGameRuntimeInitialize", "XGameRuntimeUninitialize", "XSystemGetDeviceType", "XSystemGetConsoleId", 81 "XGameRuntimeInitialize", "XGameRuntimeUninitialize", "XSystemGetDeviceType", "XSystemGetConsoleId",
82 "XSystemGetAnalyticsInfo", "XPackageGetCurrentProcessPackageIdentifier", "XPackageGetMountPath",
83 "XPackageIsPackagedProcess",
56 "XTaskQueueCreate", "XTaskQueueCreateComposite", "XTaskQueueGetPort", "XTaskQueueDuplicateHandle", 84 "XTaskQueueCreate", "XTaskQueueCreateComposite", "XTaskQueueGetPort", "XTaskQueueDuplicateHandle",
57 "XTaskQueueCloseHandle", "XTaskQueueTerminate", "XTaskQueueDispatch", "XTaskQueueSubmitCallback", 85 "XTaskQueueCloseHandle", "XTaskQueueTerminate", "XTaskQueueDispatch", "XTaskQueueSubmitCallback",
58 "XTaskQueueSubmitDelayedCallback", "XTaskQueueRegisterWaiter", "XTaskQueueUnregisterWaiter", 86 "XTaskQueueSubmitDelayedCallback", "XTaskQueueRegisterWaiter", "XTaskQueueUnregisterWaiter",
@@ -182,6 +210,89 @@ void check_run_time_load() {
182 void* out = reinterpret_cast<void*>(1); 210 void* out = reinterpret_cast<void*>(1);
183 check(query(&some_class, some_class, &out) == static_cast<HRESULT>(0x80070032) && out == nullptr, 211 check(query(&some_class, some_class, &out) == static_cast<HRESULT>(0x80070032) && out == nullptr,
184 "QueryApiImpl refuses a class it doesn't provide yet (HRESULT 0x80070032) and clears the out pointer"); 212 "QueryApiImpl refuses a class it doesn't provide yet (HRESULT 0x80070032) and clears the out pointer");
213
214 // XThreadingImpl and XErrorImpl, driven the way xgameruntime.lib's thunks in the package's DLLs do: QueryApiImpl
215 // with the class id as both ids, one vtable slot with `this` first, then Release (slot 2).
216 const GUID threading = {0x073b7dcb, 0x1fcf, 0x4030, {0x94, 0xbe, 0xe3, 0xc9, 0xeb, 0x62, 0x34, 0x28}};
217 const GUID error_cls = {0x8ca467f7, 0x22e8, 0x4096, {0x84, 0x56, 0xbb, 0x8a, 0xa1, 0x3f, 0x79, 0xd8}};
218 using Fn = void*;
219 auto slot = [](void* obj, int index) { return (*static_cast<Fn* const*>(obj))[index]; };
220 auto release = [&](void* obj) { reinterpret_cast<ULONG(STDMETHODCALLTYPE*)(void*)>(slot(obj, 2))(obj); };
221 auto get = [&](const GUID& cls) {
222 void* p = nullptr;
223 return query(&cls, cls, &p) == S_OK ? p : nullptr;
224 };
225 void* t = get(threading);
226 check(t != nullptr, "QueryApiImpl hands out XThreadingImpl for its class id");
227 if (t) {
228 void* again = get(threading);
229 check(again == t, "XThreadingImpl is one process-wide object");
230 release(again);
231 XTaskQueueHandle queue = nullptr;
232 using Create = HRESULT(STDMETHODCALLTYPE*)(void*, XTaskQueueDispatchMode, XTaskQueueDispatchMode,
233 XTaskQueueHandle*);
234 check(reinterpret_cast<Create>(slot(t, 12))(t, XTaskQueueDispatchMode::Manual, XTaskQueueDispatchMode::Manual,
235 &queue) == S_OK && queue,
236 "slot 12 is XTaskQueueCreate");
237 static std::atomic<int> s_ran{0};
238 using Submit = HRESULT(STDMETHODCALLTYPE*)(void*, XTaskQueueHandle, XTaskQueuePort, void*,
239 XTaskQueueCallback*);
240 XTaskQueueCallback* cb = [](void* ctx, bool canceled) {
241 if (!canceled) static_cast<std::atomic<int>*>(ctx)->fetch_add(1);
242 };
243 check(reinterpret_cast<Submit>(slot(t, 18))(t, queue, XTaskQueuePort::Work, &s_ran, cb) == S_OK,
244 "slot 18 is XTaskQueueSubmitCallback");
245 using Dispatch = bool(STDMETHODCALLTYPE*)(void*, XTaskQueueHandle, XTaskQueuePort, uint32_t);
246 check(reinterpret_cast<Dispatch>(slot(t, 16))(t, queue, XTaskQueuePort::Work, 0) && s_ran.load() == 1,
247 "slot 16 is XTaskQueueDispatch: the callback ran on the work port");
248 XTaskQueueHandle dup = nullptr;
249 using Dup = HRESULT(STDMETHODCALLTYPE*)(void*, XTaskQueueHandle, XTaskQueueHandle*);
250 check(reinterpret_cast<Dup>(slot(t, 15))(t, queue, &dup) == S_OK && dup,
251 "slot 15 is XTaskQueueDuplicateHandle");
252 using Close = void(STDMETHODCALLTYPE*)(void*, XTaskQueueHandle);
253 reinterpret_cast<Close>(slot(t, 17))(t, dup);
254 reinterpret_cast<Close>(slot(t, 17))(t, queue);
255 using SetSensitive = HRESULT(STDMETHODCALLTYPE*)(void*, bool);
256 using IsSensitive = bool(STDMETHODCALLTYPE*)(void*);
257 check(reinterpret_cast<SetSensitive>(slot(t, 27))(t, true) == S_OK &&
258 reinterpret_cast<IsSensitive>(slot(t, 30))(t) &&
259 reinterpret_cast<SetSensitive>(slot(t, 27))(t, false) == S_OK &&
260 !reinterpret_cast<IsSensitive>(slot(t, 30))(t),
261 "slots 27 and 30 set and read this thread's time-sensitive flag");
262 void* unk = nullptr;
263 const GUID iunknown = {0, 0, 0, {0xc0, 0, 0, 0, 0, 0, 0, 0x46}};
264 using QI = HRESULT(STDMETHODCALLTYPE*)(void*, REFIID, void**);
265 check(reinterpret_cast<QI>(slot(t, 0))(t, iunknown, &unk) == S_OK && unk == t &&
266 reinterpret_cast<QI>(slot(t, 0))(t, error_cls, &unk) == E_NOINTERFACE && !unk,
267 "QueryInterface answers IUnknown and the class id, not another class");
268 release(t);
269 release(t);
270 }
271 void* e = get(error_cls);
272 check(e != nullptr, "QueryApiImpl hands out XErrorImpl for its class id");
273 if (e) {
274 struct Seen {
275 HRESULT hr;
276 char msg[32];
277 } seen{};
278 using Callback = bool(CALLBACK*)(HRESULT, const char*, void*);
279 Callback on_error = [](HRESULT hr, const char* msg, void* ctx) {
280 auto* s = static_cast<Seen*>(ctx);
281 s->hr = hr;
282 strncpy_s(s->msg, msg ? msg : "", _TRUNCATE);
283 return true;
284 };
285 using SetCallback = void(STDMETHODCALLTYPE*)(void*, Callback, void*);
286 using Report = void(STDMETHODCALLTYPE*)(void*, HRESULT, const char*);
287 reinterpret_cast<SetCallback>(slot(e, 4))(e, on_error, &seen);
288 reinterpret_cast<Report>(slot(e, 3))(e, E_FAIL, "offline test");
289 check(seen.hr == E_FAIL && std::strcmp(seen.msg, "offline test") == 0,
290 "slot 3 is XErrorReport and reaches the callback slot 4 (XErrorSetCallback) set");
291 reinterpret_cast<SetCallback>(slot(e, 4))(e, nullptr, nullptr);
292 using SetOptions = HRESULT(STDMETHODCALLTYPE*)(void*, uint32_t, uint32_t);
293 check(reinterpret_cast<SetOptions>(slot(e, 5))(e, 0, 0) == S_OK, "slot 5 is XErrorSetOptions");
294 release(e);
295 }
185 check(uninit_api() == S_OK, "UninitializeApiImpl succeeds"); 296 check(uninit_api() == S_OK, "UninitializeApiImpl succeeds");
186 297
187 HMODULE k32 = load_w(L"kernel32.dll"); 298 HMODULE k32 = load_w(L"kernel32.dll");
@@ -229,6 +340,53 @@ int main() {
229 check(console_id(sizeof(id), id, &used) == S_OK && used == 39 && std::strlen(id) == 38, 340 check(console_id(sizeof(id), id, &used) == S_OK && used == 39 && std::strlen(id) == 38,
230 "XSystemGetConsoleId fills 39 bytes (38 characters and the terminator)"); 341 "XSystemGetConsoleId fills 39 bytes (38 characters and the terminator)");
231 342
343 auto analytics_info = get<AnalyticsInfoFn>("XSystemGetAnalyticsInfo");
344 XSystemAnalyticsInfo info = analytics_info();
345 check(info.osVersion.major == 10 && info.osVersion.minor == 0 && info.osVersion.build == 22000 &&
346 info.osVersion.revision == 0,
347 "XSystemGetAnalyticsInfo returns osVersion 10.0.22000.0");
348 check(info.hostingOsVersion.major == 10 && info.hostingOsVersion.minor == 0 &&
349 info.hostingOsVersion.build == 22000 && info.hostingOsVersion.revision == 0,
350 "XSystemGetAnalyticsInfo returns hostingOsVersion 10.0.22000.0");
351 check(std::strcmp(info.family, "Xbox") == 0, "XSystemGetAnalyticsInfo returns family 'Xbox'");
352 check(std::strcmp(info.form, "Xbox Series X") == 0, "XSystemGetAnalyticsInfo returns form 'Xbox Series X'");
353
354 auto package_id = get<PackageIdentifierFn>("XPackageGetCurrentProcessPackageIdentifier");
355 check(package_id(0, nullptr) == E_INVALIDARG, "XPackageGetCurrentProcessPackageIdentifier rejects null buffer and size 0");
356 char pkg_id[64] = {};
357 check(package_id(0, pkg_id) == E_INVALIDARG, "XPackageGetCurrentProcessPackageIdentifier rejects size 0 with buffer");
358 check(package_id(10, nullptr) == E_INVALIDARG, "XPackageGetCurrentProcessPackageIdentifier rejects null pointer with size");
359 check(package_id(16, pkg_id) == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER),
360 "XPackageGetCurrentProcessPackageIdentifier rejects insufficient buffer");
361 check(package_id(sizeof(pkg_id), pkg_id) == S_OK && std::strlen(pkg_id) == 32,
362 "XPackageGetCurrentProcessPackageIdentifier fills 33-byte package identifier");
363
364 SetEnvironmentVariableA("LEONIDA_PACKAGE_ID", "CustomTestPackageId_123456789012");
365 check(package_id(sizeof(pkg_id), pkg_id) == S_OK &&
366 std::strcmp(pkg_id, "CustomTestPackageId_123456789012") == 0,
367 "XPackageGetCurrentProcessPackageIdentifier respects LEONIDA_PACKAGE_ID override");
368 SetEnvironmentVariableA("LEONIDA_PACKAGE_ID", nullptr);
369
370 auto mount_path = get<PackageMountPathFn>("XPackageGetMountPath");
371 check(mount_path(nullptr, 0, nullptr) == E_INVALIDARG, "XPackageGetMountPath rejects null buffer and size 0");
372 char mnt_path[MAX_PATH] = {};
373 check(mount_path(nullptr, 0, mnt_path) == E_INVALIDARG, "XPackageGetMountPath rejects size 0 with buffer");
374 check(mount_path(nullptr, 10, nullptr) == E_INVALIDARG, "XPackageGetMountPath rejects null pointer with size");
375
376 SetEnvironmentVariableA("LEONIDA_GAME_DIR", "C:\\LeonidaGameDir");
377 check(mount_path(nullptr, 5, mnt_path) == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER),
378 "XPackageGetMountPath rejects insufficient buffer");
379 check(mount_path(nullptr, sizeof(mnt_path), mnt_path) == S_OK &&
380 std::strcmp(mnt_path, "C:\\LeonidaGameDir") == 0,
381 "XPackageGetMountPath returns configured game directory");
382 SetEnvironmentVariableA("LEONIDA_GAME_DIR", nullptr);
383
384 auto is_packaged = get<PackagedProcessFn>("XPackageIsPackagedProcess");
385 check(is_packaged() == true, "XPackageIsPackagedProcess returns true by default");
386 SetEnvironmentVariableA("LEONIDA_PACKAGED", "0");
387 check(is_packaged() == false, "XPackageIsPackagedProcess respects LEONIDA_PACKAGED=0 override");
388 SetEnvironmentVariableA("LEONIDA_PACKAGED", nullptr);
389
232 // Work on the thread pool, completions dispatched by the "game loop" on this thread. 390 // Work on the thread pool, completions dispatched by the "game loop" on this thread.
233 auto create = get<QueueCreateFn>("XTaskQueueCreate"); 391 auto create = get<QueueCreateFn>("XTaskQueueCreate");
234 auto close = get<QueueCloseFn>("XTaskQueueCloseHandle"); 392 auto close = get<QueueCloseFn>("XTaskQueueCloseHandle");