summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nvc0
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2013-05-31 21:06:11 +0200
committerIlia Mirkin <[email protected]>2014-05-23 12:34:39 -0400
commitcaa34a7a640b150c15deafc41e7712417abcb270 (patch)
treefc9e5d40bbba4b435038a8fa66c3f7c6ea798a06 /src/gallium/drivers/nouveau/nvc0
parent2595682689216ee4273ed14232993befcd559d66 (diff)
nvc0: assert that we have vertex elements state
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
index c58d6daddf1..83d406d5646 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
@@ -423,6 +423,7 @@ nvc0_vertex_arrays_validate(struct nvc0_context *nvc0)
nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_VTX);
+ assert(vertex);
if (unlikely(vertex->need_conversion) ||
unlikely(nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS)) {
vbo_mode = 3;