Commit fe7e70d7 authored by Icecream95's avatar Icecream95
Browse files

panfrost: Assert staging resource allocation was successful

parent 75d8998f
......@@ -824,6 +824,7 @@ panfrost_ptr_map(struct pipe_context *pctx,
/* We don't have s/w routines for AFBC, so use a staging texture */
if (drm_is_afbc(rsrc->image.layout.modifier)) {
struct panfrost_resource *staging = pan_alloc_staging(ctx, rsrc, level, box);
assert(staging);
/* Staging resources have one LOD: level 0. Query the strides
* on this LOD.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment