intel/compiler/vs: Move inputs_read handling to generic code
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 4 May 2017 21:50:20 +0000 (14:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 May 2017 22:08:03 +0000 (15:08 -0700)
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_vec4.cpp
src/intel/vulkan/anv_pipeline.c
src/mesa/drivers/dri/i965/brw_vs.c

index 7b17c6427523226b22d7c2855b331de60636964c..a673dd6820b67cb9f2ce1f71f0b2b3403f1be890 100644 (file)
@@ -2789,6 +2789,9 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
       prog_data->inputs_read |= VERT_BIT_EDGEFLAG;
    }
 
+   prog_data->inputs_read = shader->info.inputs_read;
+   prog_data->double_inputs_read = shader->info.double_inputs_read;
+
    prog_data->base.clip_distance_mask =
       ((1 << shader->info.clip_distance_array_size) - 1);
    prog_data->base.cull_distance_mask =
index 5b69d1b9e08db5003ea20acd135d23e8a89c63cf..c43915e4c08ea40f3702982ab47af94e4a5b8096 100644 (file)
@@ -525,9 +525,6 @@ anv_pipeline_compile_vs(struct anv_pipeline *pipeline,
 
       ralloc_steal(mem_ctx, nir);
 
-      prog_data.inputs_read = nir->info.inputs_read;
-      prog_data.double_inputs_read = nir->info.double_inputs_read;
-
       brw_compute_vue_map(&pipeline->device->info,
                           &prog_data.base.vue_map,
                           nir->info.outputs_written,
index b823a4dd5c68187c7966f7451cbf6055d469b6f6..33f2ac19cbcddf8fd5add8345e2b64834f990e55 100644 (file)
@@ -210,8 +210,6 @@ brw_codegen_vs_prog(struct brw_context *brw,
 
    uint64_t outputs_written =
       brw_vs_outputs_written(brw, key, vp->program.info.outputs_written);
-   prog_data.inputs_read = vp->program.info.inputs_read;
-   prog_data.double_inputs_read = vp->program.info.double_inputs_read;
 
    brw_compute_vue_map(devinfo,
                        &prog_data.base.vue_map, outputs_written,