diff options
author | Marek Olšák <[email protected]> | 2017-09-29 16:27:26 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-06 02:56:11 +0200 |
commit | 906ee3a3ba9c71461b59aff07c50ca458fcd410c (patch) | |
tree | 3bf525ea47230a4851240ec6848caaa5c8516bd9 /src | |
parent | 723a23905f475670e8866c86ccb73ead4ee05d50 (diff) |
radeonsi: don't use bld.elem_type
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c | 8 |
1 files 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 |