nir: Add native_integers to nir_shader_compiler_options.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Mar 2015 09:17:22 +0000 (01:17 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 03:03:57 +0000 (20:03 -0700)
commitb200cbb0a41aaebb007668f870a483f0b9ecd898
tree7270b41cca62b1cf0827fa66b17ce5346e6f10f3
parenta55da73be46b4576015417b2dff71a719bc8b797
nir: Add native_integers to nir_shader_compiler_options.

glsl_to_nir, tgsi_to_nir, and prog_to_nir all want to know whether the
driver supports native integers.  Presumably other passes may as well.

Adding this to nir_shader_compiler_options is an easy way to provide
that information, as it's accessible via nir_shader::options.

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/glsl/nir/nir.h
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_fs_nir.cpp