Skip to content
Snippets Groups Projects
Commit 03e97e94 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Marge Bot
Browse files

i965/bufmgr: fix invalid assertion


The idea behind this assert is that if a buffer is in
bufmgr->handle_table it's because it has been shared from i965 to the
outside. This is when we add the drm FD associated to this BO to
bo->exports.

But we also import buffer from the outside into i965 and those buffers
don't have an associated drm FD added to bo->exports.

If you import the same buffer more than once, you'll run into this
assert.

v2: Also drop assert from brw_bo_gem_create_from_name() (Ian)

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 57e4d0aa ("i965: fix export of GEM handles")
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Part-of: <!10386>
parent eb6d9901
No related branches found
No related tags found
1 merge request!10386i965/bufmgr: fix invalid assertion
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment