238 lines
11 KiB
Plaintext
238 lines
11 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 _Z6oxMainv
|
||
|
.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 .b8 payload[12];
|
||
|
.global .align 4 .b8 ray[36];
|
||
|
.global .align 4 .f32 t;
|
||
|
.global .align 1 .b8 lightmapDirect[1];
|
||
|
.global .align 4 .u32 LMID;
|
||
|
.global .align 4 .f32 lightRadius;
|
||
|
.global .align 4 .b8 lightColor[12];
|
||
|
.global .align 4 .u32 SSSInputTex;
|
||
|
.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_typeinfo7payloadE[8] = {82, 97, 121, 0, 12, 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_typeinfo1tE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typeinfo4LMIDE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typeinfo11lightRadiusE[8] = {82, 97, 121, 0, 4, 0, 0, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typeinfo10lightColorE[8] = {82, 97, 121, 0, 12, 0, 0, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typeinfo11SSSInputTexE[8] = {82, 97, 121, 0, 4, 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 16 .b8 _ZN21rti_internal_typename7payloadE[9] = {82, 97, 121, 68, 97, 116, 97, 51, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typename3rayE[4] = {82, 97, 121, 0};
|
||
|
.global .align 8 .b8 _ZN21rti_internal_typename1tE[6] = {102, 108, 111, 97, 116, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typename4LMIDE[4] = {105, 110, 116, 0};
|
||
|
.global .align 8 .b8 _ZN21rti_internal_typename11lightRadiusE[6] = {102, 108, 111, 97, 116, 0};
|
||
|
.global .align 8 .b8 _ZN21rti_internal_typename10lightColorE[7] = {102, 108, 111, 97, 116, 51, 0};
|
||
|
.global .align 4 .b8 _ZN21rti_internal_typename11SSSInputTexE[4] = {105, 110, 116, 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_typeenum7payloadE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum3rayE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum1tE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum4LMIDE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum11lightRadiusE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum10lightColorE = 4919;
|
||
|
.global .align 4 .u32 _ZN21rti_internal_typeenum11SSSInputTexE = 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_semantic7payloadE[10] = {114, 116, 80, 97, 121, 108, 111, 97, 100, 0};
|
||
|
.global .align 16 .b8 _ZN21rti_internal_semantic3rayE[13] = {114, 116, 67, 117, 114, 114, 101, 110, 116, 82, 97, 121, 0};
|
||
|
.global .align 16 .b8 _ZN21rti_internal_semantic1tE[23] = {114, 116, 73, 110, 116, 101, 114, 115, 101, 99, 116, 105, 111, 110, 68, 105, 115, 116, 97, 110, 99, 101, 0};
|
||
|
.global .align 1 .b8 _ZN21rti_internal_semantic4LMIDE[1];
|
||
|
.global .align 1 .b8 _ZN21rti_internal_semantic11lightRadiusE[1];
|
||
|
.global .align 1 .b8 _ZN21rti_internal_semantic10lightColorE[1];
|
||
|
.global .align 1 .b8 _ZN21rti_internal_semantic11SSSInputTexE[1];
|
||
|
.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_annotation7payloadE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation3rayE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation1tE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation4LMIDE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation11lightRadiusE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation10lightColorE[1];
|
||
|
.global .align 1 .b8 _ZN23rti_internal_annotation11SSSInputTexE[1];
|
||
|
|
||
|
.visible .entry _Z6oxMainv(
|
||
|
|
||
|
)
|
||
|
{
|
||
|
.reg .pred %p<5>;
|
||
|
.reg .b16 %rs<4>;
|
||
|
.reg .f32 %f<48>;
|
||
|
.reg .b32 %r<10>;
|
||
|
|
||
|
|
||
|
ld.global.f32 %f2, [normal];
|
||
|
ld.global.f32 %f3, [ray+12];
|
||
|
ld.global.f32 %f4, [ray+16];
|
||
|
ld.global.f32 %f5, [normal+4];
|
||
|
mul.f32 %f6, %f5, %f4;
|
||
|
fma.rn.f32 %f7, %f2, %f3, %f6;
|
||
|
ld.global.f32 %f8, [ray+20];
|
||
|
ld.global.f32 %f9, [normal+8];
|
||
|
fma.rn.f32 %f10, %f9, %f8, %f7;
|
||
|
setp.ltu.f32 %p1, %f10, 0f00000000;
|
||
|
@%p1 bra BB0_3;
|
||
|
bra.uni BB0_1;
|
||
|
|
||
|
BB0_3:
|
||
|
ld.global.f32 %f46, [t];
|
||
|
neg.f32 %f47, %f46;
|
||
|
st.global.f32 [payload], %f47;
|
||
|
st.global.f32 [payload+4], %f47;
|
||
|
st.global.f32 [payload+8], %f47;
|
||
|
bra.uni BB0_4;
|
||
|
|
||
|
BB0_1:
|
||
|
ld.global.f32 %f1, [texCoords];
|
||
|
div.rn.f32 %f11, %f1, 0f41200000;
|
||
|
cvt.rzi.s32.f32 %r1, %f11;
|
||
|
ld.global.u32 %r2, [LMID];
|
||
|
setp.ne.s32 %p2, %r1, %r2;
|
||
|
@%p2 bra BB0_4;
|
||
|
|
||
|
cvt.rzi.s32.f32 %r9, %f1;
|
||
|
cvt.rn.f32.s32 %f19, %r9;
|
||
|
sub.f32 %f12, %f1, %f19;
|
||
|
ld.global.f32 %f13, [texCoords+4];
|
||
|
ld.global.u32 %r7, [SSSInputTex];
|
||
|
mov.u32 %r8, 2;
|
||
|
mov.f32 %f15, 0f00000000;
|
||
|
// inline asm
|
||
|
call (%r3, %r4, %r5, %r6), _rt_texture_get_u_id, (%r7, %r8, %f12, %f13, %f15, %f15);
|
||
|
// inline asm
|
||
|
cvt.u16.u32 %rs1, %r3;
|
||
|
// inline asm
|
||
|
{ cvt.f32.f16 %f16, %rs1;}
|
||
|
|
||
|
// inline asm
|
||
|
cvt.u16.u32 %rs2, %r4;
|
||
|
// inline asm
|
||
|
{ cvt.f32.f16 %f17, %rs2;}
|
||
|
|
||
|
// inline asm
|
||
|
cvt.u16.u32 %rs3, %r5;
|
||
|
// inline asm
|
||
|
{ cvt.f32.f16 %f18, %rs3;}
|
||
|
|
||
|
// inline asm
|
||
|
ld.global.f32 %f20, [t];
|
||
|
ld.global.f32 %f21, [lightRadius];
|
||
|
mul.f32 %f22, %f21, %f20;
|
||
|
neg.f32 %f23, %f22;
|
||
|
mul.f32 %f24, %f22, 0fBFB8AA3B;
|
||
|
cvt.rzi.f32.f32 %f25, %f24;
|
||
|
mov.f32 %f26, 0fBF317200;
|
||
|
fma.rn.f32 %f27, %f25, %f26, %f23;
|
||
|
mov.f32 %f28, 0fB5BFBE8E;
|
||
|
fma.rn.f32 %f29, %f25, %f28, %f27;
|
||
|
mul.f32 %f30, %f29, 0f3FB8AA3B;
|
||
|
ex2.approx.ftz.f32 %f31, %f30;
|
||
|
add.f32 %f32, %f25, 0f00000000;
|
||
|
ex2.approx.f32 %f33, %f32;
|
||
|
mul.f32 %f34, %f31, %f33;
|
||
|
setp.gt.f32 %p3, %f22, 0f42D20000;
|
||
|
selp.f32 %f35, 0f00000000, %f34, %p3;
|
||
|
setp.lt.f32 %p4, %f22, 0fC2D20000;
|
||
|
selp.f32 %f36, 0f7F800000, %f35, %p4;
|
||
|
mul.f32 %f37, %f16, %f36;
|
||
|
mul.f32 %f38, %f17, %f36;
|
||
|
mul.f32 %f39, %f18, %f36;
|
||
|
ld.global.f32 %f40, [lightColor];
|
||
|
mul.f32 %f41, %f40, %f37;
|
||
|
ld.global.f32 %f42, [lightColor+4];
|
||
|
mul.f32 %f43, %f42, %f38;
|
||
|
ld.global.f32 %f44, [lightColor+8];
|
||
|
mul.f32 %f45, %f44, %f39;
|
||
|
st.global.f32 [payload], %f41;
|
||
|
st.global.f32 [payload+4], %f43;
|
||
|
st.global.f32 [payload+8], %f45;
|
||
|
|
||
|
BB0_4:
|
||
|
ret;
|
||
|
}
|
||
|
|
||
|
|