gallivm: fix [IU]MUL_HI regression
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 8 Nov 2016 09:14:00 +0000 (10:14 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 8 Nov 2016 15:25:54 +0000 (16:25 +0100)
commit88f791db75e9f065bac8134e0937e1b76600aa36
treef140eea96b018dd40bc0a19183c572181a248b5d
parent3fa10ffb496cc4e6d1003891cf0381bb5bec2a74
gallivm: fix [IU]MUL_HI regression

This patch does two things:

1. It separates the host-CPU code generation from the generic code
   generation. This guards against accidently breaking things for
   radeonsi in the future.

2. It makes sure we actually use both arguments and don't just compute
   a square :-p

Fixes a regression introduced by commit 29279f44b3172ef3b84d470e70fc7684695ced4b

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