gallivm: fix lp_build_compare_ext
authorRoland Scheidegger <sroland@vmware.com>
Sat, 4 Jul 2015 01:03:33 +0000 (03:03 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 6 Jul 2015 21:52:32 +0000 (23:52 +0200)
commit7b06af9d3ca7310197d39d55fc52c265da4bc59e
tree5c345c586e753ca1d8401a30b81d23dc26c2d2a6
parent128de6f6d7cd0eb5386dcc622afc6e28a8512e7f
gallivm: fix lp_build_compare_ext

The expansion should always be to the same width as the input arguments
no matter what, since these functions should work with any bit width of
the arguments (the sext is a no-op on any sane simd architecture).
Thus, fix the caller expecting differently.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=91222

Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_logic.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c