From c5d3a73f5edee8511703df8b873a1f72edbefa6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Fri, 7 Mar 2025 12:17:31 +0100 Subject: [PATCH] mesa: enable GL name reuse for virgl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is now fixed upstream, the workaround is not required anymore. Signed-off-by: Corentin Noël Part-of: --- src/mesa/main/shared.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 66477183ca5..e224efdb430 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -74,18 +74,11 @@ _mesa_alloc_shared_state(struct gl_context *ctx, simple_mtx_init(&shared->Mutex, mtx_plain); - const char *process_name = util_get_process_name(); - bool is_virgl_host = strstr(process_name, "qemu-system") == process_name || - strstr(process_name, "crosvm") || - strstr(process_name, "virgl_test_server"); - - /* Enable GL name reuse for all drivers by default except virglrenderer, - * which is hopelessly broken. + /* Enable GL name reuse for all drivers by default. * * To disable it, set reuse_gl_names=0 in the environment. */ - if (!is_virgl_host) - shared->ReuseGLNames = options->reuse_gl_names != 0; + shared->ReuseGLNames = options->reuse_gl_names != 0; _mesa_InitHashTable(&shared->DisplayList, shared->ReuseGLNames); _mesa_InitHashTable(&shared->TexObjects, shared->ReuseGLNames);