driver: fix vertex elements issue

The END field of VERTEX_ELEMENT_CONFIG was filled in wrongly.  Compute it correctly now.