diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2011-03-04 22:15:17 +0100 |
---|---|---|
committer | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2011-03-05 00:51:07 +0100 |
commit | 1f5d6fc59bd899e211c70026eb74cd2219858008 (patch) | |
tree | e00a5abe3158dff9e80cd6391b92496a31f51986 /src/gallium/drivers/nv50/nv50_stateobj_tex.h | |
parent | e4c968cdbbdc020afbf869d12b536c0a0dbf9de8 (diff) | |
download | external_mesa3d-1f5d6fc59bd899e211c70026eb74cd2219858008.zip external_mesa3d-1f5d6fc59bd899e211c70026eb74cd2219858008.tar.gz external_mesa3d-1f5d6fc59bd899e211c70026eb74cd2219858008.tar.bz2 |
nv50,nvc0: share sampler state creation
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_stateobj_tex.h')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_stateobj_tex.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_stateobj_tex.h b/src/gallium/drivers/nv50/nv50_stateobj_tex.h new file mode 100644 index 0000000..99548cb --- /dev/null +++ b/src/gallium/drivers/nv50/nv50_stateobj_tex.h @@ -0,0 +1,34 @@ + +#ifndef __NV50_STATEOBJ_TEX_H__ +#define __NV50_STATEOBJ_TEX_H__ + +#include "pipe/p_state.h" + +struct nv50_tsc_entry { + int id; + uint32_t tsc[8]; +}; + +static INLINE struct nv50_tsc_entry * +nv50_tsc_entry(void *hwcso) +{ + return (struct nv50_tsc_entry *)hwcso; +} + +struct nv50_tic_entry { + struct pipe_sampler_view pipe; + int id; + uint32_t tic[8]; +}; + +static INLINE struct nv50_tic_entry * +nv50_tic_entry(struct pipe_sampler_view *view) +{ + return (struct nv50_tic_entry *)view; +} + +extern void * +nv50_sampler_state_create(struct pipe_context *, + const struct pipe_sampler_state *); + +#endif /* __NV50_STATEOBJ_TEX_H__ */ |