summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_info.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-04-28 10:50:55 -0400
committerZack Rusin <zackr@vmware.com>2013-05-02 02:43:42 -0400
commit999cd79c9e1a5dc2d3f126670a1ca7ea4e7ee128 (patch)
tree748b3794ce1a32d90a2ad8f8b6b3fc7c3967dcb9 /src/gallium/auxiliary/tgsi/tgsi_info.c
parent1dfea559c3f188a7a82a4abc09765ba09e939522 (diff)
downloadexternal_mesa3d-999cd79c9e1a5dc2d3f126670a1ca7ea4e7ee128.zip
external_mesa3d-999cd79c9e1a5dc2d3f126670a1ca7ea4e7ee128.tar.gz
external_mesa3d-999cd79c9e1a5dc2d3f126670a1ca7ea4e7ee128.tar.bz2
tgsi: allow negation of all integer types
It's valid because we reuse certain arithmetic operations for both signed and unsigned types (e.g. uadd, umad, which have a bit unfortunate naming) Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: José 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c
index d5db6b9..eec49a8 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_info.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_info.c
@@ -280,6 +280,7 @@ tgsi_opcode_infer_src_type( uint opcode )
/* XXX some src args may be signed for SAD ? */
case TGSI_OPCODE_SAD:
case TGSI_OPCODE_U2F:
+ case TGSI_OPCODE_UADD:
case TGSI_OPCODE_UDIV:
case TGSI_OPCODE_UMOD:
case TGSI_OPCODE_UMAD:
@@ -314,8 +315,6 @@ tgsi_opcode_infer_src_type( uint opcode )
case TGSI_OPCODE_IABS:
case TGSI_OPCODE_ISSG:
case TGSI_OPCODE_UARL:
- /* UADD is both signed and unsigned require signed for working modifiers */
- case TGSI_OPCODE_UADD:
return TGSI_TYPE_SIGNED;
default:
return TGSI_TYPE_FLOAT;