• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef GEN_RENDER_MEDIA_XML
2 #define GEN_RENDER_MEDIA_XML
3 
4 /* Autogenerated file, DO NOT EDIT manually!
5 
6 This file was generated by the rules-ng-ng headergen tool in this git repository:
7 https://github.com/olvaffe/envytools/
8 git clone https://github.com/olvaffe/envytools.git
9 
10 Copyright (C) 2014-2015 by the following authors:
11 - Chia-I Wu <olvaffe@gmail.com> (olv)
12 
13 Permission is hereby granted, free of charge, to any person obtaining
14 a copy of this software and associated documentation files (the
15 "Software"), to deal in the Software without restriction, including
16 without limitation the rights to use, copy, modify, merge, publish,
17 distribute, sublicense, and/or sell copies of the Software, and to
18 permit persons to whom the Software is furnished to do so, subject to
19 the following conditions:
20 
21 The above copyright notice and this permission notice (including the
22 next paragraph) shall be included in all copies or substantial
23 portions of the Software.
24 
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
29 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 */
33 
34 
35 #define GEN6_INTERFACE_DESCRIPTOR_DATA__SIZE			8
36 
37 #define GEN6_IDRT_DW0_KERNEL_ADDR__MASK				0xffffffc0
38 #define GEN6_IDRT_DW0_KERNEL_ADDR__SHIFT			6
39 #define GEN6_IDRT_DW0_KERNEL_ADDR__SHR				6
40 
41 #define GEN6_IDRT_DW1_SPF					(0x1 << 18)
42 #define GEN6_IDRT_DW1_PRIORITY_HIGH				(0x1 << 17)
43 #define GEN6_IDRT_DW1_FP_MODE_ALT				(0x1 << 16)
44 #define GEN6_IDRT_DW1_ILLEGAL_CODE_EXCEPTION			(0x1 << 13)
45 #define GEN6_IDRT_DW1_MASK_STACK_EXCEPTION			(0x1 << 11)
46 #define GEN6_IDRT_DW1_SOFTWARE_EXCEPTION			(0x1 << 7)
47 
48 #define GEN6_IDRT_DW2_SAMPLER_COUNT__MASK			0x0000001c
49 #define GEN6_IDRT_DW2_SAMPLER_COUNT__SHIFT			2
50 #define GEN6_IDRT_DW2_SAMPLER_ADDR__MASK			0xffffffe0
51 #define GEN6_IDRT_DW2_SAMPLER_ADDR__SHIFT			5
52 #define GEN6_IDRT_DW2_SAMPLER_ADDR__SHR				5
53 
54 #define GEN6_IDRT_DW3_BINDING_TABLE_SIZE__MASK			0x0000001f
55 #define GEN6_IDRT_DW3_BINDING_TABLE_SIZE__SHIFT			0
56 
57 #define GEN6_IDRT_DW4_CURBE_READ_LEN__MASK			0xffff0000
58 #define GEN6_IDRT_DW4_CURBE_READ_LEN__SHIFT			16
59 #define GEN6_IDRT_DW4_CURBE_READ_OFFSET__MASK			0x0000ffff
60 #define GEN6_IDRT_DW4_CURBE_READ_OFFSET__SHIFT			0
61 
62 #define GEN6_IDRT_DW5_BARRIER_ID__MASK				0x0000000f
63 #define GEN6_IDRT_DW5_BARRIER_ID__SHIFT				0
64 
65 #define GEN7_IDRT_DW5_BARRIER_RETURN_GRF__MASK			0xff000000
66 #define GEN7_IDRT_DW5_BARRIER_RETURN_GRF__SHIFT			24
67 #define GEN7_IDRT_DW5_ROUNDING_MODE__MASK			0x00c00000
68 #define GEN7_IDRT_DW5_ROUNDING_MODE__SHIFT			22
69 #define GEN7_IDRT_DW5_ROUNDING_MODE_RTNE			(0x0 << 22)
70 #define GEN7_IDRT_DW5_ROUNDING_MODE_RU				(0x1 << 22)
71 #define GEN7_IDRT_DW5_ROUNDING_MODE_RD				(0x2 << 22)
72 #define GEN7_IDRT_DW5_ROUNDING_MODE_RTZ				(0x3 << 22)
73 #define GEN7_IDRT_DW5_BARRIER_ENABLE				(0x1 << 21)
74 #define GEN7_IDRT_DW5_SLM_SIZE__MASK				0x001f0000
75 #define GEN7_IDRT_DW5_SLM_SIZE__SHIFT				16
76 #define GEN7_IDRT_DW5_BARRIER_RETURN_BYTE__MASK			0x0000ff00
77 #define GEN7_IDRT_DW5_BARRIER_RETURN_BYTE__SHIFT		8
78 #define GEN7_IDRT_DW5_THREAD_GROUP_SIZE__MASK			0x000000ff
79 #define GEN7_IDRT_DW5_THREAD_GROUP_SIZE__SHIFT			0
80 
81 #define GEN75_IDRT_DW6_CROSS_THREAD_CURBE_READ_LEN__MASK	0x000000ff
82 #define GEN75_IDRT_DW6_CROSS_THREAD_CURBE_READ_LEN__SHIFT	0
83 
84 
85 
86 #define GEN8_IDRT_DW0_KERNEL_ADDR__MASK				0xffffffc0
87 #define GEN8_IDRT_DW0_KERNEL_ADDR__SHIFT			6
88 #define GEN8_IDRT_DW0_KERNEL_ADDR__SHR				6
89 
90 
91 #define GEN8_IDRT_DW2_THREAD_PREEMPTION_DISABLE			(0x1 << 20)
92 #define GEN8_IDRT_DW2_DENORM__MASK				0x00080000
93 #define GEN8_IDRT_DW2_DENORM__SHIFT				19
94 #define GEN8_IDRT_DW2_DENORM_FTZ				(0x0 << 19)
95 #define GEN8_IDRT_DW2_DENORM_RET				(0x1 << 19)
96 #define GEN8_IDRT_DW2_SPF					(0x1 << 18)
97 #define GEN8_IDRT_DW2_PRIORITY_HIGH				(0x1 << 17)
98 #define GEN8_IDRT_DW2_FP_MODE_ALT				(0x1 << 16)
99 #define GEN8_IDRT_DW2_ILLEGAL_CODE_EXCEPTION			(0x1 << 13)
100 #define GEN8_IDRT_DW2_MASK_STACK_EXCEPTION			(0x1 << 11)
101 #define GEN8_IDRT_DW2_SOFTWARE_EXCEPTION			(0x1 << 7)
102 
103 #define GEN8_IDRT_DW3_SAMPLER_COUNT__MASK			0x0000001c
104 #define GEN8_IDRT_DW3_SAMPLER_COUNT__SHIFT			2
105 #define GEN8_IDRT_DW3_SAMPLER_ADDR__MASK			0xffffffe0
106 #define GEN8_IDRT_DW3_SAMPLER_ADDR__SHIFT			5
107 #define GEN8_IDRT_DW3_SAMPLER_ADDR__SHR				5
108 
109 #define GEN8_IDRT_DW4_BINDING_TABLE_SIZE__MASK			0x0000001f
110 #define GEN8_IDRT_DW4_BINDING_TABLE_SIZE__SHIFT			0
111 
112 #define GEN8_IDRT_DW5_CURBE_READ_LEN__MASK			0xffff0000
113 #define GEN8_IDRT_DW5_CURBE_READ_LEN__SHIFT			16
114 #define GEN8_IDRT_DW5_CURBE_READ_OFFSET__MASK			0x0000ffff
115 #define GEN8_IDRT_DW5_CURBE_READ_OFFSET__SHIFT			0
116 
117 #define GEN8_IDRT_DW6_ROUNDING_MODE__MASK			0x00c00000
118 #define GEN8_IDRT_DW6_ROUNDING_MODE__SHIFT			22
119 #define GEN8_IDRT_DW6_ROUNDING_MODE_RTNE			(0x0 << 22)
120 #define GEN8_IDRT_DW6_ROUNDING_MODE_RU				(0x1 << 22)
121 #define GEN8_IDRT_DW6_ROUNDING_MODE_RD				(0x2 << 22)
122 #define GEN8_IDRT_DW6_ROUNDING_MODE_RTZ				(0x3 << 22)
123 #define GEN8_IDRT_DW6_BARRIER_ENABLE				(0x1 << 21)
124 #define GEN8_IDRT_DW6_SLM_SIZE__MASK				0x001f0000
125 #define GEN8_IDRT_DW6_SLM_SIZE__SHIFT				16
126 #define GEN8_IDRT_DW6_THREAD_GROUP_SIZE__MASK			0x000003ff
127 #define GEN8_IDRT_DW6_THREAD_GROUP_SIZE__SHIFT			0
128 
129 #define GEN8_IDRT_DW7_CROSS_THREAD_CURBE_READ_LEN__MASK		0x000000ff
130 #define GEN8_IDRT_DW7_CROSS_THREAD_CURBE_READ_LEN__SHIFT	0
131 
132 #define GEN6_MEDIA_VFE_STATE__SIZE				9
133 
134 
135 #define GEN6_VFE_DW1_SCRATCH_STACK_SIZE__MASK			0x000000f0
136 #define GEN6_VFE_DW1_SCRATCH_STACK_SIZE__SHIFT			4
137 #define GEN6_VFE_DW1_SCRATCH_SPACE_PER_THREAD__MASK		0x0000000f
138 #define GEN6_VFE_DW1_SCRATCH_SPACE_PER_THREAD__SHIFT		0
139 #define GEN6_VFE_DW1_SCRATCH_ADDR__MASK				0xfffffc00
140 #define GEN6_VFE_DW1_SCRATCH_ADDR__SHIFT			10
141 #define GEN6_VFE_DW1_SCRATCH_ADDR__SHR				10
142 
143 #define GEN6_VFE_DW2_MAX_THREADS__MASK				0xffff0000
144 #define GEN6_VFE_DW2_MAX_THREADS__SHIFT				16
145 #define GEN6_VFE_DW2_URB_ENTRY_COUNT__MASK			0x0000ff00
146 #define GEN6_VFE_DW2_URB_ENTRY_COUNT__SHIFT			8
147 #define GEN6_VFE_DW2_RESET_GATEWAY_TIMER			(0x1 << 7)
148 #define GEN6_VFE_DW2_BYPASS_GATEWAY_CONTROL			(0x1 << 6)
149 #define GEN6_VFE_DW2_FAST_PREEMPT				(0x1 << 5)
150 #define GEN7_VFE_DW2_GATEWAY_MMIO__MASK				0x00000018
151 #define GEN7_VFE_DW2_GATEWAY_MMIO__SHIFT			3
152 #define GEN7_VFE_DW2_GATEWAY_MMIO_NONE				(0x0 << 3)
153 #define GEN7_VFE_DW2_GATEWAY_MMIO_ANY				(0x2 << 3)
154 #define GEN7_VFE_DW2_GPGPU_MODE					(0x1 << 2)
155 
156 #define GEN75_VFE_DW3_HALF_SLICE_DISABLE__MASK			0x00000003
157 #define GEN75_VFE_DW3_HALF_SLICE_DISABLE__SHIFT			0
158 #define GEN75_VFE_DW3_HALF_SLICE_DISABLE_NONE			0x0
159 #define GEN75_VFE_DW3_HALF_SLICE_DISABLE_23			0x1
160 #define GEN75_VFE_DW3_HALF_SLICE_DISABLE_123			0x3
161 
162 #define GEN6_VFE_DW4_URB_ENTRY_SIZE__MASK			0xffff0000
163 #define GEN6_VFE_DW4_URB_ENTRY_SIZE__SHIFT			16
164 #define GEN6_VFE_DW4_CURBE_SIZE__MASK				0x0000ffff
165 #define GEN6_VFE_DW4_CURBE_SIZE__SHIFT				0
166 
167 #define GEN6_VFE_DW5_SCOREBOARD_ENABLE				(0x1 << 31)
168 #define GEN6_VFE_DW5_SCOREBOARD_TYPE__MASK			0x40000000
169 #define GEN6_VFE_DW5_SCOREBOARD_TYPE__SHIFT			30
170 #define GEN6_VFE_DW5_SCOREBOARD_TYPE_STALLING			(0x0 << 30)
171 #define GEN6_VFE_DW5_SCOREBOARD_TYPE_NON_STALLING		(0x1 << 30)
172 #define GEN6_VFE_DW5_SCOREBOARD_MASK__MASK			0x000000ff
173 #define GEN6_VFE_DW5_SCOREBOARD_MASK__SHIFT			0
174 
175 
176 
177 
178 #define GEN8_VFE_DW1_SCRATCH_STACK_SIZE__MASK			0x000000f0
179 #define GEN8_VFE_DW1_SCRATCH_STACK_SIZE__SHIFT			4
180 #define GEN8_VFE_DW1_SCRATCH_SPACE_PER_THREAD__MASK		0x0000000f
181 #define GEN8_VFE_DW1_SCRATCH_SPACE_PER_THREAD__SHIFT		0
182 #define GEN8_VFE_DW1_SCRATCH_ADDR__MASK				0xfffffc00
183 #define GEN8_VFE_DW1_SCRATCH_ADDR__SHIFT			10
184 #define GEN8_VFE_DW1_SCRATCH_ADDR__SHR				10
185 
186 
187 #define GEN8_VFE_DW3_MAX_THREADS__MASK				0xffff0000
188 #define GEN8_VFE_DW3_MAX_THREADS__SHIFT				16
189 #define GEN8_VFE_DW3_URB_ENTRY_COUNT__MASK			0x0000ff00
190 #define GEN8_VFE_DW3_URB_ENTRY_COUNT__SHIFT			8
191 #define GEN8_VFE_DW3_RESET_GATEWAY_TIMER			(0x1 << 7)
192 #define GEN8_VFE_DW3_BYPASS_GATEWAY_CONTROL			(0x1 << 6)
193 
194 #define GEN8_VFE_DW4_HALF_SLICE_DISABLE__MASK			0x00000003
195 #define GEN8_VFE_DW4_HALF_SLICE_DISABLE__SHIFT			0
196 #define GEN8_VFE_DW4_HALF_SLICE_DISABLE_NONE			0x0
197 #define GEN8_VFE_DW4_HALF_SLICE_DISABLE_23			0x1
198 #define GEN8_VFE_DW4_HALF_SLICE_DISABLE_123			0x3
199 
200 #define GEN8_VFE_DW5_URB_ENTRY_SIZE__MASK			0xffff0000
201 #define GEN8_VFE_DW5_URB_ENTRY_SIZE__SHIFT			16
202 #define GEN8_VFE_DW5_CURBE_SIZE__MASK				0x0000ffff
203 #define GEN8_VFE_DW5_CURBE_SIZE__SHIFT				0
204 
205 #define GEN8_VFE_DW6_SCOREBOARD_ENABLE				(0x1 << 31)
206 #define GEN8_VFE_DW6_SCOREBOARD_TYPE__MASK			0x40000000
207 #define GEN8_VFE_DW6_SCOREBOARD_TYPE__SHIFT			30
208 #define GEN8_VFE_DW6_SCOREBOARD_TYPE_STALLING			(0x0 << 30)
209 #define GEN8_VFE_DW6_SCOREBOARD_TYPE_NON_STALLING		(0x1 << 30)
210 #define GEN8_VFE_DW6_SCOREBOARD_MASK__MASK			0x000000ff
211 #define GEN8_VFE_DW6_SCOREBOARD_MASK__SHIFT			0
212 
213 
214 #define GEN6_MEDIA_CURBE_LOAD__SIZE				4
215 
216 
217 
218 #define GEN6_CURBE_LOAD_DW2_LEN__MASK				0x0001ffff
219 #define GEN6_CURBE_LOAD_DW2_LEN__SHIFT				0
220 
221 #define GEN6_CURBE_LOAD_DW3_ADDR__MASK				0xffffffe0
222 #define GEN6_CURBE_LOAD_DW3_ADDR__SHIFT				5
223 #define GEN6_CURBE_LOAD_DW3_ADDR__SHR				5
224 
225 #define GEN6_MEDIA_INTERFACE_DESCRIPTOR_LOAD__SIZE		4
226 
227 
228 
229 #define GEN6_IDRT_LOAD_DW2_LEN__MASK				0x0001ffff
230 #define GEN6_IDRT_LOAD_DW2_LEN__SHIFT				0
231 
232 #define GEN6_IDRT_LOAD_DW3_ADDR__MASK				0xffffffe0
233 #define GEN6_IDRT_LOAD_DW3_ADDR__SHIFT				5
234 #define GEN6_IDRT_LOAD_DW3_ADDR__SHR				5
235 
236 #define GEN6_MEDIA_STATE_FLUSH__SIZE				2
237 
238 
239 #define GEN6_MEDIA_FLUSH_DW1_THREAD_COUNT_WATERMARK__MASK	0x00ff0000
240 #define GEN6_MEDIA_FLUSH_DW1_THREAD_COUNT_WATERMARK__SHIFT	16
241 #define GEN6_MEDIA_FLUSH_DW1_BARRIER_MASK__MASK			0x0000ffff
242 #define GEN6_MEDIA_FLUSH_DW1_BARRIER_MASK__SHIFT		0
243 
244 #define GEN7_MEDIA_FLUSH_DW1_DISABLE_PREEMPTION			(0x1 << 8)
245 #define GEN75_MEDIA_FLUSH_DW1_FLUSH_TO_GO			(0x1 << 7)
246 #define GEN7_MEDIA_FLUSH_DW1_WATERMARK_REQUIRED			(0x1 << 6)
247 #define GEN7_MEDIA_FLUSH_DW1_IDRT_OFFSET__MASK			0x0000003f
248 #define GEN7_MEDIA_FLUSH_DW1_IDRT_OFFSET__SHIFT			0
249 
250 #define GEN7_GPGPU_WALKER__SIZE					15
251 
252 #define GEN7_GPGPU_DW0_INDIRECT_PARAM_ENABLE			(0x1 << 10)
253 #define GEN7_GPGPU_DW0_PREDICATE_ENABLE				(0x1 << 8)
254 
255 #define GEN7_GPGPU_DW1_IDRT_OFFSET__MASK			0x0000003f
256 #define GEN7_GPGPU_DW1_IDRT_OFFSET__SHIFT			0
257 
258 #define GEN7_GPGPU_DW2_SIMD_SIZE__MASK				0xc0000000
259 #define GEN7_GPGPU_DW2_SIMD_SIZE__SHIFT				30
260 #define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD8				(0x0 << 30)
261 #define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD16				(0x1 << 30)
262 #define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD32				(0x2 << 30)
263 #define GEN7_GPGPU_DW2_THREAD_MAX_Z__MASK			0x003f0000
264 #define GEN7_GPGPU_DW2_THREAD_MAX_Z__SHIFT			16
265 #define GEN7_GPGPU_DW2_THREAD_MAX_Y__MASK			0x00003f00
266 #define GEN7_GPGPU_DW2_THREAD_MAX_Y__SHIFT			8
267 #define GEN7_GPGPU_DW2_THREAD_MAX_X__MASK			0x0000003f
268 #define GEN7_GPGPU_DW2_THREAD_MAX_X__SHIFT			0
269 
270 
271 
272 
273 
274 
275 
276 
277 
278 
279 #define GEN8_GPGPU_DW0_INDIRECT_PARAM_ENABLE			(0x1 << 10)
280 #define GEN8_GPGPU_DW0_PREDICATE_ENABLE				(0x1 << 8)
281 
282 #define GEN8_GPGPU_DW1_IDRT_OFFSET__MASK			0x0000003f
283 #define GEN8_GPGPU_DW1_IDRT_OFFSET__SHIFT			0
284 
285 #define GEN8_GPGPU_DW2_INDIRECT_LEN__MASK			0x0001ffff
286 #define GEN8_GPGPU_DW2_INDIRECT_LEN__SHIFT			0
287 
288 #define GEN8_GPGPU_DW3_INDIRECT_ADDR__MASK			0xffffffe0
289 #define GEN8_GPGPU_DW3_INDIRECT_ADDR__SHIFT			5
290 #define GEN8_GPGPU_DW3_INDIRECT_ADDR__SHR			5
291 
292 #define GEN8_GPGPU_DW4_SIMD_SIZE__MASK				0xc0000000
293 #define GEN8_GPGPU_DW4_SIMD_SIZE__SHIFT				30
294 #define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD8				(0x0 << 30)
295 #define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD16				(0x1 << 30)
296 #define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD32				(0x2 << 30)
297 #define GEN8_GPGPU_DW4_THREAD_MAX_Z__MASK			0x003f0000
298 #define GEN8_GPGPU_DW4_THREAD_MAX_Z__SHIFT			16
299 #define GEN8_GPGPU_DW4_THREAD_MAX_Y__MASK			0x00003f00
300 #define GEN8_GPGPU_DW4_THREAD_MAX_Y__SHIFT			8
301 #define GEN8_GPGPU_DW4_THREAD_MAX_X__MASK			0x0000003f
302 #define GEN8_GPGPU_DW4_THREAD_MAX_X__SHIFT			0
303 
304 
305 
306 
307 
308 
309 
310 
311 
312 
313 
314 
315 #endif /* GEN_RENDER_MEDIA_XML */
316