radv: don't send num_tcs_input_cp to sgprs.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Feb 2018 04:59:53 +0000 (04:59 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Feb 2018 00:01:36 +0000 (00:01 +0000)
We never use it in the shaders.

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

index a2dec0e3bdda91dbcc02ae9f1e9428abfe797ba0..9990a3e863c7df286400253ed0b5af2c47704330 100644 (file)
@@ -68,7 +68,6 @@ struct radv_tessellation_state {
        uint32_t offchip_layout;
        unsigned num_patches;
        unsigned lds_size;
-       unsigned num_tcs_input_cp;
        uint32_t tf_param;
 };
 
@@ -1397,7 +1396,6 @@ calculate_tess_state(struct radv_pipeline *pipeline,
                S_028B58_HS_NUM_INPUT_CP(num_tcs_input_cp) |
                S_028B58_HS_NUM_OUTPUT_CP(num_tcs_output_cp);
        tess.num_patches = num_patches;
-       tess.num_tcs_input_cp = num_tcs_input_cp;
 
        struct radv_shader_variant *tes = radv_get_tess_eval_shader(pipeline);
        unsigned type = 0, partitioning = 0, topology = 0, distribution_mode = 0;
@@ -2621,8 +2619,7 @@ radv_pipeline_generate_tess_shaders(struct radeon_winsys_cs *cs,
                radeon_set_sh_reg_seq(cs, base_reg + loc->sgpr_idx * 4, 4);
                radeon_emit(cs, tess->offchip_layout);
                radeon_emit(cs, tess->tcs_out_offsets);
-               radeon_emit(cs, tess->tcs_out_layout |
-                           tess->num_tcs_input_cp << 26);
+               radeon_emit(cs, tess->tcs_out_layout);
                radeon_emit(cs, tess->tcs_in_layout);
        }