summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_stateobj.h
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-03-04 22:15:17 +0100
committerChristoph Bumiller <[email protected]>2011-03-05 00:51:07 +0100
commit1f5d6fc59bd899e211c70026eb74cd2219858008 (patch)
treee00a5abe3158dff9e80cd6391b92496a31f51986 /src/gallium/drivers/nvc0/nvc0_stateobj.h
parente4c968cdbbdc020afbf869d12b536c0a0dbf9de8 (diff)
nv50,nvc0: share sampler state creation
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_stateobj.h')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_stateobj.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_stateobj.h b/src/gallium/drivers/nvc0/nvc0_stateobj.h
index c0c77a2ee18..8222f9375ee 100644
--- a/src/gallium/drivers/nvc0/nvc0_stateobj.h
+++ b/src/gallium/drivers/nvc0/nvc0_stateobj.h
@@ -14,35 +14,14 @@
#define SB_DATA(so, u) (so)->state[(so)->size++] = (u)
+#include "nv50/nv50_stateobj_tex.h"
+
struct nvc0_blend_stateobj {
struct pipe_blend_state pipe;
int size;
uint32_t state[72];
};
-struct nvc0_tsc_entry {
- int id;
- uint32_t tsc[8];
-};
-
-static INLINE struct nvc0_tsc_entry *
-nvc0_tsc_entry(void *hwcso)
-{
- return (struct nvc0_tsc_entry *)hwcso;
-}
-
-struct nvc0_tic_entry {
- struct pipe_sampler_view pipe;
- int id;
- uint32_t tic[8]; /* tic[1] (low 32 bit of address) is used for offset */
-};
-
-static INLINE struct nvc0_tic_entry *
-nvc0_tic_entry(struct pipe_sampler_view *view)
-{
- return (struct nvc0_tic_entry *)view;
-}
-
struct nvc0_rasterizer_stateobj {
struct pipe_rasterizer_state pipe;
int size;