Tizen 2.1 base
[adaptation/xorg-x11-drv-intel.git] / src / xvmc / shader / mc / block_clear.g4i
1 /*
2  * Copyright © 2008 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21  * SOFTWARE.
22  *
23  * Author:
24  *    Zou Nan hai <nanhai.zou@intel.com>
25  *
26  */
27
28 and.nz (1) null g2.0<1,1,1>UD 0x1UD{align1};
29 (f0) jmpi direct_idct;
30 add (1) g2.8<1>UD g76.8<1,1,1>UD 0UD{align1};
31 send (16) 0 g3.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
32 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
33 send (16) 0 g4.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
34 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
35 send (16) 0 g5.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
36 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
37 send (16) 0 g6.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
38 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
39 send (16) 0 g7.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
40 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
41 send (16) 0 g8.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
42 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
43 send (16) 0 g9.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
44 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
45 send (16) 0 g10.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
46 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
47 send (16) 0 g11.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
48 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
49 send (16) 0 g12.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
50 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
51 send (16) 0 g13.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
52 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
53 send (16) 0 g14.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
54 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
55 send (16) 0 g15.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
56 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
57 send (16) 0 g16.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
58 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
59 send (16) 0 g17.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
60 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
61 send (16) 0 g18.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
62 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
63 send (16) 0 g19.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
64 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
65 send (16) 0 g20.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
66 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
67 send (16) 0 g21.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
68 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
69 send (16) 0 g22.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
70 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
71 send (16) 0 g23<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
72 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
73 send (16) 0 g24.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
74 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
75 send (16) 0 g25.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
76 add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
77 send (16) 0 g26.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
78 direct_idct:
79
80 and.nz (1) null g76.12<1,1,1>UW 0x20UW {align1};
81 (f0) jmpi next_block;
82 mov (8) g3.0<1>UW 0UW {align1}; 
83 mov (8) g4.0<1>UW 0UW {align1}; 
84 mov (8) g5.0<1>UW 0UW {align1}; 
85 mov (8) g6.0<1>UW 0UW {align1}; 
86 mov (8) g7.0<1>UW 0UW {align1}; 
87 mov (8) g8.0<1>UW 0UW {align1}; 
88 mov (8) g9.0<1>UW 0UW {align1}; 
89 mov (8) g10.0<1>UW 0UW {align1}; 
90 next_block:
91
92 and.nz (1) null g1.12<1,1,1>UW 0x10UW {align1};
93 (f0) jmpi next_field;
94 mov (8) g3.16<1>UW 0UW {align1}; 
95 mov (8) g4.16<1>UW 0UW {align1}; 
96 mov (8) g5.16<1>UW 0UW {align1}; 
97 mov (8) g6.16<1>UW 0UW {align1}; 
98 mov (8) g7.16<1>UW 0UW {align1}; 
99 mov (8) g8.16<1>UW 0UW {align1}; 
100 mov (8) g9.16<1>UW 0UW {align1}; 
101 mov (8) g10.16<1>UW 0UW {align1}; 
102 next_field:
103 and.nz (1) null g1.12<1,1,1>UW 0x8UW {align1};
104 (f0) jmpi next_field;
105 mov (8) g11.0<1>UW 0UW {align1}; 
106 mov (8) g12.0<1>UW 0UW {align1}; 
107 mov (8) g13.0<1>UW 0UW {align1}; 
108 mov (8) g14.0<1>UW 0UW {align1}; 
109 mov (8) g15.0<1>UW 0UW {align1}; 
110 mov (8) g16.0<1>UW 0UW {align1}; 
111 mov (8) g17.0<1>UW 0UW {align1}; 
112 mov (8) g18.0<1>UW 0UW {align1}; 
113 next_field:
114 and.nz (1) null g1.12<1,1,1>UW 0x4UW {align1};
115 (f0) jmpi next_field;
116 mov (8) g11.16<1>UW 0UW {align1}; 
117 mov (8) g12.16<1>UW 0UW {align1}; 
118 mov (8) g13.16<1>UW 0UW {align1}; 
119 mov (8) g14.16<1>UW 0UW {align1}; 
120 mov (8) g15.16<1>UW 0UW {align1}; 
121 mov (8) g16.16<1>UW 0UW {align1}; 
122 mov (8) g17.16<1>UW 0UW {align1}; 
123 mov (8) g18.16<1>UW 0UW {align1}; 
124 next_field:
125
126 and.nz (1) null g1.12<1,1,1>UW 0x2UW {align1};
127 (f0) jmpi next_field;
128 mov (16) g19.0<1>UW 0UW {align1}; 
129 mov (16) g20.0<1>UW 0UW {align1}; 
130 mov (16) g21.0<1>UW 0UW {align1}; 
131 mov (16) g22.0<1>UW 0UW {align1}; 
132 next_field:
133
134 and.nz (1) null g1.12<1,1,1>UW 0x1UW {align1};
135 (f0) jmpi next_field;
136 mov (16) g23.0<1>UW 0UW {align1}; 
137 mov (16) g24.0<1>UW 0UW {align1}; 
138 mov (16) g25.0<1>UW 0UW {align1}; 
139 mov (16) g26.0<1>UW 0UW {align1}; 
140 next_field: