mesa: Do (TCS && !TES) draw time validation in ES as well.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Feb 2017 04:40:22 +0000 (20:40 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Feb 2017 05:09:14 +0000 (21:09 -0800)
commit05a56893aa2570cb1f6e61e3c9cf365266ea1d3a
treee5fe2a74660b440107067dadf2d27ae2a4bfcbd1
parentc59d1ea51bd0809761094e54c66bf3a200d964ff
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
ES31-CTS.core.tessellation_shader.single.xfb_captures_data_from_correct_stage
with some SSO pipeline validation changes I'm making.

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

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/main/api_validate.c