summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_info.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-04-09 05:11:45 -0700
committerZack Rusin <zackr@vmware.com>2013-04-10 12:37:17 -0700
commitfe29f99293cb3bbc834f4d4d65e87ac7c734615d (patch)
tree20801e2c03d5ffa33cdf4533566fba75fe2f25ab /src/gallium/auxiliary/tgsi/tgsi_info.c
parentd56f2d52675397610717875c4a2a5edb04e2c997 (diff)
downloadexternal_mesa3d-fe29f99293cb3bbc834f4d4d65e87ac7c734615d.zip
external_mesa3d-fe29f99293cb3bbc834f4d4d65e87ac7c734615d.tar.gz
external_mesa3d-fe29f99293cb3bbc834f4d4d65e87ac7c734615d.tar.bz2
gallivm/tgsi: handle untyped moves
both mov and ucmp can be used to move variables of any type. correctly note that about ucmp in the tgsi_info and make sure gallivm can handle that by correctly casting the untyped moves. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_info.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c
index 8ae5523..1fadfec 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_info.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_info.c
@@ -327,6 +327,7 @@ tgsi_opcode_infer_dst_type( uint opcode )
{
switch (opcode) {
case TGSI_OPCODE_MOV:
+ case TGSI_OPCODE_UCMP:
return TGSI_TYPE_UNTYPED;
case TGSI_OPCODE_F2U:
case TGSI_OPCODE_AND: