i965: Switch TCS gl_program/gl_shader_program checks over to TES.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 05:24:32 +0000 (21:24 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:22:03 +0000 (17:22 -0800)
commita122af696cd821f63035fe0aa05a38f21069bc5f
tree889e7695cb0aa8ca46c6391ce5fd7b62229882ff
parent9d35fecfb94e26a5fe6b361ebe83044fae9131bf
i965: Switch TCS gl_program/gl_shader_program checks over to TES.

Tessellation control shaders are optional, but evaluation shaders will
always be present when using tessellation.  However, we'll always enable
the TCS (HS) hardware stage when using tessellation - we'll just create
a program on the fly.

That program, however, won't have a gl_program or gl_shader_program.
So we shouldn't check brw->tess_ctrl_program or
shader_prog->_LinkedShaders[MESA_SHADER_TESS_CTRL] - if we want to know
whether tessellation is enabled, we should look for a TES.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/gen7_hs_state.c
src/mesa/drivers/dri/i965/gen8_hs_state.c