Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
r100_track.h
Go to the documentation of this file.
1 
2 #define R100_TRACK_MAX_TEXTURE 3
3 #define R200_TRACK_MAX_TEXTURE 6
4 #define R300_TRACK_MAX_TEXTURE 16
5 
6 #define R100_MAX_CB 1
7 #define R300_MAX_CB 4
8 
9 /*
10  * CS functions
11  */
13  struct radeon_bo *robj;
14  unsigned pitch;
15  unsigned cpp;
16  unsigned offset;
17 };
18 
20  struct radeon_bo *robj;
21  unsigned esize;
22 };
23 
25  struct radeon_bo *robj;
26  unsigned offset;
27  unsigned width;
28  unsigned height;
29 };
30 
31 #define R100_TRACK_COMP_NONE 0
32 #define R100_TRACK_COMP_DXT1 1
33 #define R100_TRACK_COMP_DXT35 2
34 
36  struct radeon_bo *robj;
37  struct r100_cs_cube_info cube_info[5]; /* info for 5 non-primary faces */
38  unsigned pitch;
39  unsigned width;
40  unsigned height;
41  unsigned num_levels;
42  unsigned cpp;
43  unsigned tex_coord_type;
44  unsigned txdepth;
45  unsigned width_11;
46  unsigned height_11;
47  bool use_pitch;
48  bool enabled;
50  bool roundup_w;
51  bool roundup_h;
52  unsigned compress_format;
53 };
54 
55 struct r100_cs_track {
56  unsigned num_cb;
57  unsigned num_texture;
58  unsigned maxy;
59  unsigned vtx_size;
60  unsigned vap_vf_cntl;
61  unsigned vap_alt_nverts;
62  unsigned immd_dwords;
63  unsigned num_arrays;
64  unsigned max_indx;
71  bool z_enabled;
75  bool cb_dirty;
76  bool zb_dirty;
77  bool tex_dirty;
78  bool aa_dirty;
79  bool aaresolve;
80 };
81 
85  struct radeon_cs_reloc **cs_reloc);
87  struct radeon_cs_packet *pkt);
88 
90 
92  struct radeon_cs_packet *pkt,
93  unsigned idx, unsigned reg);
94 
96  struct radeon_cs_packet *pkt,
97  unsigned idx,
98  unsigned reg);
100  struct radeon_cs_packet *pkt,
101  int idx);