radv: remove dead code in scan_shader_output_decl()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 30 Aug 2018 08:33:37 +0000 (10:33 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 31 Aug 2018 15:34:41 +0000 (17:34 +0200)
Never used.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_nir_to_llvm.c

index b2411fe38b93d89cee6df22e87b0590c26f926dd..af34c548c1595e3bee628b39a5121e5942a17261 100644 (file)
@@ -2241,8 +2241,6 @@ scan_shader_output_decl(struct radv_shader_context *ctx,
            stage == MESA_SHADER_TESS_EVAL ||
            stage == MESA_SHADER_GEOMETRY) {
                if (idx == VARYING_SLOT_CLIP_DIST0) {
-                       int length = shader->info.clip_distance_array_size +
-                                    shader->info.cull_distance_array_size;
                        if (stage == MESA_SHADER_VERTEX) {
                                ctx->shader_info->vs.outinfo.clip_dist_mask = (1 << shader->info.clip_distance_array_size) - 1;
                                ctx->shader_info->vs.outinfo.cull_dist_mask = (1 << shader->info.cull_distance_array_size) - 1;
@@ -2254,10 +2252,6 @@ scan_shader_output_decl(struct radv_shader_context *ctx,
                                ctx->shader_info->tes.outinfo.cull_dist_mask <<= shader->info.clip_distance_array_size;
                        }
 
-                       if (length > 4)
-                               attrib_count = 2;
-                       else
-                               attrib_count = 1;
                        mask_attribs = 1ull << idx;
                }
        }