mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 16:28:04 +02:00
i965: Free serialized nir after deserializing
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
cdc7ac23b9
commit
b3f1b765e9
1 changed files with 6 additions and 0 deletions
|
|
@ -800,4 +800,10 @@ brw_program_deserialize_nir(struct gl_context *ctx, struct gl_program *prog,
|
|||
prog->driver_cache_blob_size);
|
||||
prog->nir = nir_deserialize(NULL, options, &reader);
|
||||
}
|
||||
|
||||
if (prog->driver_cache_blob) {
|
||||
ralloc_free(prog->driver_cache_blob);
|
||||
prog->driver_cache_blob = NULL;
|
||||
prog->driver_cache_blob_size = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue