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:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user