mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 22:10:21 +01:00
iris: Don't replace backing storage for exported buffers.
We already gave out the old BO...or acquired it from somewhere which may be affecting it. We simply can't replace the backing store. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19209>
This commit is contained in:
parent
6954a8ddbe
commit
f112add554
1 changed files with 4 additions and 0 deletions
|
|
@ -1943,6 +1943,10 @@ iris_invalidate_resource(struct pipe_context *ctx,
|
|||
if (res->bo->gem_handle && res->bo->real.userptr)
|
||||
return;
|
||||
|
||||
/* Nor can we allocate buffers we imported or exported. */
|
||||
if (iris_bo_is_external(res->bo))
|
||||
return;
|
||||
|
||||
struct iris_bo *old_bo = res->bo;
|
||||
struct iris_bo *new_bo =
|
||||
iris_bo_alloc(screen->bufmgr, res->bo->name, resource->width0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue