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 <sroland@vmware.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
8d37556ec9
commit
213ab8db87
|
@ -101,6 +101,13 @@ enum tgsi_opcode_type {
|
||||||
TGSI_TYPE_DOUBLE
|
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
|
enum tgsi_opcode_type
|
||||||
tgsi_opcode_infer_src_type( uint opcode );
|
tgsi_opcode_infer_src_type( uint opcode );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue