diff options
author | Kenneth Graunke <[email protected]> | 2018-02-26 16:34:55 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-03-02 14:20:22 -0800 |
commit | 9fa95359df54f8de8219731e55d89abe816a43e8 (patch) | |
tree | 674ed3dfef5cd381adefc81636aa2a805f291b2c /src/intel/compiler/brw_vec4_gs_visitor.cpp | |
parent | b04cf529f2e7bab6be22410d4be293aa5e650b03 (diff) |
intel: Drop program size pointer from vec4/fs assembly getters.
These days, we're just passing a pointer to a prog_data field, which
we already have access to. We can just use it directly.
(In the past, it was a pointer to a separate value.)
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_vec4_gs_visitor.cpp')
-rw-r--r-- | src/intel/compiler/brw_vec4_gs_visitor.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp b/src/intel/compiler/brw_vec4_gs_visitor.cpp index 7848832e412..fb4c1259948 100644 --- a/src/intel/compiler/brw_vec4_gs_visitor.cpp +++ b/src/intel/compiler/brw_vec4_gs_visitor.cpp @@ -867,7 +867,7 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data, g.enable_debug(name); } g.generate_code(v.cfg, 8); - return g.get_assembly(&prog_data->base.base.program_size); + return g.get_assembly(); } } @@ -897,9 +897,7 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data, /* Success! Backup is not needed */ ralloc_free(param); return brw_vec4_generate_assembly(compiler, log_data, mem_ctx, - shader, &prog_data->base, v.cfg, - &prog_data->base.base. - program_size); + shader, &prog_data->base, v.cfg); } else { /* These variables could be modified by the execution of the GS * visitor if it packed the uniforms in the push constant buffer. @@ -962,8 +960,7 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data, *error_str = ralloc_strdup(mem_ctx, gs->fail_msg); } else { ret = brw_vec4_generate_assembly(compiler, log_data, mem_ctx, shader, - &prog_data->base, gs->cfg, - &prog_data->base.base.program_size); + &prog_data->base, gs->cfg); } delete gs; |