i965: Start program_string_id from 1, not 0.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 11:18:11 +0000 (03:18 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:22:08 +0000 (17:22 -0800)
commit4ec3f0f4b98040edf21e395c9137dd99b0febdbf
tree23e04b6b7a6d0e5865ed4acf520c4aaa2b02f0eb
parent2432643e89ece4ed642db7ec8d811e724d1e8a35
i965: Start program_string_id from 1, not 0.

This way, I can safely use brw_tcs_prog_key::program_string_id == 0
to mean "not filled out because no program exists", which avoids the
need for adding an extra boolean to that struct.

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