gallivm: fix indirect src register fetches requiring bitcast
authorRoland Scheidegger <sroland@vmware.com>
Tue, 19 Feb 2013 20:28:25 +0000 (21:28 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 20 Feb 2013 18:37:30 +0000 (19:37 +0100)
commit83f7cde1821d8e004d49fb966a323c037631b9a2
tree8d2000884ba91cecde6484afdea8cd1f57c54cdc
parentfbbcc1fcc4a1e9e8ab794378a55e797ebaa3ed0a
gallivm: fix indirect src register fetches requiring bitcast

For constant and temporary register fetches, the bitcasts weren't done
correctly for the indirect case, leading to crashes due to type mismatches.
Simply do the bitcasts after fetching (much simpler than fixing up the load
pointer for the various cases).

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

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c