1 #ifndef __NV30_FORMAT_H__
2 #define __NV30_FORMAT_H__
4 struct nv30_format_info
{
29 extern const struct nv30_format_info nv30_format_info_table
[];
30 static INLINE
const struct nv30_format_info
*
31 nv30_format_info(struct pipe_screen
*pscreen
, enum pipe_format format
)
33 return &nv30_format_info_table
[format
];
36 extern const struct nv30_format nv30_format_table
[];
37 static INLINE
const struct nv30_format
*
38 nv30_format(struct pipe_screen
*pscreen
, enum pipe_format format
)
40 return &nv30_format_table
[format
];
43 extern const struct nv30_vtxfmt nv30_vtxfmt_table
[];
44 static INLINE
const struct nv30_vtxfmt
*
45 nv30_vtxfmt(struct pipe_screen
*pscreen
, enum pipe_format format
)
47 return &nv30_vtxfmt_table
[format
];
50 extern const struct nv30_texfmt nv30_texfmt_table
[];
51 static INLINE
const struct nv30_texfmt
*
52 nv30_texfmt(struct pipe_screen
*pscreen
, enum pipe_format format
)
54 return &nv30_texfmt_table
[format
];