Back to index

libdrm  2.4.37
Defines
intel_aub.h File Reference

The AUB file is a file format used by Intel's internal simulation and other validation tools. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define AUB_MI_NOOP   (0)
#define AUB_MI_BATCH_BUFFER_START   (0x31 << 23)
#define AUB_PIPE_CONTROL   (0x7a000002)
#define CMD_AUB   (7 << 29)
#define CMD_AUB_HEADER   (CMD_AUB | (1 << 23) | (0x05 << 16))
#define AUB_HEADER_MAJOR_SHIFT   24
#define AUB_HEADER_MINOR_SHIFT   16
#define CMD_AUB_TRACE_HEADER_BLOCK   (CMD_AUB | (1 << 23) | (0x41 << 16))
#define CMD_AUB_DUMP_BMP   (CMD_AUB | (1 << 23) | (0x9e << 16))
#define AUB_TRACE_OPERATION_MASK   0x000000ff
#define AUB_TRACE_OP_COMMENT   0x00000000
#define AUB_TRACE_OP_DATA_WRITE   0x00000001
#define AUB_TRACE_OP_COMMAND_WRITE   0x00000002
#define AUB_TRACE_OP_MMIO_WRITE   0x00000003
#define AUB_TRACE_TYPE_MASK   0x0000ff00
#define AUB_TRACE_TYPE_NOTYPE   (0 << 8)
#define AUB_TRACE_TYPE_BATCH   (1 << 8)
#define AUB_TRACE_TYPE_VERTEX_BUFFER   (5 << 8)
#define AUB_TRACE_TYPE_2D_MAP   (6 << 8)
#define AUB_TRACE_TYPE_CUBE_MAP   (7 << 8)
#define AUB_TRACE_TYPE_VOLUME_MAP   (9 << 8)
#define AUB_TRACE_TYPE_1D_MAP   (10 << 8)
#define AUB_TRACE_TYPE_CONSTANT_BUFFER   (11 << 8)
#define AUB_TRACE_TYPE_CONSTANT_URB   (12 << 8)
#define AUB_TRACE_TYPE_INDEX_BUFFER   (13 << 8)
#define AUB_TRACE_TYPE_GENERAL   (14 << 8)
#define AUB_TRACE_TYPE_SURFACE   (15 << 8)
#define AUB_TRACE_TYPE_RING_HWB   (1 << 8)
#define AUB_TRACE_TYPE_RING_PRB0   (2 << 8)
#define AUB_TRACE_TYPE_RING_PRB1   (3 << 8)
#define AUB_TRACE_TYPE_RING_PRB2   (4 << 8)
#define AUB_TRACE_ADDRESS_SPACE_MASK   0x00ff0000
#define AUB_TRACE_MEMTYPE_GTT   (0 << 16)
#define AUB_TRACE_MEMTYPE_LOCAL   (1 << 16)
#define AUB_TRACE_MEMTYPE_NONLOCAL   (2 << 16)
#define AUB_TRACE_MEMTYPE_PCI   (3 << 16)
#define AUB_TRACE_MEMTYPE_GTT_ENTRY   (4 << 16)
#define AUB_TRACE_GENERAL_STATE_MASK   0x000000ff
#define AUB_TRACE_VS_STATE   0x00000001
#define AUB_TRACE_GS_STATE   0x00000002
#define AUB_TRACE_CL_STATE   0x00000003
#define AUB_TRACE_SF_STATE   0x00000004
#define AUB_TRACE_WM_STATE   0x00000005
#define AUB_TRACE_CC_STATE   0x00000006
#define AUB_TRACE_CL_VP   0x00000007
#define AUB_TRACE_SF_VP   0x00000008
#define AUB_TRACE_CC_VP   0x00000009
#define AUB_TRACE_SAMPLER_STATE   0x0000000a
#define AUB_TRACE_KERNEL   0x0000000b
#define AUB_TRACE_SCRATCH   0x0000000c
#define AUB_TRACE_SDC   0x0000000d
#define AUB_TRACE_BLEND_STATE   0x00000016
#define AUB_TRACE_DEPTH_STENCIL_STATE   0x00000017
#define AUB_TRACE_SURFACE_STATE_MASK   0x00000ff00
#define AUB_TRACE_BINDING_TABLE   0x000000100
#define AUB_TRACE_SURFACE_STATE   0x000000200

Detailed Description

The AUB file is a file format used by Intel's internal simulation and other validation tools.

It can be used at various levels by a driver to input state to the simulated hardware or a replaying debugger.

We choose to dump AUB files using the trace block format for ease of implementation -- dump out the blocks of memory as plain blobs and insert ring commands to execute the batchbuffer blob.

Definition in file intel_aub.h.


Define Documentation

#define AUB_HEADER_MAJOR_SHIFT   24

Definition at line 53 of file intel_aub.h.

#define AUB_HEADER_MINOR_SHIFT   16

Definition at line 54 of file intel_aub.h.

#define AUB_MI_BATCH_BUFFER_START   (0x31 << 23)

Definition at line 44 of file intel_aub.h.

#define AUB_MI_NOOP   (0)

Definition at line 43 of file intel_aub.h.

#define AUB_PIPE_CONTROL   (0x7a000002)

Definition at line 45 of file intel_aub.h.

#define AUB_TRACE_ADDRESS_SPACE_MASK   0x00ff0000

Definition at line 88 of file intel_aub.h.

#define AUB_TRACE_BINDING_TABLE   0x000000100

Definition at line 117 of file intel_aub.h.

#define AUB_TRACE_BLEND_STATE   0x00000016

Definition at line 112 of file intel_aub.h.

#define AUB_TRACE_CC_STATE   0x00000006

Definition at line 104 of file intel_aub.h.

#define AUB_TRACE_CC_VP   0x00000009

Definition at line 107 of file intel_aub.h.

#define AUB_TRACE_CL_STATE   0x00000003

Definition at line 101 of file intel_aub.h.

#define AUB_TRACE_CL_VP   0x00000007

Definition at line 105 of file intel_aub.h.

#define AUB_TRACE_DEPTH_STENCIL_STATE   0x00000017

Definition at line 113 of file intel_aub.h.

#define AUB_TRACE_GENERAL_STATE_MASK   0x000000ff

Definition at line 97 of file intel_aub.h.

#define AUB_TRACE_GS_STATE   0x00000002

Definition at line 100 of file intel_aub.h.

#define AUB_TRACE_KERNEL   0x0000000b

Definition at line 109 of file intel_aub.h.

#define AUB_TRACE_MEMTYPE_GTT   (0 << 16)

Definition at line 89 of file intel_aub.h.

#define AUB_TRACE_MEMTYPE_GTT_ENTRY   (4 << 16)

Definition at line 93 of file intel_aub.h.

#define AUB_TRACE_MEMTYPE_LOCAL   (1 << 16)

Definition at line 90 of file intel_aub.h.

#define AUB_TRACE_MEMTYPE_NONLOCAL   (2 << 16)

Definition at line 91 of file intel_aub.h.

#define AUB_TRACE_MEMTYPE_PCI   (3 << 16)

Definition at line 92 of file intel_aub.h.

#define AUB_TRACE_OP_COMMAND_WRITE   0x00000002

Definition at line 63 of file intel_aub.h.

#define AUB_TRACE_OP_COMMENT   0x00000000

Definition at line 61 of file intel_aub.h.

#define AUB_TRACE_OP_DATA_WRITE   0x00000001

Definition at line 62 of file intel_aub.h.

#define AUB_TRACE_OP_MMIO_WRITE   0x00000003

Definition at line 64 of file intel_aub.h.

#define AUB_TRACE_OPERATION_MASK   0x000000ff

Definition at line 60 of file intel_aub.h.

#define AUB_TRACE_SAMPLER_STATE   0x0000000a

Definition at line 108 of file intel_aub.h.

#define AUB_TRACE_SCRATCH   0x0000000c

Definition at line 110 of file intel_aub.h.

#define AUB_TRACE_SDC   0x0000000d

Definition at line 111 of file intel_aub.h.

#define AUB_TRACE_SF_STATE   0x00000004

Definition at line 102 of file intel_aub.h.

#define AUB_TRACE_SF_VP   0x00000008

Definition at line 106 of file intel_aub.h.

#define AUB_TRACE_SURFACE_STATE   0x000000200

Definition at line 118 of file intel_aub.h.

#define AUB_TRACE_SURFACE_STATE_MASK   0x00000ff00

Definition at line 116 of file intel_aub.h.

#define AUB_TRACE_TYPE_1D_MAP   (10 << 8)

Definition at line 73 of file intel_aub.h.

#define AUB_TRACE_TYPE_2D_MAP   (6 << 8)

Definition at line 70 of file intel_aub.h.

#define AUB_TRACE_TYPE_BATCH   (1 << 8)

Definition at line 68 of file intel_aub.h.

#define AUB_TRACE_TYPE_CONSTANT_BUFFER   (11 << 8)

Definition at line 74 of file intel_aub.h.

#define AUB_TRACE_TYPE_CONSTANT_URB   (12 << 8)

Definition at line 75 of file intel_aub.h.

#define AUB_TRACE_TYPE_CUBE_MAP   (7 << 8)

Definition at line 71 of file intel_aub.h.

#define AUB_TRACE_TYPE_GENERAL   (14 << 8)

Definition at line 77 of file intel_aub.h.

#define AUB_TRACE_TYPE_INDEX_BUFFER   (13 << 8)

Definition at line 76 of file intel_aub.h.

#define AUB_TRACE_TYPE_MASK   0x0000ff00

Definition at line 66 of file intel_aub.h.

#define AUB_TRACE_TYPE_NOTYPE   (0 << 8)

Definition at line 67 of file intel_aub.h.

#define AUB_TRACE_TYPE_RING_HWB   (1 << 8)

Definition at line 82 of file intel_aub.h.

#define AUB_TRACE_TYPE_RING_PRB0   (2 << 8)

Definition at line 83 of file intel_aub.h.

#define AUB_TRACE_TYPE_RING_PRB1   (3 << 8)

Definition at line 84 of file intel_aub.h.

#define AUB_TRACE_TYPE_RING_PRB2   (4 << 8)

Definition at line 85 of file intel_aub.h.

#define AUB_TRACE_TYPE_SURFACE   (15 << 8)

Definition at line 78 of file intel_aub.h.

#define AUB_TRACE_TYPE_VERTEX_BUFFER   (5 << 8)

Definition at line 69 of file intel_aub.h.

#define AUB_TRACE_TYPE_VOLUME_MAP   (9 << 8)

Definition at line 72 of file intel_aub.h.

#define AUB_TRACE_VS_STATE   0x00000001

Definition at line 99 of file intel_aub.h.

#define AUB_TRACE_WM_STATE   0x00000005

Definition at line 103 of file intel_aub.h.

#define CMD_AUB   (7 << 29)

Definition at line 49 of file intel_aub.h.

#define CMD_AUB_DUMP_BMP   (CMD_AUB | (1 << 23) | (0x9e << 16))

Definition at line 57 of file intel_aub.h.

#define CMD_AUB_HEADER   (CMD_AUB | (1 << 23) | (0x05 << 16))

Definition at line 51 of file intel_aub.h.

#define CMD_AUB_TRACE_HEADER_BLOCK   (CMD_AUB | (1 << 23) | (0x41 << 16))

Definition at line 56 of file intel_aub.h.