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/mesa/drivers/dri/i965/brw_wm.c | |
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/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index 2105d1a8f1e..4144cd11ee4 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -141,7 +141,6 @@ brw_codegen_wm_prog(struct brw_context *brw, void *mem_ctx = ralloc_context(NULL); struct brw_wm_prog_data prog_data; const GLuint *program; - GLuint program_size; bool start_busy = false; double start_time = 0; @@ -185,7 +184,7 @@ brw_codegen_wm_prog(struct brw_context *brw, key, &prog_data, fp->program.nir, &fp->program, st_index8, st_index16, true, false, vue_map, - &program_size, &error_str); + &error_str); if (program == NULL) { if (!fp->program.is_arb_asm) { @@ -222,7 +221,7 @@ brw_codegen_wm_prog(struct brw_context *brw, ralloc_steal(NULL, prog_data.base.pull_param); brw_upload_cache(&brw->cache, BRW_CACHE_FS_PROG, key, sizeof(struct brw_wm_prog_key), - program, program_size, + program, prog_data.base.program_size, &prog_data, sizeof(prog_data), &brw->wm.base.prog_offset, &brw->wm.base.prog_data); |