Mesa (master): nvc0: assert that we have vertex elements state

Ilia Mirkin imirkin at kemper.freedesktop.org
Fri May 23 17:13:12 UTC 2014


Module: Mesa
Branch: master
Commit: caa34a7a640b150c15deafc41e7712417abcb270
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=caa34a7a640b150c15deafc41e7712417abcb270

Author: Christoph Bumiller <christoph.bumiller at speed.at>
Date:   Fri May 31 21:06:11 2013 +0200

nvc0: assert that we have vertex elements state

Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
index c58d6da..83d406d 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;




More information about the mesa-commit mailing list