2 Copyright (C) Intel Corp. 2006. All Rights Reserved.
3 Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
4 develop this 3D driver.
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sublicense, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
14 The above copyright notice and this permission notice (including the
15 next paragraph) shall be included in all copies or substantial
16 portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
22 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 **********************************************************************/
29 * Keith Whitwell <keith@tungstengraphics.com>
35 struct aub_file_header
{
36 unsigned int instruction_type
;
40 unsigned char application
[8*4];
44 unsigned int timezone
:8;
45 unsigned int second
:8;
46 unsigned int minute
:8;
48 unsigned int comment_length
:16;
52 struct aub_block_header
{
53 unsigned int instruction_type
;
54 unsigned int operation
:8;
56 unsigned int address_space
:8;
58 unsigned int general_state_type
:8;
59 unsigned int surface_state_type
:8;
66 unsigned int instruction_type
;
69 unsigned int pitch
:16;
71 unsigned int format
:8;
72 unsigned int xsize
:16;
73 unsigned int ysize
:16;
88 enum command_write_type
{
91 CW_PRIMARY_RING_B
, /* XXX - disagreement with listaub! */
96 enum data_write_type
{
101 DW_SLOW_STATE_BUFFER
,
105 DW_INDIRECT_STATE_BUFFER
,
109 DW_CONSTANT_URB_ENTRY
,
113 DW_MEDIA_OBJECT_INDIRECT_DATA
,
117 enum data_write_general_state_type
{
119 DWGS_VERTEX_SHADER_STATE
,
120 DWGS_GEOMETRY_SHADER_STATE
,
122 DWGS_STRIPS_FANS_STATE
,
123 DWGS_WINDOWER_IZ_STATE
,
124 DWGS_COLOR_CALC_STATE
,
125 DWGS_CLIPPER_VIEWPORT_STATE
, /* was 0x7 */
126 DWGS_STRIPS_FANS_VIEWPORT_STATE
,
127 DWGS_COLOR_CALC_VIEWPORT_STATE
, /* was 0x9 */
129 DWGS_KERNEL_INSTRUCTIONS
,
131 DWGS_SAMPLER_DEFAULT_COLOR
,
132 DWGS_INTERFACE_DESCRIPTOR
,
138 enum data_write_surface_state_type
{
140 DWSS_BINDING_TABLE_STATE
,
145 enum memory_map_type
{
159 #define AUB_FILE_HEADER 0xe085000b
160 #define AUB_BLOCK_HEADER 0xe0c10003
161 #define AUB_DUMP_BMP 0xe09e0004
164 struct intel_context
;
166 int brw_aub_init( struct brw_context
*brw
);
167 void brw_aub_destroy( struct brw_context
*brw
);
168 void brw_aub_wrap( struct intel_context
*intel
);