radv: do not fill keys from fragment shader twice
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 3 Jan 2020 10:12:36 +0000 (11:12 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 8 Jan 2020 07:59:04 +0000 (08:59 +0100)
radv_fill_shader_info() already does that.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c

index 4c20864f1d4383d4d1dfe9e911a8297251299034..42ce75c2a4e7278ff411f2123d9819fcd02fb2cf 100644 (file)
@@ -2836,20 +2836,6 @@ void radv_create_shaders(struct radv_pipeline *pipeline,
 
                        radv_stop_feedback(stage_feedbacks[MESA_SHADER_FRAGMENT], false);
                }
-
-               /* TODO: These are no longer used as keys we should refactor this */
-               keys[MESA_SHADER_VERTEX].vs_common_out.export_prim_id =
-                       pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.prim_id_input;
-               keys[MESA_SHADER_VERTEX].vs_common_out.export_layer_id =
-                       pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.layer_input;
-               keys[MESA_SHADER_VERTEX].vs_common_out.export_clip_dists =
-                       !!pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.num_input_clips_culls;
-               keys[MESA_SHADER_TESS_EVAL].vs_common_out.export_prim_id =
-                       pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.prim_id_input;
-               keys[MESA_SHADER_TESS_EVAL].vs_common_out.export_layer_id =
-                       pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.layer_input;
-               keys[MESA_SHADER_TESS_EVAL].vs_common_out.export_clip_dists =
-                       !!pipeline->shaders[MESA_SHADER_FRAGMENT]->info.ps.num_input_clips_culls;
        }
 
        if (device->physical_device->rad_info.chip_class >= GFX9 && modules[MESA_SHADER_TESS_CTRL]) {