Module: Mesa Branch: master Commit: 213ab8db87bf17b9ef89bda5ada8122867769c9e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=213ab8db87bf17b9ef89bda5ada8122867769c9e
Author: Dave Airlie <[email protected]> Date: Fri Jun 10 10:48:35 2016 +1000 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]> --- src/gallium/auxiliary/tgsi/tgsi_info.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.h b/src/gallium/auxiliary/tgsi/tgsi_info.h index 46f03cd..c43bdfd 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 ); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
