v3dv/pipeline_cache: fix assert
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Fixes: e354c5280
('3dv/pipeline: try to get the shader variant directly from the cache')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9824>
This commit is contained in:

committed by
Marge Bot

parent
e87ff43fb3
commit
bb201733ac
@@ -857,7 +857,7 @@ v3dv_pipeline_shared_data_write_to_blob(const struct v3dv_pipeline_shared_data *
|
||||
blob_write_uint32(blob, total_assembly_size);
|
||||
|
||||
assert(cache_entry->assembly_bo->map);
|
||||
assert(cache_entry->assembly_bo->size > total_assembly_size);
|
||||
assert(cache_entry->assembly_bo->size >= total_assembly_size);
|
||||
blob_write_bytes(blob, cache_entry->assembly_bo->map, total_assembly_size);
|
||||
|
||||
return !blob->out_of_memory;
|
||||
|
Reference in New Issue
Block a user