summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-06-10 10:48:35 +1000
committerDave Airlie <[email protected]>2016-06-11 06:43:45 +1000
commit213ab8db87bf17b9ef89bda5ada8122867769c9e (patch)
tree57bab0f11d5e38798b458667075734cfef853867 /src/gallium/auxiliary
parent8d37556ec9d7fbbffc5497388a52998ae4fe75de (diff)
gallium/tgsi: add 64-bitness type check function.
Currently this just doubles, but we'll convert users to this so making adding 64-bit integers easier. Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_info.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.h b/src/gallium/auxiliary/tgsi/tgsi_info.h
index 46f03cd393f..c43bdfdf985 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_info.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_info.h
@@ -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 );