i965/nir: Add new utility method brw_glsl_base_type_for_nir_type()
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 17 Jun 2015 08:59:10 +0000 (10:59 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:50 +0000 (09:40 -0700)
commitdb8a6de571bb72ef43209a415e5492001a87b1d8
tree23cf20c74c7af903be0e207bfee66b381ec7c404
parent583c1c61703826002ba0f202e8ef7bc2c822ef1d
i965/nir: Add new utility method brw_glsl_base_type_for_nir_type()

This method returns the glsl_base_type corresponding to a nir_alu_type.
It will factorize code currently present in fs_nir, that can be reused
in vec4_nir on its upcoming emit_texture support.

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