summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-07-11 08:44:18 +0200
committerSamuel Pitoiset <[email protected]>2019-07-11 15:45:58 +0200
commitf5982917ff3d2dced160812a8ff53e52723f66a2 (patch)
tree607e6a8425f352b8639af22a17b2cc27a8e52bab /src/amd/vulkan
parent7515f41c78a05962e8e659d13437a2fd2dfe7636 (diff)
radv/gfx10: Simplify output mask handling for NGG GS.
We only ever get in this function for a NGG GS proper. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_nir_to_llvm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index 490b16a1f25..b5469677d2b 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -3626,18 +3626,7 @@ static void gfx10_ngg_gs_emit_epilogue_2(struct radv_shader_context *ctx)
outputs[noutput].slot_name = i;
outputs[noutput].slot_index = i == VARYING_SLOT_CLIP_DIST1;
- if (ctx->stage == MESA_SHADER_VERTEX &&
- !ctx->is_gs_copy_shader) {
- outputs[noutput].usage_mask =
- ctx->shader_info->info.vs.output_usage_mask[i];
- } else if (ctx->stage == MESA_SHADER_TESS_EVAL) {
- outputs[noutput].usage_mask =
- ctx->shader_info->info.tes.output_usage_mask[i];
- } else {
- assert(ctx->is_gs_copy_shader || ctx->options->key.vs_common_out.as_ngg);
- outputs[noutput].usage_mask =
- ctx->shader_info->info.gs.output_usage_mask[i];
- }
+ outputs[noutput].usage_mask = ctx->shader_info->info.gs.output_usage_mask[i];
for (unsigned j = 0; j < 4; j++, out_idx++) {
gep_idx[2] = LLVMConstInt(ctx->ac.i32, out_idx, false);