summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_vbo.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-02-25 13:33:08 +1100
committerBen Skeggs <[email protected]>2008-02-25 13:33:08 +1100
commit026e2fd3c6eb87a010a9c90341e8a77b09376b5b (patch)
treeb2d8517cf1e600ce1e26a61462a69d9fab4dfea4 /src/gallium/drivers/nv40/nv40_vbo.c
parent4058a9012764ce3bc7b90d03c4d79d020540f8e4 (diff)
nv40: remove pipe_state struct now.
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_vbo.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_vbo.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/drivers/nv40/nv40_vbo.c b/src/gallium/drivers/nv40/nv40_vbo.c
index b5faf06291c..1653ebf2a7e 100644
--- a/src/gallium/drivers/nv40/nv40_vbo.c
+++ b/src/gallium/drivers/nv40/nv40_vbo.c
@@ -46,8 +46,8 @@ nv40_vbo_set_idxbuf(struct nv40_context *nv40, struct pipe_buffer *ib,
unsigned type;
if (!ib) {
- nv40->pipe_state.idxbuf = NULL;
- nv40->pipe_state.idxbuf_format = 0xdeadbeef;
+ nv40->idxbuf = NULL;
+ nv40->idxbuf_format = 0xdeadbeef;
return FALSE;
}
@@ -66,11 +66,11 @@ nv40_vbo_set_idxbuf(struct nv40_context *nv40, struct pipe_buffer *ib,
return FALSE;
}
- if (ib != nv40->pipe_state.idxbuf ||
- type != nv40->pipe_state.idxbuf_format) {
+ if (ib != nv40->idxbuf ||
+ type != nv40->idxbuf_format) {
nv40->dirty |= NV40_NEW_ARRAYS;
- nv40->pipe_state.idxbuf = ib;
- nv40->pipe_state.idxbuf_format = type;
+ nv40->idxbuf = ib;
+ nv40->idxbuf_format = type;
}
return TRUE;
@@ -348,10 +348,10 @@ nv40_draw_elements(struct pipe_context *pipe,
static boolean
nv40_vbo_validate(struct nv40_context *nv40)
{
- struct nv40_vertex_program *vp = nv40->pipe_state.vertprog;
+ struct nv40_vertex_program *vp = nv40->vertprog;
struct nouveau_stateobj *vtxbuf, *vtxfmt;
- struct pipe_buffer *ib = nv40->pipe_state.idxbuf;
- unsigned ib_format = nv40->pipe_state.idxbuf_format;
+ struct pipe_buffer *ib = nv40->idxbuf;
+ unsigned ib_format = nv40->idxbuf_format;
unsigned inputs, hw, num_hw;
unsigned vb_flags = NOUVEAU_BO_VRAM | NOUVEAU_BO_GART | NOUVEAU_BO_RD;