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 <timothy.arceri@collabora.com>
[jordan.l.justen@intel.com: Only add to brw_stage_prog_data]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Carl Worth
2016-04-14 10:59:16 +10:00
committed by Jordan Justen
parent 1edf0fe612
commit 540636045f
6 changed files with 35 additions and 14 deletions

View File

@@ -587,6 +587,8 @@ struct brw_stage_prog_data {
unsigned total_scratch;
unsigned total_shared;
unsigned program_size;
/**
* Register where the thread expects to find input data from the URB
* (typically uniforms, followed by vertex or fragment attributes).