Skip to content

Revert "gbm: mark surface buffers as explicit flushed"

Marek Olšák requested to merge mareko/mesa:revert-gbm-explicit-flush into main
Revert "gbm: mark surface buffers as explicit flushed"

This reverts commit c49a71c03c9166b0814db92420eadac74cbc4b11.

It broke radeonsi.

GBM can't set __DRI_IMAGE_USE_BACKBUFFER if gbm itself doesn't use it as
a back buffer by rendering to it and calling SwapBuffers. If another
library uses it as a back buffer, that library should set
__DRI_IMAGE_USE_BACKBUFFER, not GBM. A different flag could be added
to indicate the behavior that the original commit expected.

Fixes: c49a71c03c9166 - gbm: mark surface buffers as explicit flushed
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11996

Merge request reports

Loading