main: Add driver cache blob fields to gl_program
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 13 Oct 2017 20:00:23 +0000 (13:00 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:53 +0000 (23:36 -0700)
commit571bee96d5456bb62fad2aaf72d9119b24650c5a
tree34ddbfb2c94b3a3c116cdaff62330f8500a91038
parent54f691311c1f56c6aed693c21e820e4dd52b7f20
main: Add driver cache blob fields to gl_program

These fields can be used to optionally save off a driver blob with the
program metadata. For example, serialized nir, or tgsi.

v3:
 * Rename serialized_nir* to driver_cache_blob*. (Tim)
 * Free memory. (Jason)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/main/mtypes.h
src/mesa/program/program.c