i965: Only call brw_upload_tcs/tes_prog when using tessellation.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Dec 2015 11:04:50 +0000 (03:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:21:59 +0000 (17:21 -0800)
commit8498cb4a45e8ed53a2ee2b35d3c2cbb9963e1756
treebfbac178730c3fa332f288ce708df1f1e972bf1c
parent2bcf98940703bee4485e323f4a9e28e2c6fe41fd
i965: Only call brw_upload_tcs/tes_prog when using tessellation.

If there's no evaluation shader, tessellation is disabled.  The upload
functions would just bail.  Instead, don't bother calling them.

This will simplify the optional-TCS case a bit, as brw_upload_tcs can
assume that we're doing tessellation.

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