summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_vec4.cpp
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2016-04-14 10:59:16 +1000
committerJordan Justen <[email protected]>2017-10-31 23:36:54 -0700
commit540636045fc4893d19f68f04157ce246a2ccbebe (patch)
tree5c4f459022e2d24bd2f98dfcb2125c5d3dde44d7 /src/intel/compiler/brw_vec4.cpp
parent1edf0fe612d595bf1eee711b60db17eb25759f82 (diff)
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 <[email protected]> [[email protected]: Only add to brw_stage_prog_data] Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_vec4.cpp')
-rw-r--r--src/intel/compiler/brw_vec4.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}