i965/nir/vec4: Select between new nir_vec4 or current vec4_visitor code-paths
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 16 Jun 2015 10:26:39 +0000 (12:26 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:46 +0000 (09:40 -0700)
commit47d68908f2c3ad3e9011a2cf910b04cd3300673a
tree754c3d97151a223d4d64c4317bd4930a30d51037
parentabf4fa3c03ebe5716c90c8a310945c3621cf598f
i965/nir/vec4: Select between new nir_vec4 or current vec4_visitor code-paths

The NIR->vec4 pass will be activated if both the following conditions are met:

* INTEL_USE_NIR environment variable is defined and is positive (1 or true)
* The stage is vertex shader (support for geometry shaders and
  ARB_vertex_program will be added later).

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