Mesa (master): radeonsi: unduplicate VS color export code
Marek Olšák
mareko at kemper.freedesktop.org
Fri Jan 6 20:06:15 UTC 2017
Module: Mesa
Branch: master
Commit: 53648050a5cac333d6f9613148ae9d615594b4d8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53648050a5cac333d6f9613148ae9d615594b4d8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Dec 21 15:15:30 2016 +0100
radeonsi: unduplicate VS color export code
it's exactly the same as the other ones
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index f18aa82..8dec55c 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -2423,15 +2423,6 @@ handle_semantic:
case TGSI_SEMANTIC_POSITION:
target = V_008DFC_SQ_EXP_POS;
break;
- case TGSI_SEMANTIC_COLOR:
- case TGSI_SEMANTIC_BCOLOR:
- if (!export_param)
- continue;
- target = V_008DFC_SQ_EXP_PARAM + param_count;
- assert(i < ARRAY_SIZE(shader->info.vs_output_param_offset));
- shader->info.vs_output_param_offset[i] = param_count;
- param_count++;
- break;
case TGSI_SEMANTIC_CLIPDIST:
if (shader->key.opt.hw_vs.clip_disable) {
semantic_name = TGSI_SEMANTIC_GENERIC;
@@ -2444,6 +2435,8 @@ handle_semantic:
continue;
si_llvm_emit_clipvertex(bld_base, pos_args, outputs[i].values);
continue;
+ case TGSI_SEMANTIC_COLOR:
+ case TGSI_SEMANTIC_BCOLOR:
case TGSI_SEMANTIC_PRIMID:
case TGSI_SEMANTIC_FOG:
case TGSI_SEMANTIC_TEXCOORD:
More information about the mesa-commit
mailing list