mesa: Do (TCS && !TES) draw time validation in ES as well.

Now that we have OES_tessellation_shader, the same situation can occur
in ES too, not just GL core profile.

Having a TCS but no TES may confuse drivers - i965 crashes, for example.

This prevents regressions in
with some SSO pipeline validation changes I'm making.

v2: Add an ES spec citation (suggested by Alejandro)

Cc: "17.0" <>
Signed-off-by: Kenneth Graunke <>
Reviewed-by: Alejandro PiƱeiro <>
(cherry picked from commit 05a56893aa2570cb1f6e61e3c9cf365266ea1d3a)
1 file changed