mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
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:
parent
07c1504d1b
commit
1cce8e1101
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue