draw: fix tessellation primitive id
The first patch fixes incorrect vertex outputs from tess stage, The second emits primitive ids from the tess stage into the vertex data.
However geometry shader after tes shader is now broken, have to consider how to fix it. will leave it for another MR though.