i965: Don't rely on nir for uses_texture_gather
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 28 Jul 2017 22:46:02 +0000 (15:46 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:54 +0000 (23:36 -0700)
commit1edf0fe612d595bf1eee711b60db17eb25759f82
treee44f32d8e4736377ca829db258d26fd2f7a7a1d3
parent0610a624a1286cec1b9a0a19be63f46aae518377
i965: Don't rely on nir for uses_texture_gather

When a program is restored from the shader cache, prog->nir will be
NULL, but prog->info will be restored.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c