diff options
author | Jordan Justen <[email protected]> | 2017-10-21 20:55:45 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-31 23:36:54 -0700 |
commit | 3dcbc5cdaa871f6ad2f123d0eb81f32fbfa7070b (patch) | |
tree | 6137559d5559d21079427054a04939faf46ce7ef /src/intel/compiler/brw_fs.cpp | |
parent | 540636045fc4893d19f68f04157ce246a2ccbebe (diff) |
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 <[email protected]>
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.cpp')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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); } /** |