diff options
author | Ben Skeggs <[email protected]> | 2008-03-12 02:56:10 +1100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-03-12 02:56:10 +1100 |
commit | 3250bacd2411d3f1af50135599380b2140238535 (patch) | |
tree | 11d07019acc1430a1bd84b54472a83c7225e6cd4 /src/gallium/drivers/nv50/nv50_context.h | |
parent | b2e48f848496d5e315e536688c8c33dfb1fab7eb (diff) |
nv50: create blend stateobj
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.h')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_context.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.h b/src/gallium/drivers/nv50/nv50_context.h index e2656bd539b..6096818d40d 100644 --- a/src/gallium/drivers/nv50/nv50_context.h +++ b/src/gallium/drivers/nv50/nv50_context.h @@ -22,6 +22,13 @@ #define NOUVEAU_MSG(fmt, args...) \ fprintf(stderr, "nouveau: "fmt, ##args); +#define NV50_NEW_BLEND (1 << 0) + +struct nv50_blend_stateobj { + struct pipe_blend_state pipe; + struct nouveau_stateobj *so; +}; + struct nv50_context { struct pipe_context pipe; @@ -29,8 +36,16 @@ struct nv50_context { unsigned pctx_id; struct draw_context *draw; + + unsigned dirty; + struct nv50_blend_stateobj *blend; }; +static INLINE struct nv50_context * +nv50_context(struct pipe_context *pipe) +{ + return (struct nv50_context *)pipe; +} extern void nv50_init_miptree_functions(struct nv50_context *nv50); extern void nv50_init_surface_functions(struct nv50_context *nv50); |