wsi/x11: Set recognizable name for WSI swapchain queue thread

This makes it easier to recognize the thread e.g. in a debugger.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8197>
This commit is contained in:
Michel Dänzer 2020-12-21 12:01:48 +01:00 committed by Michel Dänzer
parent 07c1504d1b
commit 1cce8e1101

View file

@ -38,6 +38,7 @@
#include <xf86drm.h>
#include "drm-uapi/drm_fourcc.h"
#include "util/hash_table.h"
#include "util/u_thread.h"
#include "util/xmlconfig.h"
#include "vk_util.h"
@ -1141,6 +1142,9 @@ x11_manage_fifo_queues(void *state)
VkResult result = VK_SUCCESS;
assert(chain->has_present_queue);
u_thread_setname("WSI swapchain queue");
while (chain->status >= 0) {
/* We can block here unconditionally because after an image was sent to
* the server (later on in this loop) we ensure at least one image is