st/mesa: Skip serializing driver_cache_blob if it exists

Previously the mesa core code would not call to serialize the
driver_cache_blob if it existed. We will update it to always call to
serialize the driver_cache_blob meaning we should avoid re-serializing
it under mesa/state_tracker.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Jordan Justen 2018-04-19 16:14:28 -07:00
parent 2a55553be3
commit c510dd22a9
No known key found for this signature in database
GPG key ID: 37F99F68CAF992EB

View file

@ -74,6 +74,9 @@ static void
st_serialise_ir_program(struct gl_context *ctx, struct gl_program *prog,
bool nir)
{
if (prog->driver_cache_blob)
return;
struct blob blob;
blob_init(&blob);