Shorten u_queue names
authorMarek Olšák <marek.olsak@amd.com>
Tue, 3 Jul 2018 18:49:42 +0000 (14:49 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 5 Jul 2018 02:03:35 +0000 (22:03 -0400)
There is a 15-character limit for thread names shared by the queue name
and process name. Shorten the thread name to make space for the process
name.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/mesa/main/glthread.c
src/util/disk_cache.c

index 1c647a3efd0a11cb5834430fb547e17026ec5285..28d0f77ebaa0a04c9df28883492c5518ac1290b3 100644 (file)
@@ -2566,7 +2566,7 @@ threaded_context_create(struct pipe_context *pipe,
     * from the queue before being executed, so keep one tc_batch slot for that
     * execution. Also, keep one unused slot for an unflushed batch.
     */
-   if (!util_queue_init(&tc->queue, "gallium_drv", TC_MAX_BATCHES - 2, 1, 0))
+   if (!util_queue_init(&tc->queue, "gdrv", TC_MAX_BATCHES - 2, 1, 0))
       goto fail;
 
    for (unsigned i = 0; i < TC_MAX_BATCHES; i++) {
index 86a95a0da01669d830507304dccaa74f9a2a441d..ac4f77a89641847c10bfdfda979daee0f7f2205e 100644 (file)
@@ -859,7 +859,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
        num_comp_lo_threads = MIN2(num_comp_lo_threads,
                                   ARRAY_SIZE(sscreen->compiler_lowp));
 
-       if (!util_queue_init(&sscreen->shader_compiler_queue, "si_shader",
+       if (!util_queue_init(&sscreen->shader_compiler_queue, "sh",
                             64, num_comp_hi_threads,
                             UTIL_QUEUE_INIT_RESIZE_IF_FULL)) {
                si_destroy_shader_cache(sscreen);
@@ -868,7 +868,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
        }
 
        if (!util_queue_init(&sscreen->shader_compiler_queue_low_priority,
-                            "si_shader_low",
+                            "shlo",
                             64, num_comp_lo_threads,
                             UTIL_QUEUE_INIT_RESIZE_IF_FULL |
                             UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY)) {
index d60b3640f6199852c51439b2460e429c40506369..cca6a3cc25b978c74ee621a4f1faa5ba1c03217c 100644 (file)
@@ -320,7 +320,7 @@ amdgpu_winsys_create(int fd, const struct pipe_screen_config *config,
    (void) simple_mtx_init(&ws->global_bo_list_lock, mtx_plain);
    (void) simple_mtx_init(&ws->bo_fence_lock, mtx_plain);
 
-   if (!util_queue_init(&ws->cs_queue, "amdgpu_cs", 8, 1,
+   if (!util_queue_init(&ws->cs_queue, "cs", 8, 1,
                         UTIL_QUEUE_INIT_RESIZE_IF_FULL)) {
       amdgpu_winsys_destroy(&ws->base);
       simple_mtx_unlock(&dev_tab_mutex);
index c02f596f6376cdd7f9033237fe1af753a2551404..491e8e159f496189138a956e927279c2b21044f9 100644 (file)
@@ -907,7 +907,7 @@ radeon_drm_winsys_create(int fd, const struct pipe_screen_config *config,
     ws->info.gart_page_size = sysconf(_SC_PAGESIZE);
 
     if (ws->num_cpus > 1 && debug_get_option_thread())
-        util_queue_init(&ws->cs_queue, "radeon_cs", 8, 1, 0);
+        util_queue_init(&ws->cs_queue, "rcs", 8, 1, 0);
 
     /* Create the screen at the end. The winsys must be initialized
      * completely.
index c71c03778aa76fbf0108cb3d34f46a18db35fdd3..18a83bb9be47c41fdb945f2ae60da4bd2525c92e 100644 (file)
@@ -73,7 +73,7 @@ _mesa_glthread_init(struct gl_context *ctx)
    if (!glthread)
       return;
 
-   if (!util_queue_init(&glthread->queue, "glthread", MARSHAL_MAX_BATCHES - 2,
+   if (!util_queue_init(&glthread->queue, "gl", MARSHAL_MAX_BATCHES - 2,
                         1, 0)) {
       free(glthread);
       return;
index 4a762eff20ec385fcc1a8df9fd5aa4c3196db8d9..87ddfb86b270f623cf24dc6021dfdffddd359d5a 100644 (file)
@@ -376,7 +376,7 @@ disk_cache_create(const char *gpu_name, const char *timestamp,
     * The queue will resize automatically when it's full, so adding new jobs
     * doesn't stall.
     */
-   util_queue_init(&cache->cache_queue, "disk_cache", 32, 1,
+   util_queue_init(&cache->cache_queue, "disk$", 32, 1,
                    UTIL_QUEUE_INIT_RESIZE_IF_FULL |
                    UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY);