ArabDesert/Assets/Editor/x64/Bakery/heightfieldTex.ptx

677 lines
24 KiB
Plaintext

//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-23083092
// Cuda compilation tools, release 9.1, V9.1.85
// Based on LLVM 3.4svn
//
.version 6.1
.target sm_30
.address_size 64
// .globl _Z9intersecti
.global .align 8 .b8 pixelID[8];
.global .align 8 .b8 resolution[8];
.global .align 4 .b8 normal[12];
.global .align 4 .b8 camPos[12];
.global .align 4 .b8 root[4];
.global .align 4 .u32 imageEnabled;
.global .texref lightmap;
.global .align 16 .b8 tileInfo[16];
.global .align 4 .u32 additive;
.global .align 4 .b8 ray[36];
.global .align 4 .u32 heightmap;
.global .align 4 .f32 heightmapMaxMip;
.global .align 4 .b8 heightmapMin[12];
.global .align 4 .b8 heightmapMax[12];
.global .align 4 .f32 heightmapLMID;
.global .align 16 .b8 heightmapOffsetScaleUV[16];
.global .align 8 .b8 texCoords[8];
.global .align 4 .b8 _ZN21rti_internal_typeinfo7pixelIDE[8] = {82, 97, 121, 0, 8, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo10resolutionE[8] = {82, 97, 121, 0, 8, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo6normalE[8] = {82, 97, 121, 0, 12, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo6camPosE[8] = {82, 97, 121, 0, 12, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo4rootE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo12imageEnabledE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo8tileInfoE[8] = {82, 97, 121, 0, 16, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo8additiveE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo3rayE[8] = {82, 97, 121, 0, 36, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo9heightmapE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo15heightmapMaxMipE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo12heightmapMinE[8] = {82, 97, 121, 0, 12, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo12heightmapMaxE[8] = {82, 97, 121, 0, 12, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo13heightmapLMIDE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo22heightmapOffsetScaleUVE[8] = {82, 97, 121, 0, 16, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo9texCoordsE[8] = {82, 97, 121, 0, 8, 0, 0, 0};
.global .align 8 .u64 _ZN21rti_internal_register20reg_bitness_detectorE;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail0E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail1E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail2E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail3E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail4E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail5E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail6E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail7E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail8E;
.global .align 8 .u64 _ZN21rti_internal_register24reg_exception_64_detail9E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail0E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail1E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail2E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail3E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail4E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail5E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail6E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail7E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail8E;
.global .align 4 .u32 _ZN21rti_internal_register21reg_exception_detail9E;
.global .align 4 .u32 _ZN21rti_internal_register14reg_rayIndex_xE;
.global .align 4 .u32 _ZN21rti_internal_register14reg_rayIndex_yE;
.global .align 4 .u32 _ZN21rti_internal_register14reg_rayIndex_zE;
.global .align 8 .b8 _ZN21rti_internal_typename7pixelIDE[6] = {117, 105, 110, 116, 50, 0};
.global .align 8 .b8 _ZN21rti_internal_typename10resolutionE[6] = {117, 105, 110, 116, 50, 0};
.global .align 8 .b8 _ZN21rti_internal_typename6normalE[7] = {102, 108, 111, 97, 116, 51, 0};
.global .align 8 .b8 _ZN21rti_internal_typename6camPosE[7] = {102, 108, 111, 97, 116, 51, 0};
.global .align 16 .b8 _ZN21rti_internal_typename4rootE[9] = {114, 116, 79, 98, 106, 101, 99, 116, 0};
.global .align 4 .b8 _ZN21rti_internal_typename12imageEnabledE[4] = {105, 110, 116, 0};
.global .align 8 .b8 _ZN21rti_internal_typename8tileInfoE[6] = {117, 105, 110, 116, 52, 0};
.global .align 4 .b8 _ZN21rti_internal_typename8additiveE[4] = {105, 110, 116, 0};
.global .align 4 .b8 _ZN21rti_internal_typename3rayE[4] = {82, 97, 121, 0};
.global .align 4 .b8 _ZN21rti_internal_typename9heightmapE[4] = {105, 110, 116, 0};
.global .align 8 .b8 _ZN21rti_internal_typename15heightmapMaxMipE[6] = {102, 108, 111, 97, 116, 0};
.global .align 8 .b8 _ZN21rti_internal_typename12heightmapMinE[7] = {102, 108, 111, 97, 116, 51, 0};
.global .align 8 .b8 _ZN21rti_internal_typename12heightmapMaxE[7] = {102, 108, 111, 97, 116, 51, 0};
.global .align 8 .b8 _ZN21rti_internal_typename13heightmapLMIDE[6] = {102, 108, 111, 97, 116, 0};
.global .align 8 .b8 _ZN21rti_internal_typename22heightmapOffsetScaleUVE[7] = {102, 108, 111, 97, 116, 52, 0};
.global .align 8 .b8 _ZN21rti_internal_typename9texCoordsE[7] = {102, 108, 111, 97, 116, 50, 0};
.global .align 4 .u32 _ZN21rti_internal_typeenum7pixelIDE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum10resolutionE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum6normalE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum6camPosE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum4rootE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum12imageEnabledE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum8tileInfoE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum8additiveE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum3rayE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum9heightmapE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum15heightmapMaxMipE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum12heightmapMinE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum12heightmapMaxE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum13heightmapLMIDE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum22heightmapOffsetScaleUVE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum9texCoordsE = 4919;
.global .align 16 .b8 _ZN21rti_internal_semantic7pixelIDE[14] = {114, 116, 76, 97, 117, 110, 99, 104, 73, 110, 100, 101, 120, 0};
.global .align 16 .b8 _ZN21rti_internal_semantic10resolutionE[12] = {114, 116, 76, 97, 117, 110, 99, 104, 68, 105, 109, 0};
.global .align 16 .b8 _ZN21rti_internal_semantic6normalE[17] = {97, 116, 116, 114, 105, 98, 117, 116, 101, 32, 110, 111, 114, 109, 97, 108, 0};
.global .align 1 .b8 _ZN21rti_internal_semantic6camPosE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic4rootE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic12imageEnabledE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic8tileInfoE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic8additiveE[1];
.global .align 16 .b8 _ZN21rti_internal_semantic3rayE[13] = {114, 116, 67, 117, 114, 114, 101, 110, 116, 82, 97, 121, 0};
.global .align 1 .b8 _ZN21rti_internal_semantic9heightmapE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic15heightmapMaxMipE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic12heightmapMinE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic12heightmapMaxE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic13heightmapLMIDE[1];
.global .align 1 .b8 _ZN21rti_internal_semantic22heightmapOffsetScaleUVE[1];
.global .align 16 .b8 _ZN21rti_internal_semantic9texCoordsE[20] = {97, 116, 116, 114, 105, 98, 117, 116, 101, 32, 116, 101, 120, 67, 111, 111, 114, 100, 115, 0};
.global .align 1 .b8 _ZN23rti_internal_annotation7pixelIDE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation10resolutionE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation6normalE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation6camPosE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation4rootE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation12imageEnabledE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation8tileInfoE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation8additiveE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation3rayE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation9heightmapE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation15heightmapMaxMipE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation12heightmapMinE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation12heightmapMaxE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation13heightmapLMIDE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation22heightmapOffsetScaleUVE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation9texCoordsE[1];
.visible .entry _Z9intersecti(
.param .u32 _Z9intersecti_param_0
)
{
.reg .pred %p<57>;
.reg .b16 %rs<9>;
.reg .f32 %f<454>;
.reg .b32 %r<36>;
ld.global.f32 %f4, [heightmapMin+8];
ld.global.f32 %f3, [heightmapMin+4];
ld.global.f32 %f2, [heightmapMin];
ld.global.f32 %f1, [heightmapLMID];
ld.global.f32 %f144, [heightmapMax+8];
ld.global.f32 %f145, [heightmapMax+4];
ld.global.f32 %f146, [heightmapMax];
add.f32 %f147, %f2, %f146;
add.f32 %f148, %f3, %f145;
add.f32 %f149, %f4, %f144;
mul.f32 %f150, %f147, 0f3F000000;
mul.f32 %f151, %f148, 0f3F000000;
mul.f32 %f152, %f149, 0f3F000000;
sub.f32 %f5, %f146, %f2;
sub.f32 %f6, %f145, %f3;
sub.f32 %f7, %f144, %f4;
mul.f32 %f153, %f5, 0f3F000000;
mul.f32 %f154, %f6, 0f3F000000;
mul.f32 %f155, %f7, 0f3F000000;
ld.global.f32 %f8, [ray+12];
rcp.rn.f32 %f156, %f8;
ld.global.f32 %f9, [ray+16];
rcp.rn.f32 %f157, %f9;
ld.global.f32 %f10, [ray+20];
rcp.rn.f32 %f158, %f10;
ld.global.f32 %f11, [ray];
sub.f32 %f159, %f11, %f150;
ld.global.f32 %f12, [ray+4];
sub.f32 %f160, %f12, %f151;
ld.global.f32 %f13, [ray+8];
sub.f32 %f161, %f13, %f152;
mul.f32 %f162, %f156, %f159;
mul.f32 %f163, %f157, %f160;
mul.f32 %f164, %f158, %f161;
abs.f32 %f165, %f156;
abs.f32 %f166, %f157;
abs.f32 %f167, %f158;
mul.f32 %f168, %f153, %f165;
mul.f32 %f169, %f154, %f166;
mul.f32 %f170, %f155, %f167;
neg.f32 %f171, %f162;
neg.f32 %f172, %f163;
neg.f32 %f173, %f164;
sub.f32 %f174, %f171, %f168;
sub.f32 %f175, %f172, %f169;
sub.f32 %f176, %f173, %f170;
sub.f32 %f177, %f168, %f162;
sub.f32 %f178, %f169, %f163;
sub.f32 %f179, %f170, %f164;
max.f32 %f180, %f174, %f175;
max.f32 %f14, %f180, %f176;
min.f32 %f181, %f177, %f178;
min.f32 %f182, %f181, %f179;
setp.gt.f32 %p4, %f14, %f182;
setp.lt.f32 %p5, %f182, 0f00000000;
or.pred %p6, %p4, %p5;
@%p6 bra BB0_32;
ld.global.v4.f32 {%f183, %f184, %f185, %f186}, [heightmapOffsetScaleUV];
add.f32 %f187, %f14, 0f3C23D70A;
setp.lt.f32 %p7, %f187, 0f00000000;
selp.f32 %f19, 0f00000000, %f187, %p7;
fma.rn.f32 %f188, %f19, %f8, %f11;
fma.rn.f32 %f189, %f19, %f9, %f12;
fma.rn.f32 %f190, %f19, %f10, %f13;
sub.f32 %f191, %f188, %f2;
sub.f32 %f20, %f189, %f3;
sub.f32 %f192, %f190, %f4;
div.rn.f32 %f434, %f191, %f5;
div.rn.f32 %f436, %f192, %f7;
abs.f32 %f193, %f20;
sub.f32 %f23, %f12, %f3;
setp.geu.f32 %p8, %f193, 0f38D1B717;
@%p8 bra BB0_3;
abs.f32 %f194, %f23;
setp.gt.f32 %p9, %f194, 0f38D1B717;
@%p9 bra BB0_30;
bra.uni BB0_3;
BB0_30:
// inline asm
call (%r29), _rt_potential_intersection, (%f19);
// inline asm
setp.eq.s32 %p55, %r29, 0;
@%p55 bra BB0_32;
mov.u32 %r31, 0;
st.global.u32 [normal+8], %r31;
mov.u32 %r32, 1065353216;
st.global.u32 [normal+4], %r32;
st.global.u32 [normal], %r31;
fma.rn.f32 %f404, %f185, %f434, %f183;
fma.rn.f32 %f405, %f186, %f436, %f184;
fma.rn.f32 %f406, %f1, 0f41200000, %f404;
st.global.v2.f32 [texCoords], {%f406, %f405};
// inline asm
call (%r30), _rt_report_intersection, (%r31);
// inline asm
bra.uni BB0_32;
BB0_3:
sub.f32 %f196, %f11, %f2;
div.rn.f32 %f24, %f196, %f5;
div.rn.f32 %f25, %f23, %f6;
sub.f32 %f197, %f13, %f4;
div.rn.f32 %f26, %f197, %f7;
add.f32 %f198, %f434, %f434;
cvt.rmi.f32.f32 %f199, %f198;
mul.f32 %f437, %f199, 0f3F000000;
add.f32 %f200, %f436, %f436;
cvt.rmi.f32.f32 %f201, %f200;
mul.f32 %f438, %f201, 0f3F000000;
div.rn.f32 %f202, %f8, %f5;
div.rn.f32 %f203, %f9, %f6;
mul.f32 %f204, %f203, %f203;
fma.rn.f32 %f205, %f202, %f202, %f204;
div.rn.f32 %f206, %f10, %f7;
fma.rn.f32 %f207, %f206, %f206, %f205;
sqrt.rn.f32 %f208, %f207;
rcp.rn.f32 %f209, %f208;
mul.f32 %f29, %f202, %f209;
mul.f32 %f30, %f203, %f209;
mul.f32 %f31, %f206, %f209;
setp.gt.f32 %p10, %f29, 0f00000000;
mov.f32 %f452, 0f3F800000;
mov.f32 %f407, %f452;
@%p10 bra BB0_5;
setp.eq.f32 %p11, %f29, 0f00000000;
selp.f32 %f407, 0f00000000, 0fBF800000, %p11;
BB0_5:
setp.gt.f32 %p12, %f31, 0f00000000;
mov.f32 %f408, %f452;
@%p12 bra BB0_7;
setp.eq.f32 %p13, %f31, 0f00000000;
selp.f32 %f408, 0f00000000, 0fBF800000, %p13;
BB0_7:
ld.global.f32 %f440, [heightmapMaxMip];
abs.f32 %f216, %f31;
mov.f32 %f217, 0f38D1B717;
max.f32 %f37, %f216, %f217;
add.f32 %f218, %f437, 0f3F000000;
setp.lt.f32 %p14, %f407, 0f00000000;
selp.f32 %f219, %f437, %f218, %p14;
sub.f32 %f220, %f219, %f434;
abs.f32 %f221, %f220;
abs.f32 %f222, %f29;
max.f32 %f38, %f222, %f217;
div.rn.f32 %f442, %f221, %f38;
add.f32 %f223, %f438, 0f3F000000;
setp.lt.f32 %p15, %f408, 0f00000000;
selp.f32 %f224, %f438, %f223, %p15;
sub.f32 %f225, %f224, %f436;
abs.f32 %f226, %f225;
div.rn.f32 %f443, %f226, %f37;
rcp.rn.f32 %f227, %f29;
abs.f32 %f228, %f227;
mul.f32 %f444, %f228, 0f3F000000;
rcp.rn.f32 %f229, %f31;
abs.f32 %f230, %f229;
mul.f32 %f445, %f230, 0f3F000000;
mul.f32 %f446, %f407, 0f3F000000;
mul.f32 %f447, %f408, 0f3F000000;
rcp.rn.f32 %f45, %f30;
div.rn.f32 %f435, %f20, %f6;
mov.f32 %f453, 0f00000000;
mov.f32 %f439, 0f3F000000;
mov.f32 %f441, 0f40000000;
mov.u32 %r33, 0;
mov.u32 %r35, %r33;
mov.f32 %f451, %f453;
BB0_8:
ld.global.u32 %r3, [heightmap];
setp.eq.f32 %p16, %f440, 0f00000000;
@%p16 bra BB0_12;
bra.uni BB0_9;
BB0_12:
mov.u32 %r22, 2;
mov.u32 %r23, 0;
mov.f32 %f273, 0f00000000;
// inline asm
call (%f242, %f243, %f244, %f245), _rt_texture_get_level_id, (%r3, %r22, %f437, %f438, %f273, %r23, %f273);
// inline asm
ld.global.u32 %r15, [heightmap];
add.f32 %f262, %f437, %f439;
// inline asm
call (%f250, %f251, %f252, %f253), _rt_texture_get_level_id, (%r15, %r22, %f262, %f438, %f273, %r23, %f273);
// inline asm
ld.global.u32 %r18, [heightmap];
add.f32 %f271, %f438, %f439;
// inline asm
call (%f258, %f259, %f260, %f261), _rt_texture_get_level_id, (%r18, %r22, %f262, %f271, %f273, %r23, %f273);
// inline asm
ld.global.u32 %r21, [heightmap];
// inline asm
call (%f266, %f267, %f268, %f269), _rt_texture_get_level_id, (%r21, %r22, %f437, %f271, %f273, %r23, %f273);
// inline asm
sub.f32 %f274, %f262, %f437;
sub.f32 %f275, %f258, %f242;
sub.f32 %f276, %f271, %f438;
sub.f32 %f277, %f242, %f266;
sub.f32 %f278, %f438, %f271;
mul.f32 %f279, %f276, %f277;
mul.f32 %f280, %f278, %f275;
sub.f32 %f451, %f279, %f280;
mul.f32 %f72, %f278, %f274;
sub.f32 %f281, %f437, %f437;
mul.f32 %f282, %f281, %f276;
sub.f32 %f452, %f72, %f282;
mul.f32 %f283, %f281, %f275;
mul.f32 %f284, %f274, %f277;
sub.f32 %f453, %f283, %f284;
mul.f32 %f285, %f29, %f451;
fma.rn.f32 %f286, %f30, %f452, %f285;
fma.rn.f32 %f287, %f31, %f453, %f286;
rcp.rn.f32 %f288, %f287;
sub.f32 %f75, %f242, %f25;
sub.f32 %f289, %f437, %f24;
mul.f32 %f290, %f289, %f288;
mul.f32 %f291, %f75, %f288;
sub.f32 %f292, %f438, %f26;
mul.f32 %f293, %f292, %f288;
mul.f32 %f294, %f30, %f293;
mul.f32 %f295, %f31, %f291;
sub.f32 %f296, %f294, %f295;
mul.f32 %f297, %f31, %f290;
mul.f32 %f298, %f29, %f293;
sub.f32 %f299, %f297, %f298;
mul.f32 %f300, %f29, %f291;
mul.f32 %f301, %f30, %f290;
sub.f32 %f302, %f300, %f301;
mul.f32 %f303, %f277, %f299;
fma.rn.f32 %f304, %f281, %f296, %f303;
fma.rn.f32 %f305, %f278, %f302, %f304;
mul.f32 %f306, %f275, %f299;
fma.rn.f32 %f307, %f274, %f296, %f306;
fma.rn.f32 %f308, %f276, %f302, %f307;
mul.f32 %f309, %f290, %f451;
fma.rn.f32 %f310, %f452, %f291, %f309;
fma.rn.f32 %f76, %f293, %f453, %f310;
setp.gt.f32 %p22, %f76, 0f3456BF95;
setp.ge.f32 %p23, %f305, 0f00000000;
and.pred %p24, %p22, %p23;
setp.ge.f32 %p25, %f308, 0f00000000;
and.pred %p26, %p24, %p25;
add.f32 %f311, %f305, %f308;
setp.le.f32 %p27, %f311, 0f3F800000;
and.pred %p28, %p26, %p27;
@%p28 bra BB0_26;
sub.f32 %f312, %f250, %f242;
sub.f32 %f314, %f437, %f262;
sub.f32 %f315, %f242, %f258;
sub.f32 %f316, %f438, %f438;
mul.f32 %f317, %f316, %f315;
mul.f32 %f320, %f278, %f312;
sub.f32 %f451, %f317, %f320;
mul.f32 %f321, %f316, %f314;
sub.f32 %f452, %f72, %f321;
mul.f32 %f322, %f314, %f312;
mul.f32 %f324, %f274, %f315;
sub.f32 %f453, %f322, %f324;
mul.f32 %f325, %f29, %f451;
fma.rn.f32 %f326, %f30, %f452, %f325;
fma.rn.f32 %f327, %f31, %f453, %f326;
rcp.rn.f32 %f328, %f327;
mul.f32 %f330, %f289, %f328;
mul.f32 %f331, %f75, %f328;
mul.f32 %f333, %f292, %f328;
mul.f32 %f334, %f30, %f333;
mul.f32 %f335, %f31, %f331;
sub.f32 %f336, %f334, %f335;
mul.f32 %f337, %f31, %f330;
mul.f32 %f338, %f29, %f333;
sub.f32 %f339, %f337, %f338;
mul.f32 %f340, %f29, %f331;
mul.f32 %f341, %f30, %f330;
sub.f32 %f342, %f340, %f341;
mul.f32 %f343, %f315, %f339;
fma.rn.f32 %f344, %f314, %f336, %f343;
fma.rn.f32 %f345, %f278, %f342, %f344;
mul.f32 %f346, %f312, %f339;
fma.rn.f32 %f347, %f274, %f336, %f346;
fma.rn.f32 %f348, %f316, %f342, %f347;
mul.f32 %f349, %f452, %f331;
fma.rn.f32 %f350, %f451, %f330, %f349;
fma.rn.f32 %f80, %f453, %f333, %f350;
setp.gt.f32 %p29, %f80, 0f3456BF95;
setp.ge.f32 %p30, %f345, 0f00000000;
and.pred %p31, %p29, %p30;
setp.ge.f32 %p32, %f348, 0f00000000;
and.pred %p33, %p31, %p32;
add.f32 %f351, %f345, %f348;
setp.le.f32 %p34, %f351, 0f3F800000;
and.pred %p35, %p33, %p34;
selp.u16 %rs7, 1, 0, %p35;
@%p35 bra BB0_25;
bra.uni BB0_14;
BB0_9:
setp.lt.f32 %p17, %f30, 0f00000000;
mov.u32 %r10, 2;
mov.f32 %f237, 0f00000000;
mov.u32 %r11, 0;
// inline asm
call (%f231, %f232, %f233, %f234), _rt_texture_get_level_id, (%r3, %r10, %f437, %f438, %f237, %r11, %f440);
// inline asm
setp.gt.f32 %p56, %f231, %f435;
setp.leu.f32 %p18, %f231, %f435;
and.pred %p19, %p17, %p18;
@!%p19 bra BB0_11;
bra.uni BB0_10;
BB0_10:
sub.f32 %f239, %f435, %f231;
mul.f32 %f240, %f45, %f239;
neg.f32 %f241, %f240;
setp.gt.f32 %p20, %f442, %f241;
setp.gt.f32 %p21, %f443, %f241;
and.pred %p56, %p20, %p21;
BB0_11:
selp.u16 %rs7, 1, 0, %p56;
BB0_14:
setp.eq.s16 %p36, %rs7, 0;
@%p36 bra BB0_16;
bra.uni BB0_15;
BB0_16:
setp.eq.s32 %p39, %r35, 4;
@%p39 bra BB0_22;
bra.uni BB0_17;
BB0_22:
add.f32 %f440, %f440, 0f3F800000;
mul.f32 %f441, %f441, 0f3F000000;
mul.f32 %f364, %f434, %f441;
cvt.rmi.f32.f32 %f365, %f364;
div.rn.f32 %f437, %f365, %f441;
mul.f32 %f366, %f436, %f441;
cvt.rmi.f32.f32 %f367, %f366;
div.rn.f32 %f438, %f367, %f441;
add.f32 %f439, %f439, %f439;
add.f32 %f368, %f439, %f437;
selp.f32 %f369, %f437, %f368, %p14;
sub.f32 %f370, %f369, %f434;
abs.f32 %f371, %f370;
div.rn.f32 %f442, %f371, %f38;
add.f32 %f372, %f439, %f438;
selp.f32 %f373, %f438, %f372, %p15;
sub.f32 %f374, %f373, %f436;
abs.f32 %f375, %f374;
div.rn.f32 %f443, %f375, %f37;
add.f32 %f444, %f444, %f444;
add.f32 %f445, %f445, %f445;
add.f32 %f446, %f446, %f446;
add.f32 %f447, %f447, %f447;
bra.uni BB0_23;
BB0_15:
add.f32 %f440, %f440, 0fBF800000;
add.f32 %f441, %f441, %f441;
mul.f32 %f352, %f434, %f441;
cvt.rmi.f32.f32 %f353, %f352;
div.rn.f32 %f437, %f353, %f441;
mul.f32 %f354, %f436, %f441;
cvt.rmi.f32.f32 %f355, %f354;
div.rn.f32 %f438, %f355, %f441;
mul.f32 %f439, %f439, 0f3F000000;
add.f32 %f356, %f439, %f437;
selp.f32 %f357, %f437, %f356, %p14;
sub.f32 %f358, %f357, %f434;
abs.f32 %f359, %f358;
div.rn.f32 %f442, %f359, %f38;
add.f32 %f360, %f439, %f438;
selp.f32 %f361, %f438, %f360, %p15;
sub.f32 %f362, %f361, %f436;
abs.f32 %f363, %f362;
div.rn.f32 %f443, %f363, %f37;
mul.f32 %f444, %f444, 0f3F000000;
mul.f32 %f445, %f445, 0f3F000000;
mul.f32 %f446, %f446, 0f3F000000;
mul.f32 %f447, %f447, 0f3F000000;
BB0_23:
mov.u32 %r35, 0;
bra.uni BB0_24;
BB0_17:
setp.lt.f32 %p40, %f442, %f443;
@%p40 bra BB0_19;
bra.uni BB0_18;
BB0_19:
sub.f32 %f433, %f443, %f442;
add.f32 %f437, %f437, %f446;
mov.f32 %f443, %f442;
mov.f32 %f442, %f444;
bra.uni BB0_20;
BB0_18:
sub.f32 %f442, %f442, %f443;
add.f32 %f438, %f438, %f447;
mov.f32 %f433, %f445;
BB0_20:
fma.rn.f32 %f436, %f31, %f443, %f436;
fma.rn.f32 %f435, %f30, %f443, %f435;
fma.rn.f32 %f434, %f29, %f443, %f434;
setp.ge.f32 %p41, %f434, 0f00000000;
setp.ge.f32 %p42, %f436, 0f00000000;
and.pred %p43, %p41, %p42;
setp.lt.f32 %p44, %f434, 0f3F800000;
and.pred %p45, %p43, %p44;
setp.lt.f32 %p46, %f436, 0f3F800000;
and.pred %p47, %p45, %p46;
setp.lt.f32 %p48, %f435, 0f3F800000;
and.pred %p49, %p47, %p48;
mov.u16 %rs8, 0;
@!%p49 bra BB0_27;
bra.uni BB0_21;
BB0_21:
add.s32 %r35, %r35, 1;
mov.f32 %f443, %f433;
BB0_24:
add.s32 %r33, %r33, 1;
setp.lt.s32 %p52, %r33, 512;
mov.u16 %rs8, %rs7;
@%p52 bra BB0_8;
bra.uni BB0_27;
BB0_26:
fma.rn.f32 %f434, %f29, %f76, %f24;
fma.rn.f32 %f435, %f30, %f76, %f25;
fma.rn.f32 %f436, %f31, %f76, %f26;
mov.u16 %rs8, 1;
bra.uni BB0_27;
BB0_25:
fma.rn.f32 %f434, %f29, %f80, %f24;
fma.rn.f32 %f435, %f30, %f80, %f25;
fma.rn.f32 %f436, %f31, %f80, %f26;
mov.u16 %rs8, %rs7;
BB0_27:
setp.eq.s16 %p53, %rs8, 0;
@%p53 bra BB0_32;
fma.rn.f32 %f377, %f5, %f434, %f2;
fma.rn.f32 %f378, %f6, %f435, %f3;
fma.rn.f32 %f379, %f7, %f436, %f4;
ld.global.f32 %f380, [ray];
sub.f32 %f381, %f377, %f380;
ld.global.f32 %f382, [ray+4];
sub.f32 %f383, %f378, %f382;
ld.global.f32 %f384, [ray+8];
sub.f32 %f385, %f379, %f384;
mul.f32 %f386, %f383, %f383;
fma.rn.f32 %f387, %f381, %f381, %f386;
fma.rn.f32 %f388, %f385, %f385, %f387;
sqrt.rn.f32 %f376, %f388;
// inline asm
call (%r26), _rt_potential_intersection, (%f376);
// inline asm
setp.eq.s32 %p54, %r26, 0;
@%p54 bra BB0_32;
mul.f32 %f389, %f452, %f452;
fma.rn.f32 %f390, %f451, %f451, %f389;
fma.rn.f32 %f391, %f453, %f453, %f390;
sqrt.rn.f32 %f392, %f391;
rcp.rn.f32 %f393, %f392;
mul.f32 %f394, %f451, %f393;
neg.f32 %f395, %f394;
mul.f32 %f396, %f452, %f393;
neg.f32 %f397, %f396;
mul.f32 %f398, %f453, %f393;
neg.f32 %f399, %f398;
st.global.f32 [normal], %f395;
st.global.f32 [normal+4], %f397;
st.global.f32 [normal+8], %f399;
fma.rn.f32 %f400, %f185, %f434, %f183;
fma.rn.f32 %f401, %f186, %f436, %f184;
fma.rn.f32 %f402, %f1, 0f41200000, %f400;
st.global.v2.f32 [texCoords], {%f402, %f401};
mov.u32 %r28, 0;
// inline asm
call (%r27), _rt_report_intersection, (%r28);
// inline asm
BB0_32:
ret;
}
// .globl _Z4bboxiPN5optix4AabbE
.visible .entry _Z4bboxiPN5optix4AabbE(
.param .u32 _Z4bboxiPN5optix4AabbE_param_0,
.param .u64 _Z4bboxiPN5optix4AabbE_param_1
)
{
.reg .f32 %f<7>;
.reg .b64 %rd<3>;
ld.param.u64 %rd1, [_Z4bboxiPN5optix4AabbE_param_1];
cvta.to.global.u64 %rd2, %rd1;
ld.global.f32 %f1, [heightmapMin];
ld.global.f32 %f2, [heightmapMin+4];
ld.global.f32 %f3, [heightmapMin+8];
st.global.f32 [%rd2+8], %f3;
st.global.f32 [%rd2+4], %f2;
st.global.f32 [%rd2], %f1;
ld.global.f32 %f4, [heightmapMax];
ld.global.f32 %f5, [heightmapMax+4];
ld.global.f32 %f6, [heightmapMax+8];
st.global.f32 [%rd2+20], %f6;
st.global.f32 [%rd2+16], %f5;
st.global.f32 [%rd2+12], %f4;
ret;
}