tests: Add test for how we handle DXIL embedded subobjects.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2022-05-06 16:13:31 +02:00
parent f66e1b4646
commit cf67daf4b1
2 changed files with 450 additions and 2 deletions

View File

@ -528,6 +528,265 @@ static D3D12_SHADER_BYTECODE get_dummy_raygen_rt_lib(void)
return code;
}
static D3D12_SHADER_BYTECODE get_embedded_subobject_rt_lib(void)
{
static const BYTE rt_lib_dxil[] =
{
#if 0
RWStructuredBuffer<float> RW1 : register(u0);
RWStructuredBuffer<float> RW2 : register(u1);
RWStructuredBuffer<float> RW3 : register(u2);
RWStructuredBuffer<float> RW4 : register(u3);
RaytracingShaderConfig config = { 4, 8 };
RaytracingPipelineConfig pconfig = { 1 };
GlobalRootSignature grs = { "UAV(u0)" };
GlobalRootSignature grs_dummy = { "UAV(u10)" };
LocalRootSignature lrs_raygen = { "UAV(u1)" };
LocalRootSignature lrs_other1 = { "UAV(u2)" };
LocalRootSignature lrs_other2 = { "UAV(u3)" };
TriangleHitGroup thg = { "", "RayClosestHit" };
ProceduralPrimitiveHitGroup phg = { "", "RayClosestHitAABB", "RayIntersect" };
SubobjectToExportsAssociation exports1 = { "grs", "thg;phg;RayGen" };
SubobjectToExportsAssociation exports2 = { "lrs_raygen", "RayGen" };
SubobjectToExportsAssociation exports3 = { "lrs_other1", "thg" };
SubobjectToExportsAssociation exports4 = { "lrs_other2", "phg" };
struct Payload { float i; };
struct Attr { float v; };
[shader("closesthit")]
void RayClosestHit(inout Payload p, BuiltInTriangleIntersectionAttributes a)
{
p.i = RW3[0] + RW1[0];
}
[shader("closesthit")]
void RayClosestHitAABB(inout Payload p, Attr a)
{
p.i = RW4[0] + a.v + RW1[0];
}
[shader("intersection")]
void RayIntersect()
{
Attr v;
ReportHit(float(RW4[0]), 0, v);
}
[shader("raygeneration")]
void RayGen()
{
RW1[0] = 0;
RW2[0] = 0;
}
#endif
0x44, 0x58, 0x42, 0x43, 0x70, 0x9b, 0x56, 0x9a, 0x45, 0x30, 0x0d, 0x5a, 0x3b, 0x8b, 0x5a, 0xf0, 0xb8, 0xc9, 0x15, 0x14, 0x01, 0x00, 0x00, 0x00, 0x14, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0xa8, 0x05, 0x00, 0x00, 0xc4, 0x05, 0x00, 0x00, 0x53, 0x46, 0x49, 0x30, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x52, 0x44, 0x41, 0x54, 0x60, 0x05, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x74, 0x01, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0xc4, 0x02, 0x00, 0x00,
0x20, 0x03, 0x00, 0x00, 0x18, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x4c, 0x01, 0x00, 0x00, 0x00, 0x52, 0x57, 0x31, 0x00, 0x52, 0x57, 0x32, 0x00, 0x52, 0x57, 0x33, 0x00, 0x52, 0x57, 0x34,
0x00, 0x01, 0x3f, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x73, 0x74, 0x48, 0x69, 0x74, 0x40, 0x40, 0x59, 0x41, 0x58, 0x55, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x40, 0x40, 0x55,
0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x54, 0x72, 0x69, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x73, 0x40, 0x40, 0x40, 0x5a, 0x00, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x73, 0x74, 0x48, 0x69, 0x74, 0x00, 0x01, 0x3f, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x6f,
0x73, 0x65, 0x73, 0x74, 0x48, 0x69, 0x74, 0x41, 0x41, 0x42, 0x42, 0x40, 0x40, 0x59, 0x41, 0x58, 0x55, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x40, 0x40, 0x55, 0x41, 0x74, 0x74, 0x72, 0x40,
0x40, 0x40, 0x5a, 0x00, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x73, 0x74, 0x48, 0x69, 0x74, 0x41, 0x41, 0x42, 0x42, 0x00, 0x01, 0x3f, 0x52, 0x61, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x73, 0x65, 0x63, 0x74, 0x40, 0x40, 0x59, 0x41, 0x58, 0x58, 0x5a, 0x00, 0x52, 0x61, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x65, 0x63, 0x74, 0x00, 0x01, 0x3f, 0x52, 0x61, 0x79, 0x47, 0x65,
0x6e, 0x40, 0x40, 0x59, 0x41, 0x58, 0x58, 0x5a, 0x00, 0x52, 0x61, 0x79, 0x47, 0x65, 0x6e, 0x00, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x00, 0x70, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x00, 0x67,
0x72, 0x73, 0x00, 0x67, 0x72, 0x73, 0x5f, 0x64, 0x75, 0x6d, 0x6d, 0x79, 0x00, 0x6c, 0x72, 0x73, 0x5f, 0x72, 0x61, 0x79, 0x67, 0x65, 0x6e, 0x00, 0x6c, 0x72, 0x73, 0x5f, 0x6f, 0x74, 0x68, 0x65,
0x72, 0x31, 0x00, 0x6c, 0x72, 0x73, 0x5f, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x32, 0x00, 0x74, 0x68, 0x67, 0x00, 0x70, 0x68, 0x67, 0x00, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x31, 0x00, 0x65,
0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x32, 0x00, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x33, 0x00, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x34, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x88, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x03, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00,
0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x0a, 0x00, 0x68, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x0a, 0x00, 0xa6, 0x00, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00,
0xff, 0xff, 0xff, 0xff, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x63, 0x00, 0x08, 0x00,
0xc9, 0x00, 0x00, 0x00, 0xd9, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x60, 0x00, 0x07, 0x00, 0x02, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x03, 0x00, 0x00, 0x00, 0x1e, 0x01, 0x00, 0x00, 0x22, 0x01, 0x00, 0x00, 0xd9, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xd9, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1e, 0x01, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x22, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x24, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x24, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x06, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0xef, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0x13, 0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x1e, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x22, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x94, 0x00, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x26, 0x01, 0x00, 0x00, 0xef, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x00, 0x00, 0x00, 0x2f, 0x01, 0x00, 0x00, 0xfd, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x38, 0x01, 0x00, 0x00,
0x08, 0x01, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x41, 0x01, 0x00, 0x00, 0x13, 0x01, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x73, 0xfa, 0x93, 0x0b, 0xc7, 0x79, 0xdb, 0x00, 0x47, 0xbc, 0xdb,
0x5b, 0x62, 0x9d, 0x01, 0x44, 0x58, 0x49, 0x4c, 0x48, 0x0a, 0x00, 0x00, 0x63, 0x00, 0x06, 0x00, 0x92, 0x02, 0x00, 0x00, 0x44, 0x58, 0x49, 0x4c, 0x03, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
0x30, 0x0a, 0x00, 0x00, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0x89, 0x02, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x18, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0xc4, 0x10, 0x32, 0x14,
0x38, 0x08, 0x18, 0x4b, 0x0a, 0x32, 0x62, 0x88, 0x48, 0x90, 0x14, 0x20, 0x43, 0x46, 0x88, 0xa5, 0x00, 0x19, 0x32, 0x42, 0xe4, 0x48, 0x0e, 0x90, 0x11, 0x23, 0xc4, 0x50, 0x41, 0x51, 0x81, 0x8c,
0xe1, 0x83, 0xe5, 0x8a, 0x04, 0x31, 0x46, 0x06, 0x51, 0x18, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0x20, 0x00, 0x12, 0x60, 0xd9, 0x60, 0x08, 0x02, 0xb0, 0x00, 0xd4, 0x06, 0x62, 0xf8,
0xff, 0xff, 0xff, 0xff, 0x01, 0x90, 0x36, 0x18, 0x84, 0x00, 0x2c, 0x40, 0xb5, 0xc1, 0x28, 0xfe, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x24, 0xa0, 0xda, 0x40, 0x18, 0x04, 0x70, 0x06, 0x00, 0x00, 0x00,
0x49, 0x18, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x13, 0x86, 0x40, 0x18, 0x26, 0x0c, 0x01, 0x31, 0x4c, 0x08, 0x86, 0x09, 0x41, 0x31, 0x21, 0x30, 0x00, 0x00, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00,
0x40, 0x00, 0x00, 0x00, 0x32, 0x22, 0x88, 0x09, 0x20, 0x64, 0x85, 0x04, 0x13, 0x23, 0xa4, 0x84, 0x04, 0x13, 0x23, 0xe3, 0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x8c, 0x8c, 0x0b, 0x84, 0xc4, 0x4c,
0x10, 0x88, 0xc1, 0x0c, 0xc0, 0x4c, 0xdf, 0x38, 0xb0, 0x43, 0x38, 0xcc, 0xc3, 0x3c, 0xb8, 0x81, 0x2c, 0xdc, 0xc2, 0x2c, 0xd0, 0x83, 0x3c, 0xd4, 0xc3, 0x38, 0xd0, 0x43, 0x3d, 0xc8, 0x43, 0x39,
0x90, 0x83, 0x28, 0xd4, 0x83, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x03, 0x1f, 0x98, 0x03, 0x3b, 0xbc, 0x43, 0x38, 0xd0, 0x83, 0x1f, 0xa0, 0x00, 0xa0, 0x60, 0x04, 0xe0, 0x1c, 0x69, 0x8a, 0x28, 0x61,
0xf2, 0x53, 0x00, 0x5b, 0x1c, 0x60, 0x40, 0x01, 0x40, 0xc4, 0x30, 0x82, 0x00, 0x1c, 0x1b, 0x48, 0x53, 0x44, 0x09, 0x93, 0xbf, 0x51, 0xc8, 0x32, 0x89, 0x4d, 0x1b, 0x21, 0x40, 0x63, 0x2c, 0x84,
0xd8, 0x4c, 0x44, 0x24, 0x11, 0xc2, 0x84, 0x38, 0x8d, 0x36, 0x4d, 0x11, 0x12, 0x50, 0x13, 0x21, 0xa1, 0xc0, 0xa0, 0xa3, 0x0c, 0x43, 0x81, 0x50, 0x72, 0x8b, 0x34, 0x45, 0x94, 0x30, 0xf9, 0xda,
0x34, 0x45, 0x28, 0x00, 0x68, 0x29, 0xc3, 0x50, 0x30, 0xd4, 0x94, 0x60, 0xa0, 0x67, 0x8e, 0x00, 0x0c, 0x6e, 0x1a, 0x2e, 0x7f, 0xc2, 0x1e, 0x42, 0xf2, 0x57, 0x42, 0x5a, 0x89, 0xc9, 0x2f, 0x6e,
0x1b, 0x15, 0x00, 0x00, 0x00, 0xd1, 0x1c, 0x01, 0x42, 0xd3, 0x3d, 0xc3, 0xe5, 0x4f, 0xd8, 0x43, 0x48, 0x7e, 0x08, 0x34, 0xc3, 0x42, 0xa0, 0x80, 0x2a, 0x87, 0x14, 0x55, 0x51, 0x34, 0x45, 0x64,
0x95, 0x65, 0x88, 0xaa, 0x28, 0x02, 0x00, 0x00, 0x98, 0x22, 0xc2, 0xe6, 0x08, 0x82, 0x52, 0x68, 0x11, 0x10, 0x31, 0xb4, 0x95, 0xa1, 0x8a, 0x02, 0xea, 0x06, 0x02, 0xe6, 0x08, 0x40, 0x81, 0x00,
0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x72, 0xc0, 0x87, 0x74, 0x60, 0x87, 0x36, 0x68, 0x87, 0x79, 0x68, 0x03, 0x72, 0xc0, 0x87, 0x0d, 0xaf, 0x50, 0x0e, 0x6d, 0xd0, 0x0e, 0x7a, 0x50, 0x0e, 0x6d,
0x00, 0x0f, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e,
0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x10,
0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0xe0, 0x0e, 0x78,
0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x3a, 0x0f, 0x24, 0x90, 0x21, 0x23, 0x45, 0x44, 0x00, 0x1e, 0x00, 0x30, 0x0f, 0x00, 0x98, 0x07, 0x00, 0xcc,
0x03, 0x00, 0x1e, 0xf2, 0x24, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xe4, 0x69, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xc8, 0xf3, 0x00,
0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x90, 0xe7, 0x01, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x8f, 0x05, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x43, 0x1e, 0x0c, 0x08, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0x3c, 0x1b, 0x10, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x79,
0x3a, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x02, 0x01, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x14, 0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47,
0xc6, 0x04, 0x43, 0x8a, 0x4a, 0xa0, 0x0c, 0x8a, 0x61, 0x04, 0xa0, 0x30, 0x0a, 0xa1, 0x08, 0x0a, 0xa2, 0x28, 0xca, 0xa1, 0x14, 0x48, 0x1b, 0x01, 0x20, 0xb0, 0x40, 0x01, 0x11, 0x46, 0x00, 0x00,
0x79, 0x18, 0x00, 0x00, 0xaa, 0x00, 0x00, 0x00, 0x1a, 0x03, 0x4c, 0x90, 0x46, 0x02, 0x13, 0x44, 0x35, 0x18, 0x63, 0x0b, 0x73, 0x3b, 0x03, 0xb1, 0x2b, 0x93, 0x9b, 0x4b, 0x7b, 0x73, 0x03, 0x99,
0x71, 0xb9, 0x01, 0x41, 0xa1, 0x0b, 0x3b, 0x9b, 0x7b, 0x91, 0x2a, 0x62, 0x2a, 0x0a, 0x9a, 0x2a, 0xfa, 0x9a, 0xb9, 0x81, 0x79, 0x31, 0x4b, 0x73, 0x0b, 0x63, 0x4b, 0xd9, 0x10, 0x04, 0x13, 0x84,
0x88, 0x99, 0x20, 0x44, 0xcd, 0x06, 0x61, 0x20, 0x26, 0x08, 0x91, 0xb3, 0x41, 0x18, 0x0c, 0x0e, 0x6c, 0x69, 0x62, 0x1b, 0x06, 0xc4, 0x20, 0x26, 0x08, 0xd1, 0x33, 0x41, 0x10, 0x00, 0x0e, 0x52,
0x57, 0x31, 0x13, 0x84, 0x08, 0x9a, 0x20, 0x68, 0xd7, 0x04, 0x21, 0x8a, 0x36, 0x08, 0xc3, 0xb3, 0x61, 0x51, 0x16, 0x46, 0x51, 0x86, 0xc6, 0x71, 0x1c, 0x68, 0x82, 0x20, 0x04, 0x1c, 0xa4, 0xae,
0x64, 0x36, 0x2c, 0x83, 0x34, 0x29, 0xc3, 0xd0, 0x38, 0x8e, 0x03, 0x4d, 0x10, 0x22, 0x69, 0x82, 0x20, 0x08, 0x1c, 0xa4, 0xae, 0x66, 0x36, 0x2c, 0x95, 0x75, 0x29, 0xd5, 0xd0, 0x38, 0x8e, 0x03,
0x4d, 0x10, 0x84, 0x81, 0x83, 0xd4, 0x15, 0xcd, 0x86, 0x85, 0xc8, 0x34, 0x85, 0x18, 0x1a, 0xc7, 0x71, 0xa0, 0x0d, 0x44, 0x44, 0x61, 0xdb, 0x06, 0x02, 0xe0, 0x00, 0x60, 0x82, 0xa0, 0x10, 0x1b,
0x80, 0x0d, 0xc3, 0xf0, 0x7d, 0x1b, 0x86, 0xea, 0xfb, 0x36, 0x0c, 0xca, 0xf7, 0x6d, 0x18, 0xc0, 0x20, 0x0c, 0xc4, 0x60, 0x82, 0xe0, 0x14, 0x13, 0x04, 0xc8, 0xd8, 0x10, 0x80, 0xc1, 0x04, 0x01,
0x3a, 0x36, 0x24, 0x83, 0x37, 0x06, 0x64, 0x30, 0x06, 0x65, 0x60, 0x06, 0x67, 0x60, 0x06, 0x04, 0x26, 0x08, 0x60, 0x80, 0x6d, 0x10, 0x14, 0x35, 0xd8, 0x50, 0x00, 0x69, 0x00, 0x74, 0x6b, 0x40,
0x54, 0x08, 0xf8, 0x91, 0x0a, 0xcb, 0x1b, 0x62, 0x7b, 0x9b, 0x2b, 0x9b, 0xa3, 0x43, 0x4a, 0xa3, 0x03, 0x02, 0xca, 0x0a, 0xc2, 0xaa, 0x82, 0x0a, 0xcb, 0x63, 0x7b, 0x0b, 0x23, 0x03, 0x02, 0xaa,
0x12, 0xaa, 0x4b, 0x63, 0xa3, 0x4b, 0x72, 0xa3, 0x92, 0x4b, 0x0b, 0x73, 0x3b, 0x63, 0x2b, 0x4b, 0x72, 0xa3, 0x2b, 0x93, 0x9b, 0x2b, 0x1b, 0xa3, 0x4b, 0x7b, 0x73, 0x0b, 0xa2, 0xa3, 0x93, 0x4b,
0x13, 0xab, 0xa3, 0x2b, 0x9b, 0x03, 0x02, 0x02, 0xd2, 0x9a, 0x20, 0x44, 0xd3, 0x04, 0x21, 0xa2, 0x26, 0x08, 0x51, 0x35, 0x41, 0x88, 0xac, 0x0d, 0x81, 0xb2, 0x01, 0x71, 0x83, 0x37, 0x30, 0x1e,
0x38, 0x70, 0x83, 0x38, 0x90, 0x83, 0x0d, 0x85, 0xd7, 0x06, 0x00, 0x30, 0x07, 0x5c, 0x83, 0x80, 0x1f, 0xa9, 0xb0, 0xbc, 0x21, 0xb6, 0xb7, 0xb9, 0xb2, 0x39, 0x3a, 0xa4, 0x34, 0xba, 0xa0, 0x20,
0x21, 0x21, 0x20, 0xa0, 0xac, 0x20, 0xac, 0x2a, 0xa8, 0xb0, 0x3c, 0xb6, 0xb7, 0x30, 0x32, 0x20, 0xa0, 0xaa, 0x20, 0x3a, 0x3a, 0x39, 0x20, 0x20, 0x20, 0xad, 0x0d, 0x88, 0x1b, 0xbc, 0x81, 0xf1,
0xc0, 0xc1, 0x13, 0x07, 0x72, 0xb0, 0xa1, 0x20, 0x83, 0x3a, 0x00, 0x00, 0x3b, 0xe0, 0x13, 0xf0, 0x23, 0x15, 0x96, 0x77, 0x54, 0xe6, 0x06, 0x04, 0x94, 0x15, 0x84, 0x85, 0xa5, 0xb5, 0x81, 0x70,
0x03, 0x38, 0x88, 0x03, 0x39, 0xd8, 0x50, 0x9c, 0x01, 0x1e, 0x00, 0x40, 0x1e, 0xb0, 0x0a, 0xf8, 0x91, 0x0a, 0xcb, 0x4b, 0x72, 0xa3, 0x2b, 0x93, 0x9b, 0x2b, 0x1b, 0xa3, 0x03, 0x02, 0xca, 0x0a,
0xc2, 0xc2, 0xd2, 0xda, 0x40, 0xb8, 0x81, 0x1b, 0xc4, 0x81, 0x1c, 0x6c, 0x28, 0xca, 0x60, 0x0f, 0x00, 0x80, 0x0f, 0x58, 0x98, 0xb1, 0xbd, 0x85, 0xd1, 0xf1, 0x79, 0x6b, 0x73, 0x4b, 0x83, 0x7b,
0xa3, 0x2b, 0x73, 0xa3, 0x03, 0x19, 0x43, 0x0b, 0x93, 0x63, 0x34, 0x95, 0xd6, 0x06, 0xc7, 0x56, 0x06, 0x32, 0xf4, 0x32, 0xb4, 0xb2, 0x02, 0x42, 0x25, 0x14, 0x14, 0xb4, 0x21, 0x00, 0x85, 0x09,
0x02, 0x18, 0x64, 0x1b, 0x86, 0x3f, 0x08, 0x05, 0x51, 0xd8, 0x30, 0xf8, 0xc1, 0x28, 0x88, 0xc2, 0x86, 0x81, 0x14, 0x48, 0x41, 0x14, 0xaa, 0xb0, 0xb1, 0xd9, 0xb5, 0xb9, 0xa4, 0x91, 0x95, 0xb9,
0xd1, 0x4d, 0x09, 0x82, 0x2a, 0x64, 0x78, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x02, 0xa2, 0x09, 0x19, 0x9e, 0x8b, 0x5d, 0x18, 0x9b, 0x5d, 0x99, 0xdc, 0x94, 0xc0, 0xa8, 0x43,
0x86, 0xe7, 0x32, 0x87, 0x16, 0x46, 0x56, 0x26, 0xd7, 0xf4, 0x46, 0x56, 0xc6, 0x36, 0x25, 0x40, 0xca, 0x90, 0xe1, 0xb9, 0xc8, 0x95, 0xcd, 0xbd, 0xd5, 0xc9, 0x8d, 0x95, 0xcd, 0x4d, 0x09, 0xb8,
0x4a, 0x64, 0x78, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x82, 0x33, 0xa8, 0x43, 0x86, 0xe7, 0x52, 0xe6, 0x46, 0x27, 0x97, 0x07,
0xf5, 0x96, 0xe6, 0x46, 0x37, 0x37, 0xa5, 0x58, 0x83, 0x39, 0xb0, 0x83, 0x3c, 0xe0, 0x03, 0x00, 0x79, 0x18, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c, 0xc4, 0xe1, 0x1c, 0x66,
0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e, 0x33, 0x0c, 0x42, 0x1e,
0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c, 0x74, 0x70, 0x07, 0x7b,
0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e, 0x30, 0x0f, 0xe3, 0xf0,
0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4, 0x03, 0x3c, 0xbc, 0x83,
0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07, 0x76, 0x28, 0x07, 0x76,
0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5, 0xc0, 0x0e, 0xec, 0x30,
0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90, 0x43, 0x39, 0xc8, 0x43,
0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b, 0xb0, 0xc3, 0x8c, 0xc8,
0x21, 0x07, 0x7c, 0x70, 0x03, 0x72, 0x10, 0x87, 0x73, 0x70, 0x03, 0x7b, 0x08, 0x07, 0x79, 0x60, 0x87, 0x70, 0xc8, 0x87, 0x77, 0xa8, 0x07, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x71, 0x20, 0x00, 0x00,
0x62, 0x00, 0x00, 0x00, 0x05, 0x20, 0x06, 0x81, 0x9f, 0xf4, 0x1a, 0x03, 0x02, 0x67, 0xd6, 0x1f, 0x49, 0x7a, 0x9d, 0xd2, 0xe5, 0xf5, 0x31, 0xbd, 0x2e, 0x2f, 0x93, 0x85, 0x75, 0xb3, 0xb9, 0x2c,
0x07, 0x36, 0x81, 0xc0, 0x60, 0x05, 0x88, 0x41, 0xe0, 0x27, 0xbd, 0xca, 0x80, 0xc0, 0x99, 0xf5, 0x47, 0x92, 0x5e, 0xa7, 0x74, 0x79, 0x7d, 0x4c, 0xaf, 0xcb, 0xcb, 0x64, 0x61, 0xdd, 0x6c, 0x2e,
0xcb, 0x81, 0x4d, 0x20, 0x30, 0x58, 0x02, 0x62, 0x10, 0xf8, 0x49, 0xaf, 0x33, 0x20, 0x70, 0x66, 0xfd, 0x91, 0xa4, 0xd7, 0x29, 0x5d, 0x5e, 0x1f, 0xd3, 0xeb, 0xf2, 0x32, 0x59, 0x58, 0x37, 0x9b,
0xcb, 0x72, 0x60, 0x13, 0x08, 0x0c, 0xd6, 0x80, 0x18, 0x04, 0x7e, 0xd2, 0x2b, 0x0d, 0x08, 0x9c, 0x59, 0x7f, 0x24, 0xe9, 0x75, 0x4a, 0x97, 0xd7, 0xc7, 0xf4, 0xba, 0xbc, 0x4c, 0x16, 0xd6, 0xcd,
0xe6, 0xb2, 0x1c, 0xd8, 0x04, 0x02, 0x83, 0x45, 0x80, 0x0a, 0x81, 0x9f, 0x34, 0x9c, 0x1f, 0xb2, 0xdf, 0xf3, 0xf2, 0x9c, 0x8e, 0x4c, 0xd3, 0x81, 0xc0, 0x6c, 0x10, 0x5b, 0x85, 0x86, 0xf3, 0xec,
0x77, 0x98, 0x0c, 0x04, 0x56, 0x85, 0xf5, 0x34, 0x9b, 0x9e, 0x74, 0x53, 0xe5, 0xe9, 0xb0, 0xfb, 0xcc, 0x2e, 0x27, 0xdd, 0xf4, 0xb2, 0x7c, 0x5e, 0x1e, 0xd3, 0xd3, 0x6f, 0x77, 0x90, 0x4e, 0x97,
0xa7, 0xc5, 0x75, 0x7a, 0x79, 0x0e, 0x04, 0x02, 0xb5, 0x55, 0xb0, 0x06, 0x81, 0x9f, 0x34, 0x9c, 0x1f, 0xb2, 0xdf, 0xf3, 0xf2, 0x9c, 0x8e, 0x4c, 0xd3, 0x83, 0x41, 0xa1, 0x10, 0x08, 0xcc, 0x06,
0xb1, 0x55, 0x68, 0x38, 0xcf, 0x7e, 0x87, 0xc9, 0x40, 0x60, 0x35, 0x48, 0xa7, 0xcb, 0x81, 0x40, 0xa0, 0xb6, 0x0e, 0x9e, 0xc0, 0x4f, 0x1a, 0xce, 0x1f, 0xcb, 0x6e, 0x20, 0x30, 0x1b, 0xc4, 0x62,
0xb5, 0x65, 0x50, 0x05, 0x7e, 0xd2, 0x70, 0x3e, 0xe9, 0xa6, 0x97, 0xe5, 0xf3, 0xf2, 0x98, 0x0e, 0x04, 0x66, 0x83, 0x58, 0xac, 0xb6, 0x16, 0xf0, 0x80, 0x8c, 0x77, 0xbd, 0xe1, 0xae, 0xb1, 0xbc,
0x1c, 0xa6, 0x97, 0x91, 0x61, 0x37, 0x99, 0x5d, 0x36, 0xbe, 0xe5, 0xcc, 0xb4, 0xd8, 0x35, 0x66, 0x87, 0xe7, 0x73, 0x97, 0xf4, 0x3a, 0xa5, 0xcb, 0xeb, 0x63, 0x7a, 0x5d, 0x5e, 0x26, 0x0b, 0xeb,
0x66, 0x73, 0x59, 0xce, 0x33, 0xb3, 0xdf, 0x61, 0xba, 0xcf, 0x10, 0xae, 0xe1, 0xf2, 0x9d, 0xc7, 0x8f, 0x00, 0x6b, 0xa3, 0x8a, 0x82, 0x88, 0x4a, 0x07, 0x18, 0xfc, 0xe2, 0xb6, 0x2d, 0x01, 0x1b,
0x2e, 0xdf, 0x79, 0xfc, 0x08, 0xb0, 0x36, 0xaa, 0x28, 0x88, 0x88, 0x9d, 0x9c, 0x88, 0xf0, 0x8b, 0xdb, 0x36, 0x85, 0x6d, 0xb8, 0x7c, 0xe7, 0xf1, 0x23, 0xe2, 0x71, 0xa2, 0x29, 0x44, 0x26, 0x5f,
0x9a, 0x22, 0x4a, 0x98, 0x7c, 0x6d, 0x9a, 0x22, 0x00, 0x00, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x14, 0x15, 0xb0, 0x40, 0x59, 0x0a, 0xd0, 0x54, 0x02, 0x00, 0x00, 0x00, 0xd4, 0x05, 0x83, 0xc0, 0x20, 0x18, 0x23, 0x06, 0x06, 0x00, 0x82, 0x60, 0xd0, 0x59, 0x85, 0x30, 0x62, 0xa0, 0x00, 0x20,
0x08, 0x06, 0x96, 0x56, 0x04, 0xd3, 0x44, 0x44, 0xa3, 0x09, 0x01, 0x30, 0x62, 0x60, 0x00, 0x20, 0x08, 0x06, 0x5d, 0x86, 0x10, 0x23, 0x06, 0x0a, 0x00, 0x82, 0x60, 0x60, 0x75, 0x48, 0x60, 0x59,
0x07, 0x35, 0x9a, 0x10, 0x00, 0x16, 0x10, 0xf0, 0xd9, 0xc4, 0xe0, 0x64, 0xd9, 0xb0, 0x01, 0x11, 0x08, 0x03, 0x80, 0xe1, 0x40, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xb6, 0x11, 0x00, 0xa6,
0x11, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x14, 0x15, 0xb0, 0x40,
0x59, 0x0a, 0xd0, 0x54, 0x02, 0x00, 0x00, 0x00, 0xc4, 0x05, 0x83, 0xc0, 0x20, 0x18, 0x23, 0x06, 0x06, 0x00, 0x82, 0x60, 0xd0, 0x59, 0x85, 0x30, 0x62, 0xa0, 0x00, 0x20, 0x08, 0x06, 0x96, 0x56,
0x04, 0xd3, 0x44, 0x44, 0xa3, 0x09, 0x01, 0xb0, 0x97, 0x21, 0xa9, 0x2a, 0x0a, 0x80, 0x61, 0x43, 0x00, 0x9f, 0x11, 0x03, 0x03, 0x00, 0x41, 0x30, 0xe8, 0xb8, 0xe5, 0x18, 0x31, 0x50, 0x00, 0x10,
0x04, 0x03, 0x0b, 0x0c, 0x96, 0x20, 0xcb, 0x94, 0x6b, 0x34, 0x21, 0x00, 0x8c, 0x08, 0xe0, 0xb3, 0x89, 0x21, 0xe2, 0xb8, 0x61, 0x03, 0x22, 0x10, 0x06, 0x00, 0xc3, 0x81, 0x00, 0x00, 0x00, 0x00,
0x02, 0x00, 0x00, 0x00, 0xb6, 0x11, 0x00, 0xa6, 0x11, 0x3c, 0x00, 0x00, 0x01, 0x31, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x5b, 0x06, 0x23, 0x20, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x61, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x14, 0x15, 0xb0, 0x40, 0x59, 0x0a, 0x14, 0xaf, 0x00, 0x4d, 0x25, 0x00,
0xb4, 0x05, 0x63, 0x26, 0x62, 0x89, 0x98, 0x51, 0x18, 0x31, 0x30, 0x00, 0x10, 0x04, 0x83, 0xae, 0x32, 0x84, 0x11, 0x03, 0x05, 0x00, 0x41, 0x30, 0xb0, 0x32, 0x23, 0x90, 0x24, 0x02, 0x1a, 0x4d,
0x08, 0x80, 0x11, 0x03, 0xa4, 0x00, 0x41, 0x30, 0xd8, 0xb2, 0x23, 0xa0, 0x08, 0x04, 0x00, 0x00, 0x61, 0x20, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x13, 0x04, 0x41, 0x2c, 0x10, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x34, 0x95, 0x00, 0x45, 0x85, 0x29, 0x50, 0xc0, 0x02, 0x04, 0x8c, 0x00, 0xcc, 0x00, 0x00, 0x00, 0xe4, 0x05, 0x83, 0xc0, 0x20, 0x18, 0x23, 0x06, 0x06, 0x00, 0x82, 0x60,
0xd0, 0x59, 0x45, 0x30, 0x62, 0xe0, 0x00, 0x20, 0x08, 0x06, 0x58, 0x76, 0x04, 0xd3, 0x54, 0x10, 0x04, 0x81, 0x44, 0x23, 0x06, 0x06, 0x00, 0x82, 0x60, 0xd0, 0x5d, 0xc6, 0x30, 0x62, 0xe0, 0x00,
0x20, 0x08, 0x06, 0x98, 0x86, 0x04, 0x14, 0x65, 0x14, 0x45, 0x91, 0x48, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
D3D12_SHADER_BYTECODE code;
code.pShaderBytecode = rt_lib_dxil;
code.BytecodeLength = sizeof(rt_lib_dxil);
return code;
}
static D3D12_SHADER_BYTECODE get_embedded_subobject_dupe_rt_lib(void)
{
static const BYTE rt_lib_dxil[] =
{
#if 0
RaytracingShaderConfig config = { 4, 8 };
RaytracingPipelineConfig pconfig = { 1 };
RaytracingShaderConfig config1 = { 8, 12 };
RaytracingPipelineConfig pconfig1 = { 2 };
[shader("raygeneration")]
void RayGen()
{
}
#endif
0x44, 0x58, 0x42, 0x43, 0x69, 0x86, 0x8c, 0x61, 0xc9, 0x37, 0x40, 0xe7, 0x79, 0x99, 0xb5, 0xf1, 0x92, 0x2d, 0x6a, 0xed, 0x01, 0x00, 0x00, 0x00, 0x48, 0x05, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x48, 0x01, 0x00, 0x00, 0x64, 0x01, 0x00, 0x00, 0x53, 0x46, 0x49, 0x30, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x52, 0x44, 0x41, 0x54, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x38, 0x00, 0x00, 0x00, 0x00, 0x01, 0x3f, 0x52, 0x61, 0x79, 0x47, 0x65, 0x6e, 0x40, 0x40, 0x59, 0x41, 0x58, 0x58, 0x5a, 0x00, 0x52, 0x61, 0x79, 0x47, 0x65, 0x6e, 0x00, 0x63, 0x6f, 0x6e, 0x66,
0x69, 0x67, 0x00, 0x70, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x00, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x31, 0x00, 0x70, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x31, 0x00, 0x04, 0x00, 0x00, 0x00,
0x34, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x60, 0x00, 0x07, 0x00, 0x06, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0a, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00,
0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x41, 0x53, 0x48, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x8c, 0xc1, 0x04, 0xd0, 0xcd, 0x45, 0x03, 0xee, 0x9d, 0xa8, 0xab,
0xf1, 0x1e, 0xa6, 0x57, 0x44, 0x58, 0x49, 0x4c, 0xdc, 0x03, 0x00, 0x00, 0x63, 0x00, 0x06, 0x00, 0xf7, 0x00, 0x00, 0x00, 0x44, 0x58, 0x49, 0x4c, 0x03, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00,
0xc4, 0x03, 0x00, 0x00, 0x42, 0x43, 0xc0, 0xde, 0x21, 0x0c, 0x00, 0x00, 0xee, 0x00, 0x00, 0x00, 0x0b, 0x82, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x07, 0x81, 0x23, 0x91,
0x41, 0xc8, 0x04, 0x49, 0x06, 0x10, 0x32, 0x39, 0x92, 0x01, 0x84, 0x0c, 0x25, 0x05, 0x08, 0x19, 0x1e, 0x04, 0x8b, 0x62, 0x80, 0x0c, 0x45, 0x02, 0x42, 0x92, 0x0b, 0x42, 0x64, 0x10, 0x32, 0x14,
0x38, 0x08, 0x18, 0x4b, 0x0a, 0x32, 0x32, 0x88, 0x48, 0x90, 0x14, 0x20, 0x43, 0x46, 0x88, 0xa5, 0x00, 0x19, 0x32, 0x42, 0xe4, 0x48, 0x0e, 0x90, 0x91, 0x21, 0xc4, 0x50, 0x41, 0x51, 0x81, 0x8c,
0xe1, 0x83, 0xe5, 0x8a, 0x04, 0x19, 0x46, 0x06, 0x51, 0x18, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x1b, 0x8c, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x40, 0x02, 0x28, 0x00, 0x49, 0x18, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x13, 0x82, 0x00, 0x00, 0x89, 0x20, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x32, 0x22, 0xc8, 0x08, 0x20, 0x64, 0x85, 0x04, 0x93, 0x21, 0xa4, 0x84, 0x04, 0x93, 0x21, 0xe3,
0x84, 0xa1, 0x90, 0x14, 0x12, 0x4c, 0x86, 0x8c, 0x0b, 0x84, 0x64, 0x4c, 0x10, 0x14, 0x23, 0x00, 0x25, 0x00, 0x65, 0x20, 0x60, 0x8e, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x72, 0xc0,
0x87, 0x74, 0x60, 0x87, 0x36, 0x68, 0x87, 0x79, 0x68, 0x03, 0x72, 0xc0, 0x87, 0x0d, 0xaf, 0x50, 0x0e, 0x6d, 0xd0, 0x0e, 0x7a, 0x50, 0x0e, 0x6d, 0x00, 0x0f, 0x7a, 0x30, 0x07, 0x72, 0xa0, 0x07,
0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x78, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0,
0x06, 0xe9, 0x30, 0x07, 0x72, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d, 0x90, 0x0e, 0x76, 0x40, 0x07, 0x7a, 0x60, 0x07, 0x74, 0xd0, 0x06, 0xe6, 0x10, 0x07, 0x76, 0xa0, 0x07, 0x73, 0x20, 0x07, 0x6d,
0x60, 0x0e, 0x73, 0x20, 0x07, 0x7a, 0x30, 0x07, 0x72, 0xd0, 0x06, 0xe6, 0x60, 0x07, 0x74, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x6d, 0xe0, 0x0e, 0x78, 0xa0, 0x07, 0x71, 0x60, 0x07, 0x7a, 0x30, 0x07,
0x72, 0xa0, 0x07, 0x76, 0x40, 0x07, 0x43, 0x9e, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb2, 0x40, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x32, 0x1e, 0x98, 0x10,
0x19, 0x11, 0x4c, 0x90, 0x8c, 0x09, 0x26, 0x47, 0xc6, 0x04, 0x43, 0x62, 0x09, 0x94, 0x41, 0x31, 0x14, 0x44, 0x39, 0x94, 0xc2, 0x08, 0x00, 0x00, 0x79, 0x18, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00,
0x1a, 0x03, 0x4c, 0x90, 0x46, 0x02, 0x13, 0x44, 0x35, 0x18, 0x63, 0x0b, 0x73, 0x3b, 0x03, 0xb1, 0x2b, 0x93, 0x9b, 0x4b, 0x7b, 0x73, 0x03, 0x99, 0x71, 0xb9, 0x01, 0x41, 0xa1, 0x0b, 0x3b, 0x9b,
0x7b, 0x91, 0x2a, 0x62, 0x2a, 0x0a, 0x9a, 0x2a, 0xfa, 0x9a, 0xb9, 0x81, 0x79, 0x31, 0x4b, 0x73, 0x0b, 0x63, 0x4b, 0xd9, 0x10, 0x04, 0x13, 0x04, 0x22, 0x98, 0x20, 0x10, 0xc2, 0x06, 0x61, 0x20,
0x26, 0x08, 0xc4, 0xb0, 0x41, 0x18, 0x0c, 0x0e, 0x6c, 0x69, 0x62, 0x1b, 0x06, 0xc4, 0x20, 0x26, 0x08, 0x02, 0xb0, 0x01, 0xd8, 0x30, 0x0c, 0xcb, 0xb2, 0x21, 0x60, 0x36, 0x0c, 0x83, 0xd2, 0x10,
0xd8, 0x50, 0x00, 0x0f, 0x00, 0x00, 0x7c, 0x02, 0x7e, 0xa4, 0xc2, 0xf2, 0x8e, 0xca, 0xdc, 0x80, 0x80, 0xb2, 0x82, 0xb0, 0xb0, 0xb4, 0x26, 0x08, 0x04, 0x31, 0x41, 0x20, 0x8a, 0x09, 0x02, 0x61,
0x4c, 0x10, 0x88, 0x63, 0x43, 0x50, 0x6d, 0x20, 0xa4, 0x89, 0xb2, 0x36, 0x14, 0x4a, 0x04, 0x00, 0x57, 0x15, 0x36, 0x36, 0xbb, 0x36, 0x97, 0x34, 0xb2, 0x32, 0x37, 0xba, 0x29, 0x41, 0x50, 0x85,
0x0c, 0xcf, 0xc5, 0xae, 0x4c, 0x6e, 0x2e, 0xed, 0xcd, 0x6d, 0x4a, 0x40, 0x34, 0x21, 0xc3, 0x73, 0xb1, 0x0b, 0x63, 0xb3, 0x2b, 0x93, 0x9b, 0x12, 0x18, 0x75, 0xc8, 0xf0, 0x5c, 0xe6, 0xd0, 0xc2,
0xc8, 0xca, 0xe4, 0x9a, 0xde, 0xc8, 0xca, 0xd8, 0xa6, 0x04, 0x48, 0x25, 0x32, 0x3c, 0x17, 0xba, 0x3c, 0xb8, 0xb2, 0x20, 0x37, 0xb7, 0x37, 0xba, 0x30, 0xba, 0xb4, 0x37, 0xb7, 0xb9, 0x29, 0x41,
0x53, 0x87, 0x0c, 0xcf, 0xa5, 0xcc, 0x8d, 0x4e, 0x2e, 0x0f, 0xea, 0x2d, 0xcd, 0x8d, 0x6e, 0x6e, 0x8a, 0xf0, 0x5c, 0x00, 0x79, 0x18, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x33, 0x08, 0x80, 0x1c,
0xc4, 0xe1, 0x1c, 0x66, 0x14, 0x01, 0x3d, 0x88, 0x43, 0x38, 0x84, 0xc3, 0x8c, 0x42, 0x80, 0x07, 0x79, 0x78, 0x07, 0x73, 0x98, 0x71, 0x0c, 0xe6, 0x00, 0x0f, 0xed, 0x10, 0x0e, 0xf4, 0x80, 0x0e,
0x33, 0x0c, 0x42, 0x1e, 0xc2, 0xc1, 0x1d, 0xce, 0xa1, 0x1c, 0x66, 0x30, 0x05, 0x3d, 0x88, 0x43, 0x38, 0x84, 0x83, 0x1b, 0xcc, 0x03, 0x3d, 0xc8, 0x43, 0x3d, 0x8c, 0x03, 0x3d, 0xcc, 0x78, 0x8c,
0x74, 0x70, 0x07, 0x7b, 0x08, 0x07, 0x79, 0x48, 0x87, 0x70, 0x70, 0x07, 0x7a, 0x70, 0x03, 0x76, 0x78, 0x87, 0x70, 0x20, 0x87, 0x19, 0xcc, 0x11, 0x0e, 0xec, 0x90, 0x0e, 0xe1, 0x30, 0x0f, 0x6e,
0x30, 0x0f, 0xe3, 0xf0, 0x0e, 0xf0, 0x50, 0x0e, 0x33, 0x10, 0xc4, 0x1d, 0xde, 0x21, 0x1c, 0xd8, 0x21, 0x1d, 0xc2, 0x61, 0x1e, 0x66, 0x30, 0x89, 0x3b, 0xbc, 0x83, 0x3b, 0xd0, 0x43, 0x39, 0xb4,
0x03, 0x3c, 0xbc, 0x83, 0x3c, 0x84, 0x03, 0x3b, 0xcc, 0xf0, 0x14, 0x76, 0x60, 0x07, 0x7b, 0x68, 0x07, 0x37, 0x68, 0x87, 0x72, 0x68, 0x07, 0x37, 0x80, 0x87, 0x70, 0x90, 0x87, 0x70, 0x60, 0x07,
0x76, 0x28, 0x07, 0x76, 0xf8, 0x05, 0x76, 0x78, 0x87, 0x77, 0x80, 0x87, 0x5f, 0x08, 0x87, 0x71, 0x18, 0x87, 0x72, 0x98, 0x87, 0x79, 0x98, 0x81, 0x2c, 0xee, 0xf0, 0x0e, 0xee, 0xe0, 0x0e, 0xf5,
0xc0, 0x0e, 0xec, 0x30, 0x03, 0x62, 0xc8, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xcc, 0xa1, 0x1c, 0xe4, 0xa1, 0x1c, 0xdc, 0x61, 0x1c, 0xca, 0x21, 0x1c, 0xc4, 0x81, 0x1d, 0xca, 0x61, 0x06, 0xd6, 0x90,
0x43, 0x39, 0xc8, 0x43, 0x39, 0x98, 0x43, 0x39, 0xc8, 0x43, 0x39, 0xb8, 0xc3, 0x38, 0x94, 0x43, 0x38, 0x88, 0x03, 0x3b, 0x94, 0xc3, 0x2f, 0xbc, 0x83, 0x3c, 0xfc, 0x82, 0x3b, 0xd4, 0x03, 0x3b,
0xb0, 0xc3, 0x8c, 0xc8, 0x21, 0x07, 0x7c, 0x70, 0x03, 0x72, 0x10, 0x87, 0x73, 0x70, 0x03, 0x7b, 0x08, 0x07, 0x79, 0x60, 0x87, 0x70, 0xc8, 0x87, 0x77, 0xa8, 0x07, 0x7a, 0x00, 0x00, 0x00, 0x00,
0x71, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0xf0, 0x04, 0x7e, 0xd2, 0x70, 0xfe, 0x58, 0x76, 0x03, 0x81, 0xd9, 0x20, 0x16, 0xab, 0x05, 0x61, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x13, 0x04, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00,
};
D3D12_SHADER_BYTECODE code;
code.pShaderBytecode = rt_lib_dxil;
code.BytecodeLength = sizeof(rt_lib_dxil);
return code;
}
static D3D12_SHADER_BYTECODE get_default_rt_lib(void)
{
/* Compile with -Tlib_6_3 in DXC. */
@ -1453,6 +1712,22 @@ static unsigned int rt_pso_factory_add_subobject_to_exports_association(struct r
return rt_pso_factory_add_subobject(factory, &desc);
}
static unsigned int rt_pso_factory_add_dxil_subobject_to_exports_association(struct rt_pso_factory *factory,
LPCWSTR object, unsigned int num_exports, LPCWSTR *exports)
{
D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION *assoc;
D3D12_STATE_SUBOBJECT desc;
assoc = rt_pso_factory_calloc(factory, 1, sizeof(*assoc));
assoc->pExports = exports;
assoc->NumExports = num_exports;
assoc->SubobjectToAssociate = object;
desc.Type = D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION;
desc.pDesc = assoc;
return rt_pso_factory_add_subobject(factory, &desc);
}
static unsigned int rt_pso_factory_add_existing_collection(struct rt_pso_factory *factory,
ID3D12StateObject *collection, unsigned int num_exports, D3D12_EXPORT_DESC *exports)
{
@ -1491,7 +1766,6 @@ static ID3D12StateObject *rt_pso_factory_compile(struct raytracing_test_context
D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION *assoc;
D3D12_STATE_OBJECT_DESC desc;
ID3D12StateObject *rt_pso;
HRESULT hr;
size_t i;
memset(&desc, 0, sizeof(desc));
@ -1510,7 +1784,7 @@ static ID3D12StateObject *rt_pso_factory_compile(struct raytracing_test_context
}
rt_pso = NULL;
hr = ID3D12Device5_CreateStateObject(context->device5, &desc, &IID_ID3D12StateObject, (void **)&rt_pso);
ID3D12Device5_CreateStateObject(context->device5, &desc, &IID_ID3D12StateObject, (void **)&rt_pso);
free(factory->subobjects);
for (i = 0; i < factory->allocs_count; i++)
@ -3169,3 +3443,176 @@ void test_raytracing_reject_duplicate_objects(void)
ID3D12Device_Release(device);
destroy_raytracing_test_context(&context);
}
void test_raytracing_embedded_subobjects(void)
{
struct raytracing_test_context context;
struct rt_pso_factory factory;
ID3D12StateObject *object;
ID3D12Device *device;
if (!init_raytracing_test_context(&context, D3D12_RAYTRACING_TIER_1_0))
return;
ID3D12Device5_QueryInterface(context.device5, &IID_ID3D12Device, (void **)&device);
{
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), 0, NULL);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!!object, "Failed to create state object.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Subobjects are not exposed to API side if they are not part of the export.
* This will fail compilation since RayGen cannot observe its dependent objects. */
{
D3D12_EXPORT_DESC export_desc;
memset(&export_desc, 0, sizeof(export_desc));
export_desc.Name = u"RayGen";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), 1, &export_desc);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!object, "Should fail RTPSO creation.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Try to compile RayGen, and only export our dependencies. */
{
D3D12_EXPORT_DESC export_desc[5];
memset(export_desc, 0, sizeof(export_desc));
export_desc[0].Name = u"RayGen";
export_desc[1].Name = u"grs";
export_desc[2].Name = u"config";
export_desc[3].Name = u"pconfig";
export_desc[4].Name = u"lrs_raygen";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), ARRAY_SIZE(export_desc), export_desc);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!!object, "Failed to create state object.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Try to break our object associations since RayGenAlt != RayGen.
* However, this does compile oddly enough. */
{
D3D12_EXPORT_DESC export_desc[5];
memset(export_desc, 0, sizeof(export_desc));
export_desc[0].Name = u"RayGenAlt";
export_desc[0].ExportToRename = u"RayGen";
export_desc[1].Name = u"grs";
export_desc[2].Name = u"config";
export_desc[3].Name = u"pconfig";
export_desc[4].Name = u"lrs_raygen";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), ARRAY_SIZE(export_desc), export_desc);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!!object, "Failed to create state object.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Verify that subobject associations trump any DXIL associations.
* Default associate a subobject.
* Apparently, this is supposed to override even explicit associations inherited from DXIL. */
{
D3D12_EXPORT_DESC export_desc[6];
memset(export_desc, 0, sizeof(export_desc));
export_desc[0].Name = u"RayGen";
export_desc[1].Name = u"grs";
export_desc[2].Name = u"config";
export_desc[3].Name = u"pconfig";
export_desc[4].Name = u"lrs_raygen";
export_desc[5].Name = u"lrs_other1";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), ARRAY_SIZE(export_desc), export_desc);
rt_pso_factory_add_dxil_subobject_to_exports_association(&factory, u"lrs_other1", 0, NULL);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!object, "Unexpected compilation success.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Verify that just declaring a subobject overrides (which is not referenced by any other association) module associations. */
{
D3D12_ROOT_SIGNATURE_DESC rs_desc;
D3D12_EXPORT_DESC export_desc[5];
ID3D12RootSignature *local_rs;
D3D12_ROOT_PARAMETER param;
memset(export_desc, 0, sizeof(export_desc));
export_desc[0].Name = u"RayGen";
export_desc[1].Name = u"grs";
export_desc[2].Name = u"config";
export_desc[3].Name = u"pconfig";
export_desc[4].Name = u"lrs_raygen";
memset(&rs_desc, 0, sizeof(rs_desc));
rs_desc.Flags = D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE;
rs_desc.NumParameters = 1;
rs_desc.pParameters = &param;
memset(&param, 0, sizeof(param));
param.ParameterType = D3D12_ROOT_PARAMETER_TYPE_UAV;
param.Descriptor.RegisterSpace = 5;
create_root_signature(device, &rs_desc, &local_rs);
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_rt_lib(), ARRAY_SIZE(export_desc), export_desc);
rt_pso_factory_add_local_root_signature(&factory, local_rs);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!object, "Unexpected compilation success.\n");
if (object)
ID3D12StateObject_Release(object);
ID3D12RootSignature_Release(local_rs);
}
/* Verify that duplicate embedded subobjects fail. */
{
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_dupe_rt_lib(), 0, NULL);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!object, "Unexpected compilation success.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Verify that it works if we only export one of each. */
{
D3D12_EXPORT_DESC export_desc[3];
memset(export_desc, 0, sizeof(export_desc));
export_desc[0].Name = u"RayGen";
export_desc[1].Name = u"config";
export_desc[2].Name = u"pconfig";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_dupe_rt_lib(), ARRAY_SIZE(export_desc), export_desc);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!!object, "Failed to create pipeline.\n");
if (object)
ID3D12StateObject_Release(object);
}
/* Verify that it works if we associate explicitly. */
{
LPCWSTR raygen = u"RayGen";
rt_pso_factory_init(&factory);
rt_pso_factory_add_dxil_library(&factory, get_embedded_subobject_dupe_rt_lib(), 0, NULL);
rt_pso_factory_add_dxil_subobject_to_exports_association(&factory, u"config", 1, &raygen);
rt_pso_factory_add_dxil_subobject_to_exports_association(&factory, u"pconfig", 1, &raygen);
object = rt_pso_factory_compile(&context, &factory, D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE);
ok(!!object, "Failed to create pipeline.\n");
if (object)
ID3D12StateObject_Release(object);
}
ID3D12Device_Release(device);
destroy_raytracing_test_context(&context);
}

View File

@ -310,3 +310,4 @@ decl_test(test_root_descriptor_offset_sign);
decl_test(test_raytracing_no_global_root_signature);
decl_test(test_raytracing_missing_required_objects);
decl_test(test_raytracing_reject_duplicate_objects);
decl_test(test_raytracing_embedded_subobjects);