Module: Mesa Branch: master Commit: 80aa6e9d325b4784b7391cf24f1b0c291514f37b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=80aa6e9d325b4784b7391cf24f1b0c291514f37b
Author: Jason Ekstrand <[email protected]> Date: Thu May 4 14:50:20 2017 -0700 intel/compiler/vs: Move inputs_read handling to generic code Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> --- src/intel/compiler/brw_vec4.cpp | 3 +++ src/intel/vulkan/anv_pipeline.c | 3 --- src/mesa/drivers/dri/i965/brw_vs.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index 7b17c64275..a673dd6820 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -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 = diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 5b69d1b9e0..c43915e4c0 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -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, diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index b823a4dd5c..33f2ac19cb 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
