Skip to content

Instantly share code, notes, and snippets.

@yvt
Last active April 15, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yvt/eb31ac564e19e4bc42d29ad3c4f80578 to your computer and use it in GitHub Desktop.
Save yvt/eb31ac564e19e4bc42d29ad3c4f80578 to your computer and use it in GitHub Desktop.
fetch1.glslをPowerVR Series 6向けにコンパイルした結果.
--------------------- Disassembled HW Code --------------------
0 : frcp i0, sh8
1 : fmul ft0, sh10, i0
mov i2.e0.e1.e2.e3, ft0
mov i3, sh8;
2 : fmul ft0, i2.flr, i3
mov i3, ft0;
3 : fmad ft0, i3.neg, c64, sh10
mov i3, ft0;
4 : fadd ft0, c75, i3
fadd ft1, i2.flr, c75
mov i3, ft0;
mov i2, ft1;
5 : fmul ft0, i3, i0
fmul ft1, i1, i2
mov r1, ft0;
mov r2, ft1;
6 : smp2d.fcnorm.replace drc0, sh4, r1, sh0, sh13, r0, 4;
7 : wdf drc0
--------- Constant Calculations (Executed once) ---------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment