nir: Plumb the shader stage into glsl_to_nir().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Mar 2015 09:22:49 +0000 (01:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 03:04:01 +0000 (20:04 -0700)
commitc6f2abe67e38c52361a1d342dca6ec5ed7747913
tree5dda9a9c6a6e987e6fcf8867af220fd32b2bbad6
parentb200cbb0a41aaebb007668f870a483f0b9ecd898
nir: Plumb the shader stage into glsl_to_nir().

The next commit needs to know the shader stage in glsl_to_nir().
To facilitate that, we pass the gl_shader rather than the raw exec_list
of instructions.  This has both the exec_list and the stage.

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