Mesa (master): radeonsi: get llvm types from ac
Timothy Arceri
tarceri at kemper.freedesktop.org
Fri Nov 10 19:54:37 UTC 2017
Module: Mesa
Branch: master
Commit: f9e5216f71fed25c4991c85d71df078cc978a2d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9e5216f71fed25c4991c85d71df078cc978a2d2
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Tue Nov 7 20:32:17 2017 +1100
radeonsi: get llvm types from ac
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
index 9ec5a876f3..59d02605e9 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -170,15 +170,15 @@ LLVMTypeRef tgsi2llvmtype(struct lp_build_tgsi_context *bld_base,
switch (type) {
case TGSI_TYPE_UNSIGNED:
case TGSI_TYPE_SIGNED:
- return ctx->i32;
+ return ctx->ac.i32;
case TGSI_TYPE_UNSIGNED64:
case TGSI_TYPE_SIGNED64:
- return ctx->i64;
+ return ctx->ac.i64;
case TGSI_TYPE_DOUBLE:
- return LLVMDoubleTypeInContext(ctx->ac.context);
+ return ctx->ac.f64;
case TGSI_TYPE_UNTYPED:
case TGSI_TYPE_FLOAT:
- return ctx->f32;
+ return ctx->ac.f32;
default: break;
}
return 0;
More information about the mesa-commit
mailing list