i965/nir: Pass a is_scalar boolean to brw_create_nir()
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 22 Jul 2015 07:35:28 +0000 (09:35 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commit5e839727ed2378a01d3b657bad83abd4728e8da6
tree21b7a0954e7905af3a02b0ff113698ec8f371da0
parent59006d3ad3ed5d29e84afa5931f425344e2ef658
i965/nir: Pass a is_scalar boolean to brw_create_nir()

The upcoming introduction of NIR->vec4 pass will require that some NIR
lowering passes are enabled/disabled depending on the type of shader
(scalar vs. vector).

With this patch we pass a 'is_scalar' variable to the process of
constructing the NIR, to let an external context decide how the shader
should be handled.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_nir.h
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp