gallivm: Introduce lp_format_intrinsic.
authorJose Fonseca <jfonseca@vmware.com>
Sun, 3 Apr 2016 21:52:53 +0000 (22:52 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 3 Apr 2016 23:06:09 +0000 (00:06 +0100)
commit7ad49daca61a638f5029fedacd98357943c67ea8
tree708db1f0e1874cfce8928ad668f99a4c7a09139c
parent7af12a8dc6c96b8b0da802b3b25fbd6a197b2d62
gallivm: Introduce lp_format_intrinsic.

For adding .v4f32 like suffixes to intrinsics, taking special care for
scalar case, which was being often neglected.

This fixes invalid IR when doing mipmap filtering on SSE2 (the only
case where we'd use intrinsics with scalars.)

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c
src/gallium/auxiliary/gallivm/lp_bld_intr.c
src/gallium/auxiliary/gallivm/lp_bld_intr.h