From: Marek Olšák Date: Fri, 29 Sep 2017 14:27:26 +0000 (+0200) Subject: radeonsi: don't use bld.elem_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=906ee3a3ba9c71461b59aff07c50ca458fcd410c;p=mesa.git radeonsi: don't use bld.elem_type Reviewed-by: Nicolai Hähnle --- 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