i965/nir: Move brw_type_for_nir_type() to brw_nir to allow reuse
authorEduardo Lima Mitev <elima@igalia.com>
Fri, 17 Apr 2015 16:10:50 +0000 (18:10 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commit97e205fd35bf77fd761caf24c611ff72cc0d85e2
treec88ffa3339df6ea101edc931c616adba3ea74c98
parentf7152525374015594e037fa11bb64e1c7174829b
i965/nir: Move brw_type_for_nir_type() to brw_nir to allow reuse

Upcoming NIR->vec4 pass can benefit from this method, so lets move it up.

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