blob: 9009437e40f5ac8718dffb10e4e2aa752a0ea7f7 [file] [log] [blame]
Chia-I Wue6073342014-11-30 09:43:42 +08001#ifndef GEN_RENDER_XML
2#define GEN_RENDER_XML
3
4/* Autogenerated file, DO NOT EDIT manually!
5
6This file was generated by the rules-ng-ng headergen tool in this git repository:
7https://github.com/olvaffe/envytools/
8git clone https://github.com/olvaffe/envytools.git
9
10Copyright (C) 2014 by the following authors:
11- Chia-I Wu <olvaffe@gmail.com> (olv)
12
13Permission is hereby granted, free of charge, to any person obtaining
14a copy of this software and associated documentation files (the
15"Software"), to deal in the Software without restriction, including
16without limitation the rights to use, copy, modify, merge, publish,
17distribute, sublicense, and/or sell copies of the Software, and to
18permit persons to whom the Software is furnished to do so, subject to
19the following conditions:
20
21The above copyright notice and this permission notice (including the
22next paragraph) shall be included in all copies or substantial
23portions of the Software.
24
25THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
29LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32*/
33
34
35#define GEN6_RENDER_TYPE__MASK 0xe0000000
36#define GEN6_RENDER_TYPE__SHIFT 29
37#define GEN6_RENDER_TYPE_RENDER (0x3 << 29)
38#define GEN6_RENDER_SUBTYPE__MASK 0x18000000
39#define GEN6_RENDER_SUBTYPE__SHIFT 27
40#define GEN6_RENDER_SUBTYPE_COMMON (0x0 << 27)
41#define GEN6_RENDER_SUBTYPE_SINGLE_DW (0x1 << 27)
42#define GEN6_RENDER_SUBTYPE_MEDIA (0x2 << 27)
43#define GEN6_RENDER_SUBTYPE_3D (0x3 << 27)
44#define GEN6_RENDER_OPCODE__MASK 0x07ff0000
45#define GEN6_RENDER_OPCODE__SHIFT 16
46#define GEN6_RENDER_OPCODE_STATE_BASE_ADDRESS (0x101 << 16)
47#define GEN6_RENDER_OPCODE_STATE_SIP (0x102 << 16)
48#define GEN6_RENDER_OPCODE_3DSTATE_VF_STATISTICS (0xb << 16)
49#define GEN6_RENDER_OPCODE_PIPELINE_SELECT (0x104 << 16)
50#define GEN6_RENDER_OPCODE_MEDIA_VFE_STATE (0x0 << 16)
51#define GEN6_RENDER_OPCODE_MEDIA_CURBE_LOAD (0x1 << 16)
52#define GEN6_RENDER_OPCODE_MEDIA_INTERFACE_DESCRIPTOR_LOAD (0x2 << 16)
53#define GEN6_RENDER_OPCODE_MEDIA_STATE_FLUSH (0x4 << 16)
54#define GEN7_RENDER_OPCODE_GPGPU_WALKER (0x105 << 16)
55#define GEN6_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS (0x1 << 16)
56#define GEN6_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS (0x2 << 16)
57#define GEN7_RENDER_OPCODE_3DSTATE_CLEAR_PARAMS (0x4 << 16)
58#define GEN6_RENDER_OPCODE_3DSTATE_URB (0x5 << 16)
59#define GEN7_RENDER_OPCODE_3DSTATE_DEPTH_BUFFER (0x5 << 16)
60#define GEN7_RENDER_OPCODE_3DSTATE_STENCIL_BUFFER (0x6 << 16)
61#define GEN7_RENDER_OPCODE_3DSTATE_HIER_DEPTH_BUFFER (0x7 << 16)
62#define GEN6_RENDER_OPCODE_3DSTATE_VERTEX_BUFFERS (0x8 << 16)
63#define GEN6_RENDER_OPCODE_3DSTATE_VERTEX_ELEMENTS (0x9 << 16)
64#define GEN6_RENDER_OPCODE_3DSTATE_INDEX_BUFFER (0xa << 16)
65#define GEN75_RENDER_OPCODE_3DSTATE_VF (0xc << 16)
66#define GEN6_RENDER_OPCODE_3DSTATE_VIEWPORT_STATE_POINTERS (0xd << 16)
67#define GEN6_RENDER_OPCODE_3DSTATE_CC_STATE_POINTERS (0xe << 16)
68#define GEN6_RENDER_OPCODE_3DSTATE_SCISSOR_STATE_POINTERS (0xf << 16)
69#define GEN6_RENDER_OPCODE_3DSTATE_VS (0x10 << 16)
70#define GEN6_RENDER_OPCODE_3DSTATE_GS (0x11 << 16)
71#define GEN6_RENDER_OPCODE_3DSTATE_CLIP (0x12 << 16)
72#define GEN6_RENDER_OPCODE_3DSTATE_SF (0x13 << 16)
73#define GEN6_RENDER_OPCODE_3DSTATE_WM (0x14 << 16)
74#define GEN6_RENDER_OPCODE_3DSTATE_CONSTANT_VS (0x15 << 16)
75#define GEN6_RENDER_OPCODE_3DSTATE_CONSTANT_GS (0x16 << 16)
76#define GEN6_RENDER_OPCODE_3DSTATE_CONSTANT_PS (0x17 << 16)
77#define GEN6_RENDER_OPCODE_3DSTATE_SAMPLE_MASK (0x18 << 16)
78#define GEN7_RENDER_OPCODE_3DSTATE_CONSTANT_HS (0x19 << 16)
79#define GEN7_RENDER_OPCODE_3DSTATE_CONSTANT_DS (0x1a << 16)
80#define GEN7_RENDER_OPCODE_3DSTATE_HS (0x1b << 16)
81#define GEN7_RENDER_OPCODE_3DSTATE_TE (0x1c << 16)
82#define GEN7_RENDER_OPCODE_3DSTATE_DS (0x1d << 16)
83#define GEN7_RENDER_OPCODE_3DSTATE_STREAMOUT (0x1e << 16)
84#define GEN7_RENDER_OPCODE_3DSTATE_SBE (0x1f << 16)
85#define GEN7_RENDER_OPCODE_3DSTATE_PS (0x20 << 16)
86#define GEN7_RENDER_OPCODE_3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP (0x21 << 16)
87#define GEN7_RENDER_OPCODE_3DSTATE_VIEWPORT_STATE_POINTERS_CC (0x23 << 16)
88#define GEN7_RENDER_OPCODE_3DSTATE_BLEND_STATE_POINTERS (0x24 << 16)
89#define GEN7_RENDER_OPCODE_3DSTATE_DEPTH_STENCIL_STATE_POINTERS (0x25 << 16)
90#define GEN7_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS_VS (0x26 << 16)
91#define GEN7_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS_HS (0x27 << 16)
92#define GEN7_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS_DS (0x28 << 16)
93#define GEN7_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS_GS (0x29 << 16)
94#define GEN7_RENDER_OPCODE_3DSTATE_BINDING_TABLE_POINTERS_PS (0x2a << 16)
95#define GEN7_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS_VS (0x2b << 16)
96#define GEN7_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS_HS (0x2c << 16)
97#define GEN7_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS_DS (0x2d << 16)
98#define GEN7_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS_GS (0x2e << 16)
99#define GEN7_RENDER_OPCODE_3DSTATE_SAMPLER_STATE_POINTERS_PS (0x2f << 16)
100#define GEN7_RENDER_OPCODE_3DSTATE_URB_VS (0x30 << 16)
101#define GEN7_RENDER_OPCODE_3DSTATE_URB_HS (0x31 << 16)
102#define GEN7_RENDER_OPCODE_3DSTATE_URB_DS (0x32 << 16)
103#define GEN7_RENDER_OPCODE_3DSTATE_URB_GS (0x33 << 16)
104#define GEN6_RENDER_OPCODE_3DSTATE_DRAWING_RECTANGLE (0x100 << 16)
105#define GEN6_RENDER_OPCODE_3DSTATE_DEPTH_BUFFER (0x105 << 16)
106#define GEN6_RENDER_OPCODE_3DSTATE_POLY_STIPPLE_OFFSET (0x106 << 16)
107#define GEN6_RENDER_OPCODE_3DSTATE_POLY_STIPPLE_PATTERN (0x107 << 16)
108#define GEN6_RENDER_OPCODE_3DSTATE_LINE_STIPPLE (0x108 << 16)
109#define GEN6_RENDER_OPCODE_3DSTATE_AA_LINE_PARAMETERS (0x10a << 16)
110#define GEN6_RENDER_OPCODE_3DSTATE_GS_SVB_INDEX (0x10b << 16)
111#define GEN6_RENDER_OPCODE_3DSTATE_MULTISAMPLE (0x10d << 16)
112#define GEN6_RENDER_OPCODE_3DSTATE_STENCIL_BUFFER (0x10e << 16)
113#define GEN6_RENDER_OPCODE_3DSTATE_HIER_DEPTH_BUFFER (0x10f << 16)
114#define GEN6_RENDER_OPCODE_3DSTATE_CLEAR_PARAMS (0x110 << 16)
115#define GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_VS (0x112 << 16)
116#define GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_HS (0x113 << 16)
117#define GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_DS (0x114 << 16)
118#define GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_GS (0x115 << 16)
119#define GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_PS (0x116 << 16)
120#define GEN7_RENDER_OPCODE_3DSTATE_SO_DECL_LIST (0x117 << 16)
121#define GEN7_RENDER_OPCODE_3DSTATE_SO_BUFFER (0x118 << 16)
122#define GEN6_RENDER_OPCODE_PIPE_CONTROL (0x200 << 16)
123#define GEN6_RENDER_OPCODE_3DPRIMITIVE (0x300 << 16)
124#define GEN6_RENDER_LENGTH__MASK 0x000000ff
125#define GEN6_RENDER_LENGTH__SHIFT 0
126#define GEN6_MOCS_LLC__MASK 0x00000003
127#define GEN6_MOCS_LLC__SHIFT 0
128#define GEN6_MOCS_LLC_PTE 0x0
129#define GEN6_MOCS_LLC_UC 0x1
130#define GEN6_MOCS_LLC_ON 0x2
131#define GEN7_MOCS_LLC__MASK 0x00000002
132#define GEN7_MOCS_LLC__SHIFT 1
133#define GEN7_MOCS_LLC_PTE (0x0 << 1)
134#define GEN7_MOCS_LLC_ON (0x1 << 1)
135#define GEN75_MOCS_LLC__MASK 0x00000006
136#define GEN75_MOCS_LLC__SHIFT 1
137#define GEN75_MOCS_LLC_PTE (0x0 << 1)
138#define GEN75_MOCS_LLC_UC (0x1 << 1)
139#define GEN75_MOCS_LLC_ON (0x2 << 1)
140#define GEN75_MOCS_LLC_ELLC (0x3 << 1)
141#define GEN7_MOCS_L3__MASK 0x00000001
142#define GEN7_MOCS_L3__SHIFT 0
143#define GEN7_MOCS_L3_UC 0x0
144#define GEN7_MOCS_L3_ON 0x1
145#define GEN6_BASE_ADDR__MASK 0xfffff000
146#define GEN6_BASE_ADDR__SHIFT 12
147#define GEN6_BASE_ADDR__SHR 12
148#define GEN6_BASE_ADDR_MOCS__MASK 0x00000f00
149#define GEN6_BASE_ADDR_MOCS__SHIFT 8
150#define GEN6_BASE_ADDR_MODIFIED (0x1 << 0)
151#define GEN6_STATE_BASE_ADDRESS__SIZE 10
152
153
154#define GEN6_BASE_ADDR_DW1_GENERAL_STATELESS_MOCS__MASK 0x000000f0
155#define GEN6_BASE_ADDR_DW1_GENERAL_STATELESS_MOCS__SHIFT 4
156#define GEN6_BASE_ADDR_DW1_GENERAL_STATELESS_FORCE_WRITE_THRU (0x1 << 3)
157
158
159
160
161
162
163
164
165
166#define GEN6_STATE_SIP__SIZE 2
167
168
169#define GEN6_SIP_DW1_KERNEL_ADDR__MASK 0xfffffff0
170#define GEN6_SIP_DW1_KERNEL_ADDR__SHIFT 4
171#define GEN6_SIP_DW1_KERNEL_ADDR__SHR 4
172
173#define GEN6_PIPELINE_SELECT__SIZE 1
174
175#define GEN6_PIPELINE_SELECT_DW0_SELECT__MASK 0x00000003
176#define GEN6_PIPELINE_SELECT_DW0_SELECT__SHIFT 0
177#define GEN6_PIPELINE_SELECT_DW0_SELECT_3D 0x0
178#define GEN6_PIPELINE_SELECT_DW0_SELECT_MEDIA 0x1
179#define GEN7_PIPELINE_SELECT_DW0_SELECT_GPGPU 0x2
180
181
182#endif /* GEN_RENDER_XML */