mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
gbm/dri: Remove erroneous assert
The user is allowed to pass a list of modifiers including DRM_FORMAT_MOD_INVALID, meaning that the user is OK with implicit modifiers. Since merging the DRI interfaces, this assert that we are never returning an implicit modifier is unnecessary and also wrong. It was originally added to be super-safe, but we now know that our drivers work very well with modifiers, so don't need it. Signed-off-by: Daniel Stone <daniels@collabora.com> Fixes:0b16d7ebb9("dri: Allow INVALID for modifier-less drivers") Closes: mesa/mesa#11591 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30464> (cherry picked from commitcd961a7e3f)
This commit is contained in:
parent
fbfcf52c4d
commit
c61862e7af
2 changed files with 1 additions and 4 deletions
|
|
@ -814,7 +814,7 @@
|
|||
"description": "gbm/dri: Remove erroneous assert",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "0b16d7ebb92e05a5bcdaf70626e0d916551015e1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1055,9 +1055,6 @@ gbm_dri_bo_create(struct gbm_device *gbm,
|
|||
free(mods_filtered);
|
||||
mods_filtered = NULL;
|
||||
|
||||
if (modifiers)
|
||||
assert(gbm_dri_bo_get_modifier(&bo->base) != DRM_FORMAT_MOD_INVALID);
|
||||
|
||||
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE,
|
||||
&bo->base.v0.handle.s32);
|
||||
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue