gallium/tgsi: add 64-bitness type check function.
authorDave Airlie <airlied@redhat.com>
Fri, 10 Jun 2016 00:48:35 +0000 (10:48 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 10 Jun 2016 20:43:45 +0000 (06:43 +1000)
Currently this just doubles, but we'll convert users to this
so making adding 64-bit integers easier.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_info.h

index 46f03cd393f6d0d4a60f061f7777aec26eb909cd..c43bdfdf985482fd1e92912d6188463d2fcc37c7 100644 (file)
@@ -101,6 +101,13 @@ enum tgsi_opcode_type {
    TGSI_TYPE_DOUBLE
 };
 
+static inline bool tgsi_type_is_64bit(enum tgsi_opcode_type type)
+{
+   if (type == TGSI_TYPE_DOUBLE)
+      return true;
+   return false;
+}
+
 enum tgsi_opcode_type
 tgsi_opcode_infer_src_type( uint opcode );