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>
This commit is contained in:
Kenneth Graunke 2015-12-18 03:18:11 -08:00
parent 2432643e89
commit 4ec3f0f4b9
1 changed files with 1 additions and 0 deletions

View File

@ -1497,6 +1497,7 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
intelScreen->compiler = brw_compiler_create(intelScreen,
intelScreen->devinfo);
intelScreen->program_id = 1;
if (intelScreen->devinfo->has_resource_streamer) {
int val = -1;