i965: Rework passthrough TCS checks.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 May 2016 20:14:31 +0000 (13:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 5 May 2016 21:24:00 +0000 (14:24 -0700)
commita808ba59657b3e5c6399e51fa1f4ebe9cad201a9
treeb26a67676aaec3dd2d7e6963ba5409dc2a59b123
parentff8c0c9a35458532519721ced82bc8d4b1ed8cac
i965: Rework passthrough TCS checks.

According to Timothy, using program_string_id == 0 to identify the
passthrough TCS is going to be problematic for his shader cache work.

So, change it to strcmp() the name at visitor creation time.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp