This reverts commitc49a71c03c. 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:c49a71c03c- gbm: mark surface buffers as explicit flushed Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11996 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32345>