Skip to content

platforms/drm: release gbm buffers before eglDestroySurface

Xaver Hugl requested to merge work/release-gbm into master

Mesa destroys the underlying buffers when you call eglDestroySurface, when we then release the buffers to the gbm surface afterwards it tries to access the freed buffers. It seems easy to fix, I'll make a MR for it.

@apol while I can't reproduce the crash for some reason, this should fix it. It's something from the old code that was just there without explanation why it was necessary and thus got removed... Let's add it back in again, at least until it's fixed in Mesa.

BUG: 436500

Merge request reports

Loading