From 3dcbc5cdaa871f6ad2f123d0eb81f32fbfa7070b Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 21 Oct 2017 20:55:45 -0700 Subject: intel/compiler: Remove final_program_size from brw_compile_* The caller can now use brw_stage_prog_data::program_size which is set by the brw_compile_* functions. Cc: Jason Ekstrand Signed-off-by: Jordan Justen Reviewed-by: Jason Ekstrand --- src/intel/compiler/brw_fs.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/intel/compiler/brw_fs.cpp') diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index d355675b2b8..814da8ad94d 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -6542,7 +6542,6 @@ brw_compile_fs(const struct brw_compiler *compiler, void *log_data, int shader_time_index8, int shader_time_index16, bool allow_spilling, bool use_rep_send, struct brw_vue_map *vue_map, - unsigned *final_assembly_size, char **error_str) { const struct gen_device_info *devinfo = compiler->devinfo; @@ -6691,9 +6690,7 @@ brw_compile_fs(const struct brw_compiler *compiler, void *log_data, prog_data->reg_blocks_0 = brw_register_blocks(simd16_grf_used); } - const unsigned *assembly = g.get_assembly(final_assembly_size); - prog_data->base.program_size = *final_assembly_size; - return assembly; + return g.get_assembly(&prog_data->base.program_size); } fs_reg * @@ -6780,7 +6777,6 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, struct brw_cs_prog_data *prog_data, const nir_shader *src_shader, int shader_time_index, - unsigned *final_assembly_size, char **error_str) { nir_shader *shader = nir_shader_clone(mem_ctx, src_shader); @@ -6892,9 +6888,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, g.generate_code(cfg, prog_data->simd_size); - const unsigned *assembly = g.get_assembly(final_assembly_size); - prog_data->base.program_size = *final_assembly_size; - return assembly; + return g.get_assembly(&prog_data->base.program_size); } /** -- cgit v1.2.3