diff options
author | Timothy Arceri <[email protected]> | 2017-11-07 21:41:27 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-12-04 12:52:18 +1100 |
commit | 650126f3e02ede482fbb11b9dc069eae200378ae (patch) | |
tree | f883ea16b3ebb89f76b28849c3ad1a5edbcea9b0 /src/gallium | |
parent | 7ef1e42c14fb23592e8e003f7a80db9a43cb9bc9 (diff) |
radeonsi: add llvm_type_is_64bit() helper
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index c3b5f58cd26..58cba2c5a44 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -103,6 +103,15 @@ enum { LOCAL_ADDR_SPACE = 3, }; +static bool llvm_type_is_64bit(struct si_shader_context *ctx, + LLVMTypeRef type) +{ + if (type == ctx->ac.i64 || type == ctx->ac.f64) + return true; + + return false; +} + static bool is_merged_shader(struct si_shader *shader) { if (shader->selector->screen->info.chip_class <= VI) |