summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_vbo.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-03-12 02:59:20 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-03-12 02:59:42 +1100
commit9c29512154992f95c11939615ddcbef185c6a96c (patch)
tree2cba3479043862016411c31f19c8393c07e7b0ed /src/gallium/drivers/nv50/nv50_vbo.c
parent3250bacd2411d3f1af50135599380b2140238535 (diff)
nv50: crappy state validate/emit function
Just for testing stateobjs to make sure they don't hang the engine.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_vbo.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_vbo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index 6c0dc23a43..b01ce1d42c 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -9,6 +9,10 @@ boolean
nv50_draw_arrays(struct pipe_context *pipe, unsigned mode, unsigned start,
unsigned count)
{
+ struct nv50_context *nv50 = nv50_context(pipe);
+
+ nv50_state_validate(nv50);
+
NOUVEAU_ERR("unimplemented\n");
return TRUE;
}
@@ -18,6 +22,10 @@ nv50_draw_elements(struct pipe_context *pipe,
struct pipe_buffer *indexBuffer, unsigned indexSize,
unsigned mode, unsigned start, unsigned count)
{
+ struct nv50_context *nv50 = nv50_context(pipe);
+
+ nv50_state_validate(nv50);
+
NOUVEAU_ERR("unimplemented\n");
return TRUE;
}