svga: simplify common immediate value construction
authorBrian Paul <brianp@vmware.com>
Sat, 18 Jan 2014 12:53:43 +0000 (04:53 -0800)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jan 2014 15:23:01 +0000 (08:23 -0700)
commit56b876ecd0c2d1958314671fcfdfa6a959c74137
tree2ba8705f5202c1bb7d6563162192846e22389646
parent023020d740b4fb5da2b9f344d97d1c151e7bbb90
svga: simplify common immediate value construction

Use some new helper functions to make the code much more readable.
And fix wrong value for XPD's w result.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_tgsi_emit.h
src/gallium/drivers/svga/svga_tgsi_insn.c