Debian Codegraph @

src/shaders/post_processing/gen7/EOT.g4a

raw
1 /*
2 * Copyright 2000-2011 Intel Corporation All Rights Reserved
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sub license, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
11 *
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial portions
14 * of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 *
24 * This file was originally licensed under the following license
25 *
26 * Licensed under the Apache License, Version 2.0 (the "License");
27 * you may not use this file except in compliance with the License.
28 * You may obtain a copy of the License at
29 *
30 * http://www.apache.org/licenses/LICENSE-2.0
31 *
32 * Unless required by applicable law or agreed to in writing, software
33 * distributed under the License is distributed on an "AS IS" BASIS,
34 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 * See the License for the specific language governing permissions and
36 * limitations under the License.
37 */
38 // 2 // Total instruction count
39 // 1 // Total kernel count
40
41
42
43 // Module name: common.inc
44 //
45 // Common header file for all Video-Processing kernels
46 //
47
48 .default_execution_size (16)
49 .default_register_type :ub
50
51 .reg_count_total 128
52 .reg_count_payload 7
53
54 //========== Common constants ==========
55
56
57 //========== Macros ==========
58
59
60 //Fast Jump, For more details see "Set_Layer_N.asm"
61
62
63 //========== Defines ====================
64
65 //========== Static Parameters (Common To All) ==========
66 //r1
67
68
69 //r2
70
71 // e.g. byte0 byte1 byte2
72 // YUYV 0 1 3
73 // YVYU 0 3 1
74
75 //Color Pipe (IECP) parameters
76
77
78 //ByteCopy
79
80
81 //r4
82
83 // e.g. byte0 byte1 byte2
84 // YUYV 0 1 3
85 // YVYU 0 3 1
86
87
88 //========== Inline parameters (Common To All) ===========
89
90
91 //============== Binding Index Table===========
92 //Common between DNDI and DNUV
93
94
95 //================= Common Message Descriptor =====
96 // Message descriptor for thread spawning
97 // Message Descriptors
98 // = 000 0001 (min message len 1 ) 0,0000 (resp len 0 -add later)
99 // 0000,0000,0000
100 // 0001(Spawn a root thread),0001 (Root thread spawn thread)
101 // = 0x02000011
102 // Thread Spawner Message Descriptor
103
104
105 // Message descriptor for atomic operation add
106 // Message Descriptors
107 // = 000 0110 (min message len 6 ) 0,0000 (resp len 0 -add later)
108 // 1(header present)001,10(typed atomic operation)0(return enabled)0(slot group, low 8 bits),0111 (AOP_Add)
109 // 0000,0000 (Binding table index, added later)
110 // = 0x02000011
111
112 // Atomic Operation Add Message Descriptor
113
114
115 // Message descriptor for dataport media write
116 // Message Descriptors
117 // = 000 0001 (min message len 1 - add later) 00000 (resp len 0)
118 // 1 (header present 1) 0 1010 (media block write) 000000
119 // 00000000 (binding table index - set later)
120 // = 0x020A8000
121
122
123 // Message Length defines
124
125
126 // Response Length defines
127
128
129 // Block Width and Height Size defines
130
131
132 // Extended Message Descriptors
133
134
135 // Common message descriptors:
136
137
138 //===================== Math Function Control ===================================
139
140
141 //============ Message Registers ===============
142 // buf4 starts from r28
143
144
145 //#define mMSGHDR_EOT r43 // Dummy Message Register for EOT
146
147
148 .declare mubMSGPAYLOAD Base=r30 ElementSize=1 SrcRegion=<16;16,1> Type=ub
149 .declare muwMSGPAYLOAD Base=r30 ElementSize=2 SrcRegion=<16;16,1> Type=uw
150 .declare mudMSGPAYLOAD Base=r30 ElementSize=4 SrcRegion=<8;8,1> Type=ud
151 .declare mfMSGPAYLOAD Base=r30 ElementSize=4 SrcRegion=<8;8,1> Type=f
152
153 //=================== End of thread instruction ===========================
154
155
156 //=====================Pointers Used=====================================
157
158
159 //=======================================================================
160
161
162 //r11-r17
163 // Define temp space for any usages
164
165
166 // Common Buffers
167
168
169 // temp space for rotation
170
171 .declare fROBUF Base=r11.0 ElementSize=4 SrcRegion=<8;8,1> DstRegion=<1> Type=f
172
173 .declare udROBUF Base=r11.0 ElementSize=4 SrcRegion=<8;8,1> DstRegion=<1> Type=ud
174
175 .declare uwROBUF Base=r11.0 ElementSize=2 SrcRegion=<16;16,1> DstRegion=<1> Type=uw
176
177 .declare ubROBUF Base=r11.0 ElementSize=1 SrcRegion=<16;16,1> DstRegion=<1> Type=ub
178
179 .declare ub4ROBUF Base=r11.0 ElementSize=1 SrcRegion=<32;8,4> DstRegion=<4> Type=ub
180
181
182 // End of common.inc
183
184
185 //End of Thread message
186
187 mov (8) r127<1>:ud r0.0<8;8,1>:ud
188 send (1) null<1>:d r127 0x27 0x02000010