projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ef1e42
)
radeonsi: add llvm_type_is_64bit() helper
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 7 Nov 2017 10:41:27 +0000
(21:41 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Mon, 4 Dec 2017 01:52:18 +0000
(12:52 +1100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index c3b5f58cd26a9bc788bdc0aea401f898a76f8ebd..58cba2c5a44bc74375835a1981d8eb6319e0cfdc 100644
(file)
--- 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,
};
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)
static bool is_merged_shader(struct si_shader *shader)
{
if (shader->selector->screen->info.chip_class <= VI)