translate: implement translation of 10_10_10_2 types
authorMarek Olšák <maraeo@gmail.com>
Mon, 2 Jan 2012 02:34:09 +0000 (03:34 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Jan 2012 17:29:11 +0000 (18:29 +0100)
commitd1f11ed3eff405561fd94ed05a9f0e5e049f0908
tree9a2bb23b337c1003aa595cb1825dfbb3ea656a4c
parent0a8a7144a152eba0e1bd955b7a423ed5336a9f31
translate: implement translation of 10_10_10_2 types

This is for GL_ARB_vertex_type_2_10_10_10_rev.
I just took the code from u_format_table.c. It's based on pack_rgba_float.
I had no other choice. The u_format hooks are not exactly compatible
with translate. The cleanup of it is left for future work.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/translate/translate_generic.c