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
|
#ifndef GEN_REGS_XML
#define GEN_REGS_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 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_REG_MASK__MASK 0xffff0000
#define GEN6_REG_MASK__SHIFT 16
#define GEN6_REG__SIZE 0x400000
#define GEN7_REG_HS_INVOCATION_COUNT 0x2300
#define GEN7_REG_DS_INVOCATION_COUNT 0x2308
#define GEN6_REG_IA_VERTICES_COUNT 0x2310
#define GEN6_REG_IA_PRIMITIVES_COUNT 0x2318
#define GEN6_REG_VS_INVOCATION_COUNT 0x2320
#define GEN6_REG_GS_INVOCATION_COUNT 0x2328
#define GEN6_REG_GS_PRIMITIVES_COUNT 0x2330
#define GEN6_REG_CL_INVOCATION_COUNT 0x2338
#define GEN6_REG_CL_PRIMITIVES_COUNT 0x2340
#define GEN6_REG_PS_INVOCATION_COUNT 0x2348
#define GEN6_REG_PS_DEPTH_COUNT 0x2350
#define GEN6_REG_TIMESTAMP 0x2358
#define GEN7_REG_3DPRIM_END_OFFSET 0x2420
#define GEN7_REG_3DPRIM_START_VERTEX 0x2430
#define GEN7_REG_3DPRIM_VERTEX_COUNT 0x2434
#define GEN7_REG_3DPRIM_INSTANCE_COUNT 0x2438
#define GEN7_REG_3DPRIM_START_INSTANCE 0x243c
#define GEN7_REG_3DPRIM_BASE_VERTEX 0x2440
#define GEN6_REG_OACONTROL 0x2360
#define GEN6_REG_OACONTROL_COUNTER_SELECT__MASK 0x0000001c
#define GEN6_REG_OACONTROL_COUNTER_SELECT__SHIFT 2
#define GEN6_REG_OACONTROL_PERFORMANCE_COUNTER_ENABLE (0x1 << 0)
#define GEN6_REG_SO_PRIM_STORAGE_NEEDED 0x2280
#define GEN6_REG_SO_NUM_PRIMS_WRITTEN 0x2288
#define GEN7_REG_SO_NUM_PRIMS_WRITTEN(i0) (0x5200 + 0x8*(i0))
#define GEN7_REG_SO_NUM_PRIMS_WRITTEN__ESIZE 0x8
#define GEN7_REG_SO_NUM_PRIMS_WRITTEN__LEN 0x4
#define GEN7_REG_SO_PRIM_STORAGE_NEEDED(i0) (0x5240 + 0x8*(i0))
#define GEN7_REG_SO_PRIM_STORAGE_NEEDED__ESIZE 0x8
#define GEN7_REG_SO_PRIM_STORAGE_NEEDED__LEN 0x4
#define GEN7_REG_SO_WRITE_OFFSET(i0) (0x5280 + 0x8*(i0))
#define GEN7_REG_SO_WRITE_OFFSET__ESIZE 0x8
#define GEN7_REG_SO_WRITE_OFFSET__LEN 0x4
#define GEN6_REG_BCS_SWCTRL 0x22200
#define GEN6_REG_BCS_SWCTRL_DST_TILING_Y (0x1 << 1)
#define GEN6_REG_BCS_SWCTRL_SRC_TILING_Y (0x1 << 0)
#endif /* GEN_REGS_XML */
|