Isn't it possible to compute the maximum legal index by just taking the minimum of: (vb->buffer->size - vb->buffer_offset - ve->src_offset) / vb->stride
over all vertex buffers/elements? Isn't the kernel checker doing something like this? ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev