i965/nir/vec4: Implement conditional statements (nir_cf_node_if)
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 16 Jun 2015 18:16:15 +0000 (20:16 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commit5c0436dbf87fef76ba67456f215d9285c38f1816
tree0d87f6450be58a7111e37a4a1b69c8017e4e782b
parentf3187ea31ede6bc181ee561573d127aa2e485657
i965/nir/vec4: Implement conditional statements (nir_cf_node_if)

The same we do in the FS NIR backend, only that here we need to consider
the number of components in the condition and adjust the swizzle
accordingly.

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