iris: Serialize the NIR to a blob we can use for shader cache purposes.

We will use a hash of the serialized NIR together with brw_prog_*_key
(for NOS) as the disk cache key, where the disk cache contains actual
assembly shaders.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Kenneth Graunke
2019-05-20 23:25:40 -07:00
parent 4756864cdc
commit dc5dc727d5
2 changed files with 25 additions and 0 deletions

View File

@@ -260,6 +260,10 @@ struct iris_uncompiled_shader {
struct pipe_stream_output_info stream_output;
/* The serialized NIR (for the disk cache) and size in bytes. */
void *ir_cache_binary;
uint32_t ir_cache_binary_size;
unsigned program_id;
/** Bitfield of (1 << IRIS_NOS_*) flags. */