mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 19:50:25 +01:00
Otherwise, the size of the EGLSurface and the drawable may get out of sync if kopper needs to re-create the swapchain at a different size. This can cause problems with things like eglSetDamageRegionKHR() where the core EGL code clamps them to the size in the EGLSurface. With Wayland, it's up to the client to choose a size and resize by creating a new EGLSurface with a different size. Only on X11 can we get a resize side-band like this. Normally, without kopper, this goes the other direction where the X11 EGL code will detect a surface size change in dri2_x11_query_surface() and it invalidates the drawable if they've changed, forcing re-allocation. Kopper, however, works more like the DRI2 path where we just get handed buffers at some size decided by X11 and have to deal with them. In the DRI2 path, the size is unconditionally updated by dri2_x11_get_buffers(). This is roughly equivalent, updating the size right after every call to kopperSwapBuffers(). Fixes: |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| c11 | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| gfxstream | ||
| glx | ||
| gtest | ||
| imagination | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| x11 | ||
| .clang-format | ||
| meson.build | ||