• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (C) 2010 Jorge Jimenez (jorge@iryoku.com)
3  * Copyright (C) 2010 Belen Masia (bmasia@unizar.es)
4  * Copyright (C) 2010 Jose I. Echevarria (joseignacioechevarria@gmail.com)
5  * Copyright (C) 2010 Fernando Navarro (fernandn@microsoft.com)
6  * Copyright (C) 2010 Diego Gutierrez (diegog@unizar.es)
7  * Copyright (C) 2011 Lauri Kasanen (cand@gmx.com)
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions are met:
12  *
13  *    1. Redistributions of source code must retain the above copyright notice,
14  *       this list of conditions and the following disclaimer.
15  *
16  *    2. Redistributions in binary form must reproduce the following statement:
17  *
18  *       "Uses Jimenez's MLAA. Copyright (C) 2010 by Jorge Jimenez, Belen Masia,
19  *        Jose I. Echevarria, Fernando Navarro and Diego Gutierrez."
20  *
21  *       Only for use in the Mesa project, this point 2 is filled by naming the
22  *       technique Jimenez's MLAA in the Mesa config options.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
25  * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS
28  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  *
36  * The views and conclusions contained in the software and documentation are
37  * those of the authors and should not be interpreted as representing official
38  * policies, either expressed or implied, of the copyright holders.
39  */
40 
41 #ifndef PP_MLAA_H
42 #define PP_MLAA_H
43 
44 #include "postprocess/pp_mlaa_areamap.h"
45 
46 static const char depth1fs[] = "FRAG\n"
47    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
48    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
49    "DCL IN[1], GENERIC[10], PERSPECTIVE\n"
50    "DCL IN[2], GENERIC[11], PERSPECTIVE\n"
51    "DCL OUT[0], COLOR\n"
52    "DCL SAMP[0]\n"
53    "DCL SVIEW[0], 2D, FLOAT\n"
54    "DCL TEMP[0..2]\n"
55    "IMM FLT32 {    0.0030,     0.0000,     1.0000,     0.0000}\n"
56    "  0: TEX TEMP[0].x, IN[1].xyyy, SAMP[0], 2D\n"
57    "  1: MOV TEMP[1].x, TEMP[0].xxxx\n"
58    "  2: TEX TEMP[0].x, IN[1].zwww, SAMP[0], 2D\n"
59    "  3: MOV TEMP[1].y, TEMP[0].xxxx\n"
60    "  4: TEX TEMP[0].x, IN[2].xyyy, SAMP[0], 2D\n"
61    "  5: MOV TEMP[1].z, TEMP[0].xxxx\n"
62    "  6: TEX TEMP[0].x, IN[2].zwww, SAMP[0], 2D\n"
63    "  7: MOV TEMP[1].w, TEMP[0].xxxx\n"
64    "  8: TEX TEMP[0].x, IN[0].xyyy, SAMP[0], 2D\n"
65    "  9: ADD TEMP[2], TEMP[0].xxxx, -TEMP[1]\n"
66    " 10: MOV TEMP[0], |TEMP[2]|\n"
67    " 11: SGE TEMP[2], TEMP[0], IMM[0].xxxx\n"
68    " 12: DP4 TEMP[0].x, TEMP[2], IMM[0].zzzz\n"
69    " 13: SEQ TEMP[1].x, TEMP[0].xxxx, IMM[0].yyyy\n"
70    " 14: IF TEMP[1].xxxx :16\n"
71    " 15:   KILL\n"
72    " 16: ENDIF\n"
73    " 17: MOV OUT[0], TEMP[2]\n"
74    " 18: END\n";
75 
76 
77 static const char color1fs[] = "FRAG\n"
78    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
79    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
80    "DCL IN[1], GENERIC[10], PERSPECTIVE\n"
81    "DCL IN[2], GENERIC[11], PERSPECTIVE\n"
82    "DCL OUT[0], COLOR\n"
83    "DCL SAMP[0]\n"
84    "DCL SVIEW[0], 2D, FLOAT\n"
85    "DCL TEMP[0..2]\n"
86    "IMM FLT32 {    0.2126,     0.7152,     0.0722,     0.1000}\n"
87    "IMM FLT32 {    1.0000,     0.0000,     0.0000,     0.0000}\n"
88    "  0: TEX TEMP[1].xyz, IN[1].xyyy, SAMP[0], 2D\n"
89    "  1: DP3 TEMP[0].x, TEMP[1].xyzz, IMM[0]\n"
90    "  2: TEX TEMP[1].xyz, IN[1].zwww, SAMP[0], 2D\n"
91    "  3: DP3 TEMP[0].y, TEMP[1].xyzz, IMM[0].xyzz\n"
92    "  4: TEX TEMP[1].xyz, IN[2].xyyy, SAMP[0], 2D\n"
93    "  5: DP3 TEMP[0].z, TEMP[1].xyzz, IMM[0].xyzz\n"
94    "  6: TEX TEMP[1].xyz, IN[2].zwww, SAMP[0], 2D\n"
95    "  7: DP3 TEMP[0].w, TEMP[1].xyzz, IMM[0].xyzz\n"
96    "  8: TEX TEMP[1].xyz, IN[0].xyyy, SAMP[0], 2D\n"
97    "  9: DP3 TEMP[2].x, TEMP[1].xyzz, IMM[0].xyzz\n"
98    " 10: ADD TEMP[1], TEMP[2].xxxx, -TEMP[0]\n"
99    " 11: MOV TEMP[0], |TEMP[1]|\n"
100    " 12: SGE TEMP[2], TEMP[0], IMM[0].wwww\n"
101    " 13: DP4 TEMP[0].x, TEMP[2], IMM[1].xxxx\n"
102    " 14: SEQ TEMP[1].x, TEMP[0].xxxx, IMM[1].yyyy\n"
103    " 15: IF TEMP[1].xxxx :17\n"
104    " 16:   KILL\n"
105    " 17: ENDIF\n"
106    " 18: MOV OUT[0], TEMP[2]\n"
107    " 19: END\n";
108 
109 
110 static const char neigh3fs[] = "FRAG\n"
111    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
112    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
113    "DCL IN[1], GENERIC[10], PERSPECTIVE\n"
114    "DCL IN[2], GENERIC[11], PERSPECTIVE\n"
115    "DCL OUT[0], COLOR\n"
116    "DCL SAMP[0]\n"
117    "DCL SVIEW[0], 2D, FLOAT\n"
118    "DCL SAMP[1]\n"
119    "DCL TEMP[0..8]\n"
120    "IMM FLT32 {    1.0000,     0.00001,     0.0000,     0.0000}\n"
121    "  0: TEX TEMP[0], IN[0].xyyy, SAMP[1], 2D\n"
122    "  1: MOV TEMP[1].x, TEMP[0].xxxx\n"
123    "  2: TEX TEMP[2].y, IN[2].zwww, SAMP[1], 2D\n"
124    "  3: MOV TEMP[1].y, TEMP[2].yyyy\n"
125    "  4: MOV TEMP[1].z, TEMP[0].zzzz\n"
126    "  5: TEX TEMP[1].w, IN[2].xyyy, SAMP[1], 2D\n"
127    "  6: MUL TEMP[4], TEMP[1], TEMP[1]\n"
128    "  7: MUL TEMP[5], TEMP[4], TEMP[1]\n"
129    "  8: DP4 TEMP[1].x, TEMP[5], IMM[0].xxxx\n"
130    "  9: SLT TEMP[4].x, TEMP[1].xxxx, IMM[0].yyyy\n"
131    " 10: IF TEMP[4].xxxx :12\n"
132    " 11:   KILL\n"
133    " 12: ENDIF\n"
134    " 13: TEX TEMP[4], IN[0].xyyy, SAMP[0], 2D\n"
135    " 14: TEX TEMP[6], IN[1].zwww, SAMP[0], 2D\n"
136    " 15: ADD TEMP[7].x, IMM[0].xxxx, -TEMP[0].xxxx\n"
137    " 16: MUL TEMP[8], TEMP[4], TEMP[7].xxxx\n"
138    " 17: MAD TEMP[7], TEMP[6], TEMP[0].xxxx, TEMP[8]\n"
139    " 18: MUL TEMP[6], TEMP[7], TEMP[5].xxxx\n"
140    " 19: TEX TEMP[7], IN[2].zwww, SAMP[0], 2D\n"
141    " 20: ADD TEMP[8].x, IMM[0].xxxx, -TEMP[2].yyyy\n"
142    " 21: MUL TEMP[3], TEMP[4], TEMP[8].xxxx\n"
143    " 22: MAD TEMP[8], TEMP[7], TEMP[2].yyyy, TEMP[3]\n"
144    " 23: MAD TEMP[2], TEMP[8], TEMP[5].yyyy, TEMP[6]\n"
145    " 24: TEX TEMP[6], IN[1].xyyy, SAMP[0], 2D\n"
146    " 25: ADD TEMP[7].x, IMM[0].xxxx, -TEMP[0].zzzz\n"
147    " 26: MUL TEMP[8], TEMP[4], TEMP[7].xxxx\n"
148    " 27: MAD TEMP[7], TEMP[6], TEMP[0].zzzz, TEMP[8]\n"
149    " 28: MAD TEMP[0], TEMP[7], TEMP[5].zzzz, TEMP[2]\n"
150    " 29: TEX TEMP[2], IN[2].xyyy, SAMP[0], 2D\n"
151    " 30: ADD TEMP[6].x, IMM[0].xxxx, -TEMP[1].wwww\n"
152    " 31: MUL TEMP[7], TEMP[4], TEMP[6].xxxx\n"
153    " 32: MAD TEMP[4], TEMP[2], TEMP[1].wwww, TEMP[7]\n"
154    " 33: MAD TEMP[2], TEMP[4], TEMP[5].wwww, TEMP[0]\n"
155    " 34: RCP TEMP[0].x, TEMP[1].xxxx\n"
156    " 35: MUL OUT[0], TEMP[2], TEMP[0].xxxx\n"
157    " 36: END\n";
158 
159 
160 static const char offsetvs[] = "VERT\n"
161    "DCL IN[0]\n"
162    "DCL IN[1]\n"
163    "DCL OUT[0], POSITION\n"
164    "DCL OUT[1], GENERIC[0]\n"
165    "DCL OUT[2], GENERIC[10]\n"
166    "DCL OUT[3], GENERIC[11]\n"
167    "DCL CONST[0][0]\n"
168    "IMM FLT32 {    1.0000,     0.0000,    -1.0000,     0.0000}\n"
169    "  0: MOV OUT[0], IN[0]\n"
170    "  1: MOV OUT[1], IN[1]\n"
171    "  2: MAD OUT[2], CONST[0][0].xyxy, IMM[0].zyyz, IN[1].xyxy\n"
172    "  3: MAD OUT[3], CONST[0][0].xyxy, IMM[0].xyyx, IN[1].xyxy\n"
173    "  4: END\n";
174 
175 
176 static const char blend2fs_1[] = "FRAG\n"
177    "PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1\n"
178    "DCL IN[0], GENERIC[0], PERSPECTIVE\n"
179    "DCL OUT[0], COLOR\n"
180    "DCL SAMP[0]\n"
181    "DCL SVIEW[0], 2D, FLOAT\n"
182    "DCL SAMP[1]\n"
183    "DCL SVIEW[1], 2D, FLOAT\n"
184    "DCL SAMP[2]\n"
185    "DCL SVIEW[2], 2D, FLOAT\n"
186    "DCL CONST[0][0]\n"
187    "DCL TEMP[0..6]\n"
188    "IMM FLT32 {    0.0000,    -0.2500,     0.00609756,     0.5000}\n"
189    "IMM FLT32 {   -1.5000,    -2.0000,     0.9000,     1.5000}\n"
190    "IMM FLT32 {    2.0000,     1.0000,     4.0000,    33.0000}\n";
191 
192 static const char blend2fs_2[] =
193    "  0: MOV TEMP[0], IMM[0].xxxx\n"
194    "  1: TEX TEMP[1], IN[0].xyyy, SAMP[1], 2D\n"
195    "  2: MOV TEMP[2].x, TEMP[1]\n"
196    "  3: SNE TEMP[3].x, TEMP[1].yyyy, IMM[0].xxxx\n"
197    "  4: IF TEMP[3].xxxx :76\n"
198    "  5:   MOV TEMP[1].xy, IN[0].xyxx\n"
199    "  6:   MOV TEMP[4].x, IMM[1].xxxx\n"
200    "  7:   BGNLOOP :24\n"
201    "  8:     MUL TEMP[5].x, IMM[1].yyyy, IMM[3].xxxx\n"
202    "  9:     SLE TEMP[6].x, TEMP[4].xxxx, TEMP[5].xxxx\n"
203    " 10:     IF TEMP[6].xxxx :12\n"
204    " 11:       BRK\n"
205    " 12:     ENDIF\n"
206    " 13:     MOV TEMP[4].y, IMM[0].xxxx\n"
207    " 14:     MAD TEMP[3].xyz, CONST[0][0].xyyy, TEMP[4].xyyy, TEMP[1].xyyy\n"
208    " 15:     MOV TEMP[3].w, IMM[0].xxxx\n"
209    " 16:     TXL TEMP[5], TEMP[3], SAMP[2], 2D\n"
210    " 17:     MOV TEMP[3].x, TEMP[5].yyyy\n"
211    " 18:     SLT TEMP[6].x, TEMP[5].yyyy, IMM[1].zzzz\n"
212    " 19:     IF TEMP[6].xxxx :21\n"
213    " 20:       BRK\n"
214    " 21:     ENDIF\n"
215    " 22:     ADD TEMP[6].x, TEMP[4].xxxx, IMM[1].yyyy\n"
216    " 23:     MOV TEMP[4].x, TEMP[6].xxxx\n"
217    " 24:   ENDLOOP :7\n"
218    " 25:   ADD TEMP[1].x, TEMP[4].xxxx, IMM[1].wwww\n"
219    " 26:   MAD TEMP[6].x, -IMM[2].xxxx, TEMP[3].xxxx, TEMP[1].xxxx\n"
220    " 27:   MUL TEMP[1].x, IMM[1].yyyy, IMM[3].xxxx\n"
221    " 28:   MAX TEMP[4].x, TEMP[6].xxxx, TEMP[1].xxxx\n"
222    " 29:   MOV TEMP[1].x, TEMP[4].xxxx\n"
223    " 30:   MOV TEMP[3].xy, IN[0].xyxx\n"
224    " 31:   MOV TEMP[5].x, IMM[1].wwww\n"
225    " 32:   BGNLOOP :49\n"
226    " 33:     MUL TEMP[6].x, IMM[2].xxxx, IMM[3].xxxx\n"
227    " 34:     SGE TEMP[4].x, TEMP[5].xxxx, TEMP[6].xxxx\n"
228    " 35:     IF TEMP[4].xxxx :37\n"
229    " 36:       BRK\n"
230    " 37:     ENDIF\n"
231    " 38:     MOV TEMP[5].y, IMM[0].xxxx\n"
232    " 39:     MAD TEMP[4].xyz, CONST[0][0].xyyy, TEMP[5].xyyy, TEMP[3].xyyy\n"
233    " 40:     MOV TEMP[4].w, IMM[0].xxxx\n"
234    " 41:     TXL TEMP[6].xy, TEMP[4], SAMP[2], 2D\n"
235    " 42:     MOV TEMP[4].x, TEMP[6].yyyy\n"
236    " 43:     SLT TEMP[0].x, TEMP[6].yyyy, IMM[1].zzzz\n"
237    " 44:     IF TEMP[0].xxxx :46\n"
238    " 45:       BRK\n"
239    " 46:     ENDIF\n"
240    " 47:     ADD TEMP[6].x, TEMP[5].xxxx, IMM[2].xxxx\n"
241    " 48:     MOV TEMP[5].x, TEMP[6].xxxx\n"
242    " 49:   ENDLOOP :32\n"
243    " 50:   ADD TEMP[3].x, TEMP[5].xxxx, IMM[1].xxxx\n"
244    " 51:   MAD TEMP[5].x, IMM[2].xxxx, TEMP[4].xxxx, TEMP[3].xxxx\n"
245    " 52:   MUL TEMP[3].x, IMM[2].xxxx, IMM[3].xxxx\n"
246    " 53:   MIN TEMP[4].x, TEMP[5].xxxx, TEMP[3].xxxx\n"
247    " 54:   MOV TEMP[3].x, TEMP[1].xxxx\n"
248    " 55:   MOV TEMP[3].y, TEMP[4].xxxx\n"
249    " 56:   MOV TEMP[5].yw, IMM[0].yyyy\n"
250    " 57:   MOV TEMP[5].x, TEMP[1].xxxx\n"
251    " 58:   ADD TEMP[1].x, TEMP[4].xxxx, IMM[2].yyyy\n"
252    " 59:   MOV TEMP[5].z, TEMP[1].xxxx\n"
253    " 60:   MAD TEMP[1], TEMP[5], CONST[0][0].xyxy, IN[0].xyxy\n"
254    " 61:   MOV TEMP[4], TEMP[1].xyyy\n"
255    " 62:   MOV TEMP[4].w, IMM[0].xxxx\n"
256    " 63:   TXL TEMP[5].x, TEMP[4], SAMP[2], 2D\n"
257    " 64:   MOV TEMP[4].x, TEMP[5].xxxx\n"
258    " 65:   MOV TEMP[5], TEMP[1].zwww\n"
259    " 66:   MOV TEMP[5].w, IMM[0].xxxx\n"
260    " 67:   TXL TEMP[1].x, TEMP[5], SAMP[2], 2D\n"
261    " 68:   MOV TEMP[4].y, TEMP[1].xxxx\n"
262    " 69:   MUL TEMP[5].xy, IMM[2].zzzz, TEMP[4].xyyy\n"
263    " 70:   ROUND TEMP[1].xy, TEMP[5].xyyy\n"
264    " 71:   MOV TEMP[4].xy, |TEMP[3].xyyy|\n"
265    " 72:   MAD TEMP[3].xy, IMM[2].wwww, TEMP[1].xyyy, TEMP[4].xyyy\n"
266    " 73:   MUL TEMP[5].xyz, TEMP[3].xyyy, IMM[0].zzzz\n"
267    " 74:   MOV TEMP[5].w, IMM[0].xxxx\n"
268    " 75:   TXL TEMP[0].xy, TEMP[5], SAMP[0], 2D\n"
269    " 76: ENDIF\n"
270    " 77: SNE TEMP[1].x, TEMP[2].xxxx, IMM[0].xxxx\n"
271    " 78: IF TEMP[1].xxxx :151\n"
272    " 79:   MOV TEMP[1].xy, IN[0].xyxx\n"
273    " 80:   MOV TEMP[3].x, IMM[1].xxxx\n"
274    " 81:   BGNLOOP :98\n"
275    " 82:     MUL TEMP[4].x, IMM[1].yyyy, IMM[3].xxxx\n"
276    " 83:     SLE TEMP[5].x, TEMP[3].xxxx, TEMP[4].xxxx\n"
277    " 84:     IF TEMP[5].xxxx :86\n"
278    " 85:       BRK\n"
279    " 86:     ENDIF\n"
280    " 87:     MOV TEMP[3].y, IMM[0].xxxx\n"
281    " 88:     MAD TEMP[5].xyz, CONST[0][0].xyyy, TEMP[3].yxxx, TEMP[1].xyyy\n"
282    " 89:     MOV TEMP[5].w, IMM[0].xxxx\n"
283    " 90:     TXL TEMP[4], TEMP[5], SAMP[2], 2D\n"
284    " 91:     MOV TEMP[2].x, TEMP[4].xxxx\n"
285    " 92:     SLT TEMP[5].x, TEMP[4].xxxx, IMM[1].zzzz\n"
286    " 93:     IF TEMP[5].xxxx :95\n"
287    " 94:       BRK\n"
288    " 95:     ENDIF\n"
289    " 96:     ADD TEMP[4].x, TEMP[3].xxxx, IMM[1].yyyy\n"
290    " 97:     MOV TEMP[3].x, TEMP[4].xxxx\n"
291    " 98:   ENDLOOP :81\n"
292    " 99:   ADD TEMP[1].x, TEMP[3].xxxx, IMM[1].wwww\n"
293    "100:   MAD TEMP[6].x, -IMM[2].xxxx, TEMP[2].xxxx, TEMP[1].xxxx\n"
294    "101:   MUL TEMP[1].x, IMM[1].yyyy, IMM[3].xxxx\n"
295    "102:   MAX TEMP[3].x, TEMP[6].xxxx, TEMP[1].xxxx\n"
296    "103:   MOV TEMP[1].x, TEMP[3].xxxx\n"
297    "104:   MOV TEMP[2].xy, IN[0].xyxx\n"
298    "105:   MOV TEMP[4].x, IMM[1].wwww\n"
299    "106:   BGNLOOP :123\n"
300    "107:     MUL TEMP[5].x, IMM[2].xxxx, IMM[3].xxxx\n"
301    "108:     SGE TEMP[6].x, TEMP[4].xxxx, TEMP[5].xxxx\n"
302    "109:     IF TEMP[6].xxxx :111\n"
303    "110:       BRK\n"
304    "111:     ENDIF\n"
305    "112:     MOV TEMP[4].y, IMM[0].xxxx\n"
306    "113:     MAD TEMP[5].xyz, CONST[0][0].xyyy, TEMP[4].yxxx, TEMP[2].xyyy\n"
307    "114:     MOV TEMP[5].w, IMM[0].xxxx\n"
308    "115:     TXL TEMP[6], TEMP[5], SAMP[2], 2D\n"
309    "116:     MOV TEMP[3].x, TEMP[6].xxxx\n"
310    "117:     SLT TEMP[5].x, TEMP[6].xxxx, IMM[1].zzzz\n"
311    "118:     IF TEMP[5].xxxx :120\n"
312    "119:       BRK\n"
313    "120:     ENDIF\n"
314    "121:     ADD TEMP[6].x, TEMP[4].xxxx, IMM[2].xxxx\n"
315    "122:     MOV TEMP[4].x, TEMP[6].xxxx\n"
316    "123:   ENDLOOP :106\n"
317    "124:   ADD TEMP[2].x, TEMP[4].xxxx, IMM[1].xxxx\n"
318    "125:   MAD TEMP[4].x, IMM[2].xxxx, TEMP[3].xxxx, TEMP[2].xxxx\n"
319    "126:   MUL TEMP[2].x, IMM[2].xxxx, IMM[3].xxxx\n"
320    "127:   MIN TEMP[3].x, TEMP[4].xxxx, TEMP[2].xxxx\n"
321    "128:   MOV TEMP[2].x, TEMP[1].xxxx\n"
322    "129:   MOV TEMP[2].y, TEMP[3].xxxx\n"
323    "130:   MOV TEMP[4].xz, IMM[0].yyyy\n"
324    "131:   MOV TEMP[4].y, TEMP[1].xxxx\n"
325    "132:   ADD TEMP[1].x, TEMP[3].xxxx, IMM[2].yyyy\n"
326    "133:   MOV TEMP[4].w, TEMP[1].xxxx\n"
327    "134:   MAD TEMP[1], TEMP[4], CONST[0][0].xyxy, IN[0].xyxy\n"
328    "135:   MOV TEMP[3], TEMP[1].xyyy\n"
329    "136:   MOV TEMP[3].w, IMM[0].xxxx\n"
330    "137:   TXL TEMP[4].y, TEMP[3], SAMP[2], 2D\n"
331    "138:   MOV TEMP[3].x, TEMP[4].yyyy\n"
332    "139:   MOV TEMP[4], TEMP[1].zwww\n"
333    "140:   MOV TEMP[4].w, IMM[0].xxxx\n"
334    "141:   TXL TEMP[1].y, TEMP[4], SAMP[2], 2D\n"
335    "142:   MOV TEMP[3].y, TEMP[1].yyyy\n"
336    "143:   MUL TEMP[4].xy, IMM[2].zzzz, TEMP[3].xyyy\n"
337    "144:   ROUND TEMP[1].xy, TEMP[4].xyyy\n"
338    "145:   MOV TEMP[3].xy, |TEMP[2].xyyy|\n"
339    "146:   MAD TEMP[2].xy, IMM[2].wwww, TEMP[1].xyyy, TEMP[3].xyyy\n"
340    "147:   MUL TEMP[3].xyz, TEMP[2].xyyy, IMM[0].zzzz\n"
341    "148:   MOV TEMP[3].w, IMM[0].xxxx\n"
342    "149:   TXL TEMP[1].xy, TEMP[3], SAMP[0], 2D\n"
343    "150:   MOV TEMP[0].zw, TEMP[1].yyxy\n"
344    "151: ENDIF\n"
345    "152: MOV OUT[0], TEMP[0]\n"
346    "153: END\n";
347 
348 #endif
349