diff options
author | Jordan Justen <[email protected]> | 2017-10-13 13:00:23 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-31 23:36:53 -0700 |
commit | 571bee96d5456bb62fad2aaf72d9119b24650c5a (patch) | |
tree | 34ddbfb2c94b3a3c116cdaff62330f8500a91038 /src/mesa/program | |
parent | 54f691311c1f56c6aed693c21e820e4dd52b7f20 (diff) |
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 <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 0defa012aee..faf5b7fa28a 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -279,6 +279,10 @@ _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog) ralloc_free(prog->sh.BindlessImages); } + if (prog->driver_cache_blob) { + ralloc_free(prog->driver_cache_blob); + } + ralloc_free(prog); } |