Mesa (master): radeonsi: remove dead code in declare_input_fs
Marek Olšák
mareko at kemper.freedesktop.org
Wed Jun 7 16:43:55 UTC 2017
Module: Mesa
Branch: master
Commit: 294be5279df40c049f57d7d6a704d5fb28d5579a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=294be5279df40c049f57d7d6a704d5fb28d5579a
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed May 31 23:09:33 2017 +0200
radeonsi: remove dead code in declare_input_fs
Colors are interpolated in the PS prolog. This was never used.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index ddfaa3b724..0ca07ab4ee 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1363,11 +1363,6 @@ static void declare_input_fs(
interp_param = LLVMGetParam(ctx->main_fn, interp_param_idx);
}
- if (decl->Semantic.Name == TGSI_SEMANTIC_COLOR &&
- decl->Interp.Interpolate == TGSI_INTERPOLATE_COLOR &&
- ctx->shader->key.part.ps.prolog.flatshade_colors)
- interp_param = NULL; /* load the constant color */
-
interp_fs_input(ctx, input_index, decl->Semantic.Name,
decl->Semantic.Index, shader->selector->info.num_inputs,
shader->selector->info.colors_read, interp_param,
More information about the mesa-commit
mailing list