diff options
author | Samuel Pitoiset <[email protected]> | 2018-08-30 10:33:37 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-08-31 17:34:41 +0200 |
commit | 7355e9326b805c5a64938bd23a8b4f042abc52c8 (patch) | |
tree | 92c3c17d33ad4c761e1e1efcc2a0b0de09c8af03 /src/amd | |
parent | e9acf069b2289d7863010aab3d5eba97fe6b09bb (diff) |
radv: remove dead code in scan_shader_output_decl()
Never used.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index b2411fe38b9..af34c548c15 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -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; } } |