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

342 lines
14 KiB
Plaintext
Raw Normal View History

2024-05-25 09:10:35 +03:00
//
// 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 _Z11interpolatei
.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 8 .b8 texCoords[8];
.global .align 4 .f32 triAlpha;
.global .align 1 .b8 vertex_buffer[1];
.global .align 1 .b8 index_buffer[1];
.global .align 4 .u32 firstAlphaTriangle;
.global .align 1 .b8 vertex_buffer_uv[1];
.global .align 1 .b8 triangleAlphaIDs[1];
.global .align 1 .b8 alphaTextures[1];
.global .align 4 .b8 ray[36];
.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_typeinfo9texCoordsE[8] = {82, 97, 121, 0, 8, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo8triAlphaE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
.global .align 4 .b8 _ZN21rti_internal_typeinfo18firstAlphaTriangleE[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 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 8 .b8 _ZN21rti_internal_typename9texCoordsE[7] = {102, 108, 111, 97, 116, 50, 0};
.global .align 8 .b8 _ZN21rti_internal_typename8triAlphaE[6] = {102, 108, 111, 97, 116, 0};
.global .align 4 .b8 _ZN21rti_internal_typename18firstAlphaTriangleE[4] = {105, 110, 116, 0};
.global .align 4 .b8 _ZN21rti_internal_typename3rayE[4] = {82, 97, 121, 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_typeenum9texCoordsE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum8triAlphaE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum18firstAlphaTriangleE = 4919;
.global .align 4 .u32 _ZN21rti_internal_typeenum3rayE = 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_semantic9texCoordsE[20] = {97, 116, 116, 114, 105, 98, 117, 116, 101, 32, 116, 101, 120, 67, 111, 111, 114, 100, 115, 0};
.global .align 16 .b8 _ZN21rti_internal_semantic8triAlphaE[19] = {97, 116, 116, 114, 105, 98, 117, 116, 101, 32, 116, 114, 105, 65, 108, 112, 104, 97, 0};
.global .align 1 .b8 _ZN21rti_internal_semantic18firstAlphaTriangleE[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 _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_annotation9texCoordsE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation8triAlphaE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation18firstAlphaTriangleE[1];
.global .align 1 .b8 _ZN23rti_internal_annotation3rayE[1];
.visible .entry _Z11interpolatei(
.param .u32 _Z11interpolatei_param_0
)
{
.reg .pred %p<3>;
.reg .f32 %f<134>;
.reg .b32 %r<51>;
.reg .b64 %rd<112>;
ld.param.u32 %r5, [_Z11interpolatei_param_0];
// inline asm
call (%f6, %f7), _rt_get_triangle_barycentrics, ();
// inline asm
cvt.s64.s32 %rd3, %r5;
mov.u64 %rd7, index_buffer;
cvta.global.u64 %rd2, %rd7;
mov.u32 %r6, 1;
mov.u32 %r7, 12;
mov.u64 %rd6, 0;
// inline asm
call (%rd1), _rt_buffer_get_64, (%rd2, %r6, %r7, %rd3, %rd6, %rd6, %rd6);
// inline asm
ld.u32 %r1, [%rd1];
ld.u32 %r2, [%rd1+4];
ld.u32 %r3, [%rd1+8];
ld.global.u32 %r4, [firstAlphaTriangle];
setp.gt.s32 %p1, %r4, %r5;
mov.f32 %f133, 0f3F800000;
sub.f32 %f9, %f133, %f6;
sub.f32 %f3, %f9, %f7;
@%p1 bra BB0_2;
cvt.s64.s32 %rd28, %r3;
sub.s32 %r26, %r5, %r4;
cvt.s64.s32 %rd10, %r26;
mov.u64 %rd53, triangleAlphaIDs;
cvta.global.u64 %rd9, %rd53;
mov.u32 %r22, 4;
// inline asm
call (%rd8), _rt_buffer_get_64, (%rd9, %r6, %r22, %rd10, %rd6, %rd6, %rd6);
// inline asm
ld.u32 %rd54, [%rd8];
cvt.u32.u64 %r27, %rd54;
shr.u32 %r28, %r27, 16;
cvt.s64.s32 %rd16, %r1;
mov.u64 %rd55, vertex_buffer_uv;
cvta.global.u64 %rd15, %rd55;
mov.u32 %r15, 8;
// inline asm
call (%rd14), _rt_buffer_get_64, (%rd15, %r6, %r15, %rd16, %rd6, %rd6, %rd6);
// inline asm
ld.v2.f32 {%f10, %f11}, [%rd14];
cvt.s64.s32 %rd22, %r2;
// inline asm
call (%rd20), _rt_buffer_get_64, (%rd15, %r6, %r15, %rd22, %rd6, %rd6, %rd6);
// inline asm
ld.v2.f32 {%f14, %f15}, [%rd20];
// inline asm
call (%rd26), _rt_buffer_get_64, (%rd15, %r6, %r15, %rd28, %rd6, %rd6, %rd6);
// inline asm
mul.f32 %f18, %f6, %f14;
mul.f32 %f19, %f6, %f15;
fma.rn.f32 %f20, %f3, %f10, %f18;
fma.rn.f32 %f21, %f3, %f11, %f19;
ld.v2.f32 {%f22, %f23}, [%rd26];
fma.rn.f32 %f26, %f7, %f22, %f20;
fma.rn.f32 %f27, %f7, %f23, %f21;
abs.f32 %f28, %f26;
cvt.rmi.f32.f32 %f29, %f28;
sub.f32 %f30, %f28, %f29;
abs.f32 %f31, %f27;
cvt.rmi.f32.f32 %f32, %f31;
sub.f32 %f33, %f31, %f32;
and.b64 %rd34, %rd54, 65535;
mov.u64 %rd56, alphaTextures;
cvta.global.u64 %rd33, %rd56;
// inline asm
call (%rd32), _rt_buffer_get_64, (%rd33, %r6, %r22, %rd34, %rd6, %rd6, %rd6);
// inline asm
ld.u32 %r18, [%rd32];
mov.u32 %r24, 2;
// inline asm
call (%rd38, %rd39, %rd40, %rd41), _rt_buffer_get_id_size_64, (%r18, %r24, %r6);
// inline asm
cvt.rn.f32.u64 %f34, %rd38;
mul.f32 %f35, %f30, %f34;
cvt.rzi.u32.f32 %r29, %f35;
cvt.rn.f32.u64 %f36, %rd39;
mul.f32 %f37, %f33, %f36;
cvt.rzi.u32.f32 %r30, %f37;
// inline asm
call (%rd42), _rt_buffer_get_64, (%rd33, %r6, %r22, %rd34, %rd6, %rd6, %rd6);
// inline asm
ld.u32 %r23, [%rd42];
cvt.u64.u32 %rd49, %r29;
cvt.u64.u32 %rd50, %r30;
// inline asm
call (%rd48), _rt_buffer_get_id_64, (%r23, %r24, %r6, %rd49, %rd50, %rd6, %rd6);
// inline asm
ld.u8 %r31, [%rd48];
and.b32 %r32, %r31, %r28;
setp.eq.s32 %p2, %r32, 0;
selp.f32 %f133, 0f00000000, 0f3F800000, %p2;
BB0_2:
st.global.f32 [triAlpha], %f133;
cvt.s64.s32 %rd95, %r1;
mov.u64 %rd111, vertex_buffer;
cvta.global.u64 %rd58, %rd111;
mov.u32 %r50, 32;
// inline asm
call (%rd57), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd95, %rd6, %rd6, %rd6);
// inline asm
ld.f32 %f38, [%rd57+8];
ld.v2.f32 {%f39, %f40}, [%rd57];
cvt.s64.s32 %rd101, %r2;
// inline asm
call (%rd63), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd101, %rd6, %rd6, %rd6);
// inline asm
ld.f32 %f43, [%rd63+8];
ld.v2.f32 {%f44, %f45}, [%rd63];
cvt.s64.s32 %rd107, %r3;
// inline asm
call (%rd69), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd107, %rd6, %rd6, %rd6);
// inline asm
ld.f32 %f48, [%rd69+8];
ld.v2.f32 {%f49, %f50}, [%rd69];
// inline asm
call (%rd75), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd95, %rd6, %rd6, %rd6);
// inline asm
ld.f32 %f53, [%rd75+20];
ld.f32 %f54, [%rd75+16];
ld.f32 %f55, [%rd75+12];
// inline asm
call (%rd81), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd101, %rd6, %rd6, %rd6);
// inline asm
ld.f32 %f56, [%rd81+20];
ld.f32 %f57, [%rd81+16];
ld.f32 %f58, [%rd81+12];
// inline asm
call (%rd87), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd107, %rd6, %rd6, %rd6);
// inline asm
mul.f32 %f59, %f6, %f58;
mul.f32 %f60, %f6, %f57;
mul.f32 %f61, %f6, %f56;
fma.rn.f32 %f62, %f3, %f55, %f59;
fma.rn.f32 %f63, %f3, %f54, %f60;
fma.rn.f32 %f64, %f3, %f53, %f61;
ld.f32 %f65, [%rd87+20];
ld.f32 %f66, [%rd87+16];
ld.f32 %f67, [%rd87+12];
fma.rn.f32 %f68, %f7, %f67, %f62;
fma.rn.f32 %f69, %f7, %f66, %f63;
fma.rn.f32 %f70, %f7, %f65, %f64;
mul.f32 %f71, %f69, %f69;
fma.rn.f32 %f72, %f68, %f68, %f71;
fma.rn.f32 %f73, %f70, %f70, %f72;
sqrt.rn.f32 %f74, %f73;
rcp.rn.f32 %f75, %f74;
mul.f32 %f76, %f75, %f68;
mul.f32 %f77, %f75, %f69;
mul.f32 %f78, %f75, %f70;
st.global.f32 [normal], %f76;
st.global.f32 [normal+4], %f77;
st.global.f32 [normal+8], %f78;
// inline asm
call (%rd93), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd95, %rd6, %rd6, %rd6);
// inline asm
ld.v2.f32 {%f79, %f80}, [%rd93+24];
// inline asm
call (%rd99), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd101, %rd6, %rd6, %rd6);
// inline asm
ld.v2.f32 {%f83, %f84}, [%rd99+24];
// inline asm
call (%rd105), _rt_buffer_get_64, (%rd58, %r6, %r50, %rd107, %rd6, %rd6, %rd6);
// inline asm
ld.v2.f32 {%f87, %f88}, [%rd105+24];
mul.f32 %f91, %f6, %f83;
fma.rn.f32 %f92, %f3, %f79, %f91;
sub.f32 %f93, %f44, %f39;
sub.f32 %f94, %f45, %f40;
sub.f32 %f95, %f43, %f38;
sub.f32 %f96, %f49, %f39;
sub.f32 %f97, %f50, %f40;
sub.f32 %f98, %f48, %f38;
mul.f32 %f99, %f94, %f98;
mul.f32 %f100, %f95, %f97;
sub.f32 %f101, %f99, %f100;
mul.f32 %f102, %f95, %f96;
mul.f32 %f103, %f93, %f98;
sub.f32 %f104, %f102, %f103;
mul.f32 %f105, %f93, %f97;
mul.f32 %f106, %f94, %f96;
sub.f32 %f107, %f105, %f106;
mul.f32 %f108, %f104, %f104;
fma.rn.f32 %f109, %f101, %f101, %f108;
fma.rn.f32 %f110, %f107, %f107, %f109;
sqrt.rn.f32 %f111, %f110;
mul.f32 %f112, %f111, 0f3F000000;
sub.f32 %f113, %f83, %f79;
sub.f32 %f114, %f84, %f80;
sub.f32 %f115, %f87, %f79;
sub.f32 %f116, %f88, %f80;
mul.f32 %f117, %f114, 0f00000000;
mul.f32 %f118, %f116, 0f00000000;
sub.f32 %f119, %f117, %f118;
mul.f32 %f120, %f115, 0f00000000;
mul.f32 %f121, %f113, 0f00000000;
sub.f32 %f122, %f120, %f121;
mul.f32 %f123, %f113, %f116;
mul.f32 %f124, %f114, %f115;
sub.f32 %f125, %f123, %f124;
mul.f32 %f126, %f122, %f122;
fma.rn.f32 %f127, %f119, %f119, %f126;
fma.rn.f32 %f128, %f125, %f125, %f127;
sqrt.rn.f32 %f129, %f128;
mul.f32 %f130, %f129, 0f3F000000;
div.rn.f32 %f131, %f112, %f130;
fma.rn.f32 %f132, %f7, %f87, %f92;
st.global.v2.f32 [texCoords], {%f132, %f131};
ret;
}