nir: Make nir_lower_samplers take a gl_shader_stage, not a gl_program *.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Apr 2015 22:14:16 +0000 (15:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Apr 2015 09:16:29 +0000 (02:16 -0700)
commit99264b7f37dc92bcb3a9ae226e00c9300414431c
treea9cf3e96b8f37330f147038930c15c30eb31ba93
parent4b27391cadcc789a3befbd2b5a846012afa069b8
nir: Make nir_lower_samplers take a gl_shader_stage, not a gl_program *.

We don't actually need a gl_program struct.  We only used it to
translate prog->Target (i.e. GL_VERTEX_PROGRAM) to the gl_shader_stage
(i.e. MESA_SHADER_VERTEX).  We may as well just pass that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_samplers.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp