Check whether injected TCS was really allocated and number of inputs is in limits
Patches as proposed in the issue below by Kevin King.
Closes: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/455 Closes: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/457
Edited by Gert Wollny