From 906ee3a3ba9c71461b59aff07c50ca458fcd410c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 29 Sep 2017 16:27:26 +0200 Subject: [PATCH] radeonsi: don't use bld.elem_type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c index 972b26f2acc..563b305b6da 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c @@ -428,7 +428,7 @@ static void emit_f2i(const struct lp_build_tgsi_action *action, { struct si_shader_context *ctx = si_shader_context(bld_base); emit_data->output[emit_data->chan] = LLVMBuildFPToSI(ctx->ac.builder, - emit_data->args[0], bld_base->int_bld.elem_type, ""); + emit_data->args[0], ctx->i32, ""); } static void emit_f2u(const struct lp_build_tgsi_action *action, @@ -437,7 +437,7 @@ static void emit_f2u(const struct lp_build_tgsi_action *action, { struct si_shader_context *ctx = si_shader_context(bld_base); emit_data->output[emit_data->chan] = LLVMBuildFPToUI(ctx->ac.builder, - emit_data->args[0], bld_base->uint_bld.elem_type, ""); + emit_data->args[0], ctx->i32, ""); } static void emit_i2f(const struct lp_build_tgsi_action *action, @@ -446,7 +446,7 @@ static void emit_i2f(const struct lp_build_tgsi_action *action, { struct si_shader_context *ctx = si_shader_context(bld_base); emit_data->output[emit_data->chan] = LLVMBuildSIToFP(ctx->ac.builder, - emit_data->args[0], bld_base->base.elem_type, ""); + emit_data->args[0], ctx->f32, ""); } static void emit_u2f(const struct lp_build_tgsi_action *action, @@ -455,7 +455,7 @@ static void emit_u2f(const struct lp_build_tgsi_action *action, { struct si_shader_context *ctx = si_shader_context(bld_base); emit_data->output[emit_data->chan] = LLVMBuildUIToFP(ctx->ac.builder, - emit_data->args[0], bld_base->base.elem_type, ""); + emit_data->args[0], ctx->f32, ""); } static void -- 2.30.2