diff options
author | Dave Airlie <[email protected]> | 2016-06-09 10:19:49 +1000 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-09-21 10:24:30 +0200 |
commit | 5561a377107cee5e07348fce020de579463c298f (patch) | |
tree | 8d533b754458d23b9e0a7314b2b70b5283660472 /src/gallium/auxiliary/tgsi/tgsi_info.h | |
parent | 6b26039da3deb3950d9798150d5431cb942f5637 (diff) |
gallivm/llvmpipe: prepare support for ARB_gpu_shader_int64.
This enables 64-bit integer support in gallivm and
llvmpipe.
v2: add conversion opcodes.
v3:
- PIPE_CAP_INT64 is not there yet
- restrict DIV/MOD defaults to the CPU, as for 32 bits
- TGSI_OPCODE_I2U64 becomes TGSI_OPCODE_U2I64
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_info.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.h b/src/gallium/auxiliary/tgsi/tgsi_info.h index 8830f5a3802..e60888fec8a 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_info.h +++ b/src/gallium/auxiliary/tgsi/tgsi_info.h @@ -105,7 +105,8 @@ enum tgsi_opcode_type { static inline bool tgsi_type_is_64bit(enum tgsi_opcode_type type) { - if (type == TGSI_TYPE_DOUBLE) + if (type == TGSI_TYPE_DOUBLE || type == TGSI_TYPE_UNSIGNED64 || + type == TGSI_TYPE_SIGNED64) return true; return false; } |