i965: Only call _mesa_load_state_parameters if prog exists.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 10:57:05 +0000 (02:57 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:22:04 +0000 (17:22 -0800)
commit0d5cb4aef45e97b35a45925d7e9e7c6ca45c1675
tree0aa35a976e6d3a181b7d00bd0ef9e035dbcaa593
parenta122af696cd821f63035fe0aa05a38f21069bc5f
i965: Only call _mesa_load_state_parameters if prog exists.

With the automatic-TCS creation, we won't have a prog, but still need to
upload push constants.

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