This implemention tries to be as accurate as the old SW implemention, but it will remove the dependcy of our vertexloader on videosw.