mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
panfrost: Assert staging resource allocation was successful
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10266>
This commit is contained in:
parent
fc9b3b260e
commit
716ce3cc1a
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue