From 540636045fc4893d19f68f04157ce246a2ccbebe Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 14 Apr 2016 10:59:16 +1000 Subject: intel/compiler: add new field for storing program size This will be used by the on disk shader cache. v2: * Set in brw_compile_* rather than brw_codegen_*. (Jason) Signed-off-by: Timothy Arceri [jordan.l.justen@intel.com: Only add to brw_stage_prog_data] Signed-off-by: Jordan Justen Reviewed-by: Jason Ekstrand --- src/intel/compiler/brw_vec4.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/compiler/brw_vec4.cpp') diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index c21d3f49c2e..7d8cdfa74a3 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -2901,6 +2901,7 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data, final_assembly_size); } + prog_data->base.base.program_size = *final_assembly_size; return assembly; } -- cgit v1.2.3