mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 21:00:16 +01:00
Hopefully this doesn't break anything. There are a lot of places that invalidate drawables, but no place attempted to call the context directly like this. A few places don't even have the context. Explanation: The DRI frontend uses a global atomic counter per drawable that is incremented when that drawable changed buffers. st_manager_validate_framebuffers checks for that atomic counter and updates the framebuffer state if there is any change. This was called at every state update, so likely before almost every draw (!!!). This commit changes that. Everything is the same except that the change of buffers will not be noticed until the beginning of the next frame or when the framebuffer state update is triggered by something else. The effect is that we don't waste time calling st_manager_validate_framebuffers a million times per frame. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19775> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| c11 | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| hgl | ||
| imagination | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| meson.build | ||