i965/vec4: Handle 16-bit types at type_size_xvec4
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 1 Jul 2017 06:06:17 +0000 (08:06 +0200)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 6 Dec 2017 07:57:18 +0000 (08:57 +0100)
commit2d28ca70005968c7becb4e598b97e72c8e4890a2
tree24a6ab95ec1e46f3703ba5283b9b56d78578c229
parent4049c041221e614c64641fcbeb5b396fd3daa507
i965/vec4: Handle 16-bit types at type_size_xvec4

These types have similar vec4 sizes as their 32-bit counterparts.

The vec4 backend doesn't support 16-bit types and probably never will,
but this method is called by the scalar backend at
fs_visitor::nir_setup_outputs(), so we still need to provide valid vec4
sizes for 16-bit types. In the future, something different should be
implemented to avoid this dependency.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_vec4_visitor.cpp