Source
1
+
/*
2
+
* Copyright © 2010 Intel Corporation
3
+
*
4
+
* Permission is hereby granted, free of charge, to any person obtaining a
5
+
* copy of this software and associated documentation files (the "Software"),
6
+
* to deal in the Software without restriction, including without limitation
7
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
+
* and/or sell copies of the Software, and to permit persons to whom the
9
+
* Software is furnished to do so, subject to the following conditions:
10
+
*
11
+
* The above copyright notice and this permission notice (including the next
12
+
* paragraph) shall be included in all copies or substantial portions of the
13
+
* Software.
14
+
*
15
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+
* IN THE SOFTWARE.
22
+
*
23
+
* Authors:
24
+
* Eric Anholt <eric@anholt.net>
25
+
*
26
+
*/
27
+
28
+
/** @file intel_aub.h
29
+
*
30
+
* The AUB file is a file format used by Intel's internal simulation
31
+
* and other validation tools. It can be used at various levels by a
32
+
* driver to input state to the simulated hardware or a replaying
33
+
* debugger.
34
+
*
35
+
* We choose to dump AUB files using the trace block format for ease
36
+
* of implementation -- dump out the blocks of memory as plain blobs
37
+
* and insert ring commands to execute the batchbuffer blob.
38
+
*/
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
/* DW0: instruction type. */
48
+
49
+
50
+
51
+
52
+
/* DW1 */
53
+
54
+
55
+
56
+
57
+
58
+
59
+
/* DW1 */
60
+
61
+
62
+
63
+
64
+
65
+
// operation = TRACE_DATA_WRITE, Type
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
// operation = TRACE_COMMAND_WRITE, Type =
82
+
83
+
84
+
85
+
86
+
87
+
// Address space
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
/* DW2 */
96
+
// operation = TRACE_DATA_WRITE, Type = TRACE_DATA_WRITE_GENERAL_STATE
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
// operation = TRACE_DATA_WRITE, Type = TRACE_DATA_WRITE_SURFACE_STATE
116
+
117
+
118
+
119
+
120
+
/* DW3: address */
121
+
/* DW4: len */
122
+
123
+
/* _INTEL_AUB_H */