iris: Serialize the NIR to a blob we can use for shader cache purposes.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 06:25:40 +0000 (23:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 22:05:38 +0000 (15:05 -0700)
commitdc5dc727d5932c69aab2c7964228ca351ec5da7d
tree32bb6a7daf5e363d9c8b00bb5a36f47e12d837ff
parent4756864cdc5fee9602ab63a9fa2c4b459667a6c2
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>
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_program.c