Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nv30/nv30_format.h
4574 views
#ifndef __NV30_FORMAT_H__1#define __NV30_FORMAT_H__23struct nv30_format_info {4unsigned bindings;5};67struct nv30_format {8unsigned hw;9};1011struct nv30_vtxfmt {12unsigned hw;13};1415struct nv30_texfmt {16unsigned nv30;17unsigned nv30_rect;18unsigned nv40;19struct {20unsigned src;21unsigned cmp;22} swz[6];23unsigned swizzle;24unsigned filter;25unsigned wrap;26};2728extern const struct nv30_format_info nv30_format_info_table[];29static inline const struct nv30_format_info *30nv30_format_info(struct pipe_screen *pscreen, enum pipe_format format)31{32return &nv30_format_info_table[format];33}3435extern const struct nv30_format nv30_format_table[];36static inline const struct nv30_format *37nv30_format(struct pipe_screen *pscreen, enum pipe_format format)38{39return &nv30_format_table[format];40}4142extern const struct nv30_vtxfmt nv30_vtxfmt_table[];43static inline const struct nv30_vtxfmt *44nv30_vtxfmt(struct pipe_screen *pscreen, enum pipe_format format)45{46return &nv30_vtxfmt_table[format];47}4849extern const struct nv30_texfmt nv30_texfmt_table[];50static inline const struct nv30_texfmt *51nv30_texfmt(struct pipe_screen *pscreen, enum pipe_format format)52{53return &nv30_texfmt_table[format];54}5556#endif575859