summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/genhw/gen_render_media.xml.h
blob: 55d830bad32a286f65ce65d78e2fd03cf81a1e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
#ifndef GEN_RENDER_MEDIA_XML
#define GEN_RENDER_MEDIA_XML

/* Autogenerated file, DO NOT EDIT manually!

This file was generated by the rules-ng-ng headergen tool in this git repository:
https://github.com/olvaffe/envytools/
git clone https://github.com/olvaffe/envytools.git

Copyright (C) 2014-2015 by the following authors:
- Chia-I Wu <olvaffe@gmail.com> (olv)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice (including the
next paragraph) shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/


#define GEN6_INTERFACE_DESCRIPTOR_DATA__SIZE			8

#define GEN6_IDRT_DW0_KERNEL_ADDR__MASK				0xffffffc0
#define GEN6_IDRT_DW0_KERNEL_ADDR__SHIFT			6
#define GEN6_IDRT_DW0_KERNEL_ADDR__SHR				6

#define GEN6_IDRT_DW1_SPF					(0x1 << 18)
#define GEN6_IDRT_DW1_PRIORITY_HIGH				(0x1 << 17)
#define GEN6_IDRT_DW1_FP_MODE_ALT				(0x1 << 16)
#define GEN6_IDRT_DW1_ILLEGAL_CODE_EXCEPTION			(0x1 << 13)
#define GEN6_IDRT_DW1_MASK_STACK_EXCEPTION			(0x1 << 11)
#define GEN6_IDRT_DW1_SOFTWARE_EXCEPTION			(0x1 << 7)

#define GEN6_IDRT_DW2_SAMPLER_COUNT__MASK			0x0000001c
#define GEN6_IDRT_DW2_SAMPLER_COUNT__SHIFT			2
#define GEN6_IDRT_DW2_SAMPLER_ADDR__MASK			0xffffffe0
#define GEN6_IDRT_DW2_SAMPLER_ADDR__SHIFT			5
#define GEN6_IDRT_DW2_SAMPLER_ADDR__SHR				5

#define GEN6_IDRT_DW3_BINDING_TABLE_SIZE__MASK			0x0000001f
#define GEN6_IDRT_DW3_BINDING_TABLE_SIZE__SHIFT			0

#define GEN6_IDRT_DW4_CURBE_READ_LEN__MASK			0xffff0000
#define GEN6_IDRT_DW4_CURBE_READ_LEN__SHIFT			16
#define GEN6_IDRT_DW4_CURBE_READ_OFFSET__MASK			0x0000ffff
#define GEN6_IDRT_DW4_CURBE_READ_OFFSET__SHIFT			0

#define GEN6_IDRT_DW5_BARRIER_ID__MASK				0x0000000f
#define GEN6_IDRT_DW5_BARRIER_ID__SHIFT				0

#define GEN7_IDRT_DW5_BARRIER_RETURN_GRF__MASK			0xff000000
#define GEN7_IDRT_DW5_BARRIER_RETURN_GRF__SHIFT			24
#define GEN7_IDRT_DW5_ROUNDING_MODE__MASK			0x00c00000
#define GEN7_IDRT_DW5_ROUNDING_MODE__SHIFT			22
#define GEN7_IDRT_DW5_ROUNDING_MODE_RTNE			(0x0 << 22)
#define GEN7_IDRT_DW5_ROUNDING_MODE_RU				(0x1 << 22)
#define GEN7_IDRT_DW5_ROUNDING_MODE_RD				(0x2 << 22)
#define GEN7_IDRT_DW5_ROUNDING_MODE_RTZ				(0x3 << 22)
#define GEN7_IDRT_DW5_BARRIER_ENABLE				(0x1 << 21)
#define GEN7_IDRT_DW5_SLM_SIZE__MASK				0x001f0000
#define GEN7_IDRT_DW5_SLM_SIZE__SHIFT				16
#define GEN7_IDRT_DW5_BARRIER_RETURN_BYTE__MASK			0x0000ff00
#define GEN7_IDRT_DW5_BARRIER_RETURN_BYTE__SHIFT		8
#define GEN7_IDRT_DW5_THREAD_GROUP_SIZE__MASK			0x000000ff
#define GEN7_IDRT_DW5_THREAD_GROUP_SIZE__SHIFT			0

#define GEN75_IDRT_DW6_CROSS_THREAD_CURBE_READ_LEN__MASK	0x000000ff
#define GEN75_IDRT_DW6_CROSS_THREAD_CURBE_READ_LEN__SHIFT	0



#define GEN8_IDRT_DW0_KERNEL_ADDR__MASK				0xffffffc0
#define GEN8_IDRT_DW0_KERNEL_ADDR__SHIFT			6
#define GEN8_IDRT_DW0_KERNEL_ADDR__SHR				6


#define GEN8_IDRT_DW2_THREAD_PREEMPTION_DISABLE			(0x1 << 20)
#define GEN8_IDRT_DW2_DENORM__MASK				0x00080000
#define GEN8_IDRT_DW2_DENORM__SHIFT				19
#define GEN8_IDRT_DW2_DENORM_FTZ				(0x0 << 19)
#define GEN8_IDRT_DW2_DENORM_RET				(0x1 << 19)
#define GEN8_IDRT_DW2_SPF					(0x1 << 18)
#define GEN8_IDRT_DW2_PRIORITY_HIGH				(0x1 << 17)
#define GEN8_IDRT_DW2_FP_MODE_ALT				(0x1 << 16)
#define GEN8_IDRT_DW2_ILLEGAL_CODE_EXCEPTION			(0x1 << 13)
#define GEN8_IDRT_DW2_MASK_STACK_EXCEPTION			(0x1 << 11)
#define GEN8_IDRT_DW2_SOFTWARE_EXCEPTION			(0x1 << 7)

#define GEN8_IDRT_DW3_SAMPLER_COUNT__MASK			0x0000001c
#define GEN8_IDRT_DW3_SAMPLER_COUNT__SHIFT			2
#define GEN8_IDRT_DW3_SAMPLER_ADDR__MASK			0xffffffe0
#define GEN8_IDRT_DW3_SAMPLER_ADDR__SHIFT			5
#define GEN8_IDRT_DW3_SAMPLER_ADDR__SHR				5

#define GEN8_IDRT_DW4_BINDING_TABLE_SIZE__MASK			0x0000001f
#define GEN8_IDRT_DW4_BINDING_TABLE_SIZE__SHIFT			0

#define GEN8_IDRT_DW5_CURBE_READ_LEN__MASK			0xffff0000
#define GEN8_IDRT_DW5_CURBE_READ_LEN__SHIFT			16

#define GEN8_IDRT_DW6_ROUNDING_MODE__MASK			0x00c00000
#define GEN8_IDRT_DW6_ROUNDING_MODE__SHIFT			22
#define GEN8_IDRT_DW6_ROUNDING_MODE_RTNE			(0x0 << 22)
#define GEN8_IDRT_DW6_ROUNDING_MODE_RU				(0x1 << 22)
#define GEN8_IDRT_DW6_ROUNDING_MODE_RD				(0x2 << 22)
#define GEN8_IDRT_DW6_ROUNDING_MODE_RTZ				(0x3 << 22)
#define GEN8_IDRT_DW6_BARRIER_ENABLE				(0x1 << 21)
#define GEN8_IDRT_DW6_SLM_SIZE__MASK				0x001f0000
#define GEN8_IDRT_DW6_SLM_SIZE__SHIFT				16
#define GEN8_IDRT_DW6_THREAD_GROUP_SIZE__MASK			0x000000ff
#define GEN8_IDRT_DW6_THREAD_GROUP_SIZE__SHIFT			0

#define GEN8_IDRT_DW7_CROSS_THREAD_CURBE_READ_LEN__MASK		0x000000ff
#define GEN8_IDRT_DW7_CROSS_THREAD_CURBE_READ_LEN__SHIFT	0

#define GEN6_MEDIA_VFE_STATE__SIZE				9


#define GEN6_VFE_DW1_SCRATCH_STACK_SIZE__MASK			0x000000f0
#define GEN6_VFE_DW1_SCRATCH_STACK_SIZE__SHIFT			4
#define GEN6_VFE_DW1_SCRATCH_SPACE_PER_THREAD__MASK		0x0000000f
#define GEN6_VFE_DW1_SCRATCH_SPACE_PER_THREAD__SHIFT		0
#define GEN6_VFE_DW1_SCRATCH_ADDR__MASK				0xfffffc00
#define GEN6_VFE_DW1_SCRATCH_ADDR__SHIFT			10
#define GEN6_VFE_DW1_SCRATCH_ADDR__SHR				10

#define GEN6_VFE_DW2_MAX_THREADS__MASK				0xffff0000
#define GEN6_VFE_DW2_MAX_THREADS__SHIFT				16
#define GEN6_VFE_DW2_URB_ENTRY_COUNT__MASK			0x0000ff00
#define GEN6_VFE_DW2_URB_ENTRY_COUNT__SHIFT			8
#define GEN6_VFE_DW2_RESET_GATEWAY_TIMER			(0x1 << 7)
#define GEN6_VFE_DW2_BYPASS_GATEWAY_CONTROL			(0x1 << 6)
#define GEN6_VFE_DW2_FAST_PREEMPT				(0x1 << 5)
#define GEN7_VFE_DW2_GATEWAY_MMIO__MASK				0x00000018
#define GEN7_VFE_DW2_GATEWAY_MMIO__SHIFT			3
#define GEN7_VFE_DW2_GATEWAY_MMIO_NONE				(0x0 << 3)
#define GEN7_VFE_DW2_GATEWAY_MMIO_ANY				(0x2 << 3)
#define GEN7_VFE_DW2_GPGPU_MODE					(0x1 << 2)

#define GEN75_VFE_DW3_HALF_SLICE_DISABLE__MASK			0x00000003
#define GEN75_VFE_DW3_HALF_SLICE_DISABLE__SHIFT			0
#define GEN75_VFE_DW3_HALF_SLICE_DISABLE_NONE			0x0
#define GEN75_VFE_DW3_HALF_SLICE_DISABLE_23			0x1
#define GEN75_VFE_DW3_HALF_SLICE_DISABLE_123			0x3

#define GEN6_VFE_DW4_URB_ENTRY_SIZE__MASK			0xffff0000
#define GEN6_VFE_DW4_URB_ENTRY_SIZE__SHIFT			16
#define GEN6_VFE_DW4_CURBE_SIZE__MASK				0x0000ffff
#define GEN6_VFE_DW4_CURBE_SIZE__SHIFT				0

#define GEN6_VFE_DW5_SCOREBOARD_ENABLE				(0x1 << 31)
#define GEN6_VFE_DW5_SCOREBOARD_TYPE__MASK			0x40000000
#define GEN6_VFE_DW5_SCOREBOARD_TYPE__SHIFT			30
#define GEN6_VFE_DW5_SCOREBOARD_TYPE_STALLING			(0x0 << 30)
#define GEN6_VFE_DW5_SCOREBOARD_TYPE_NON_STALLING		(0x1 << 30)
#define GEN6_VFE_DW5_SCOREBOARD_MASK__MASK			0x000000ff
#define GEN6_VFE_DW5_SCOREBOARD_MASK__SHIFT			0




#define GEN8_VFE_DW1_SCRATCH_STACK_SIZE__MASK			0x000000f0
#define GEN8_VFE_DW1_SCRATCH_STACK_SIZE__SHIFT			4
#define GEN8_VFE_DW1_SCRATCH_SPACE_PER_THREAD__MASK		0x0000000f
#define GEN8_VFE_DW1_SCRATCH_SPACE_PER_THREAD__SHIFT		0
#define GEN8_VFE_DW1_SCRATCH_ADDR__MASK				0xfffffc00
#define GEN8_VFE_DW1_SCRATCH_ADDR__SHIFT			10
#define GEN8_VFE_DW1_SCRATCH_ADDR__SHR				10


#define GEN8_VFE_DW3_MAX_THREADS__MASK				0xffff0000
#define GEN8_VFE_DW3_MAX_THREADS__SHIFT				16
#define GEN8_VFE_DW3_URB_ENTRY_COUNT__MASK			0x0000ff00
#define GEN8_VFE_DW3_URB_ENTRY_COUNT__SHIFT			8
#define GEN8_VFE_DW3_RESET_GATEWAY_TIMER			(0x1 << 7)
#define GEN8_VFE_DW3_BYPASS_GATEWAY_CONTROL			(0x1 << 6)

#define GEN8_VFE_DW4_HALF_SLICE_DISABLE__MASK			0x00000003
#define GEN8_VFE_DW4_HALF_SLICE_DISABLE__SHIFT			0
#define GEN8_VFE_DW4_HALF_SLICE_DISABLE_NONE			0x0
#define GEN8_VFE_DW4_HALF_SLICE_DISABLE_23			0x1
#define GEN8_VFE_DW4_HALF_SLICE_DISABLE_123			0x3

#define GEN8_VFE_DW5_URB_ENTRY_SIZE__MASK			0xffff0000
#define GEN8_VFE_DW5_URB_ENTRY_SIZE__SHIFT			16
#define GEN8_VFE_DW5_CURBE_SIZE__MASK				0x0000ffff
#define GEN8_VFE_DW5_CURBE_SIZE__SHIFT				0

#define GEN8_VFE_DW6_SCOREBOARD_ENABLE				(0x1 << 31)
#define GEN8_VFE_DW6_SCOREBOARD_TYPE__MASK			0x40000000
#define GEN8_VFE_DW6_SCOREBOARD_TYPE__SHIFT			30
#define GEN8_VFE_DW6_SCOREBOARD_TYPE_STALLING			(0x0 << 30)
#define GEN8_VFE_DW6_SCOREBOARD_TYPE_NON_STALLING		(0x1 << 30)
#define GEN8_VFE_DW6_SCOREBOARD_MASK__MASK			0x000000ff
#define GEN8_VFE_DW6_SCOREBOARD_MASK__SHIFT			0


#define GEN6_MEDIA_CURBE_LOAD__SIZE				4



#define GEN6_CURBE_LOAD_DW2_LEN__MASK				0x0001ffff
#define GEN6_CURBE_LOAD_DW2_LEN__SHIFT				0

#define GEN6_CURBE_LOAD_DW3_ADDR__MASK				0xffffffe0
#define GEN6_CURBE_LOAD_DW3_ADDR__SHIFT				5
#define GEN6_CURBE_LOAD_DW3_ADDR__SHR				5

#define GEN6_MEDIA_INTERFACE_DESCRIPTOR_LOAD__SIZE		4



#define GEN6_IDRT_LOAD_DW2_LEN__MASK				0x0001ffff
#define GEN6_IDRT_LOAD_DW2_LEN__SHIFT				0

#define GEN6_IDRT_LOAD_DW3_ADDR__MASK				0xffffffe0
#define GEN6_IDRT_LOAD_DW3_ADDR__SHIFT				5
#define GEN6_IDRT_LOAD_DW3_ADDR__SHR				5

#define GEN6_MEDIA_STATE_FLUSH__SIZE				2


#define GEN6_MEDIA_FLUSH_DW1_THREAD_COUNT_WATERMARK__MASK	0x00ff0000
#define GEN6_MEDIA_FLUSH_DW1_THREAD_COUNT_WATERMARK__SHIFT	16
#define GEN6_MEDIA_FLUSH_DW1_BARRIER_MASK__MASK			0x0000ffff
#define GEN6_MEDIA_FLUSH_DW1_BARRIER_MASK__SHIFT		0

#define GEN7_MEDIA_FLUSH_DW1_DISABLE_PREEMPTION			(0x1 << 8)
#define GEN75_MEDIA_FLUSH_DW1_FLUSH_TO_GO			(0x1 << 7)
#define GEN7_MEDIA_FLUSH_DW1_WATERMARK_REQUIRED			(0x1 << 6)
#define GEN7_MEDIA_FLUSH_DW1_IDRT_OFFSET__MASK			0x0000003f
#define GEN7_MEDIA_FLUSH_DW1_IDRT_OFFSET__SHIFT			0

#define GEN7_GPGPU_WALKER__SIZE					15

#define GEN7_GPGPU_DW0_INDIRECT_PARAM_ENABLE			(0x1 << 10)
#define GEN7_GPGPU_DW0_PREDICATE_ENABLE				(0x1 << 8)

#define GEN7_GPGPU_DW1_IDRT_OFFSET__MASK			0x0000003f
#define GEN7_GPGPU_DW1_IDRT_OFFSET__SHIFT			0

#define GEN7_GPGPU_DW2_SIMD_SIZE__MASK				0xc0000000
#define GEN7_GPGPU_DW2_SIMD_SIZE__SHIFT				30
#define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD8				(0x0 << 30)
#define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD16				(0x1 << 30)
#define GEN7_GPGPU_DW2_SIMD_SIZE_SIMD32				(0x2 << 30)
#define GEN7_GPGPU_DW2_THREAD_MAX_Z__MASK			0x003f0000
#define GEN7_GPGPU_DW2_THREAD_MAX_Z__SHIFT			16
#define GEN7_GPGPU_DW2_THREAD_MAX_Y__MASK			0x00003f00
#define GEN7_GPGPU_DW2_THREAD_MAX_Y__SHIFT			8
#define GEN7_GPGPU_DW2_THREAD_MAX_X__MASK			0x0000003f
#define GEN7_GPGPU_DW2_THREAD_MAX_X__SHIFT			0










#define GEN8_GPGPU_DW0_INDIRECT_PARAM_ENABLE			(0x1 << 10)
#define GEN8_GPGPU_DW0_PREDICATE_ENABLE				(0x1 << 8)

#define GEN8_GPGPU_DW1_IDRT_OFFSET__MASK			0x0000003f
#define GEN8_GPGPU_DW1_IDRT_OFFSET__SHIFT			0


#define GEN8_GPGPU_DW3_INDIRECT_ADDR__MASK			0xffffffe0
#define GEN8_GPGPU_DW3_INDIRECT_ADDR__SHIFT			5
#define GEN8_GPGPU_DW3_INDIRECT_ADDR__SHR			5

#define GEN8_GPGPU_DW4_SIMD_SIZE__MASK				0xc0000000
#define GEN8_GPGPU_DW4_SIMD_SIZE__SHIFT				30
#define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD8				(0x0 << 30)
#define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD16				(0x1 << 30)
#define GEN8_GPGPU_DW4_SIMD_SIZE_SIMD32				(0x2 << 30)
#define GEN8_GPGPU_DW4_THREAD_MAX_Z__MASK			0x003f0000
#define GEN8_GPGPU_DW4_THREAD_MAX_Z__SHIFT			16
#define GEN8_GPGPU_DW4_THREAD_MAX_Y__MASK			0x00003f00
#define GEN8_GPGPU_DW4_THREAD_MAX_Y__SHIFT			8
#define GEN8_GPGPU_DW4_THREAD_MAX_X__MASK			0x0000003f
#define GEN8_GPGPU_DW4_THREAD_MAX_X__SHIFT			0












#endif /* GEN_RENDER_MEDIA_XML */