первая публикация
This commit is contained in:
24
media-libs/mesa/files/clang_resource_dir.patch
Normal file
24
media-libs/mesa/files/clang_resource_dir.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19232#note_1776640
|
||||
https://gitlab.freedesktop.org/mesa/mesa/-/issues/7717#note_1832122
|
||||
|
||||
diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp
|
||||
index 80bc84831e4..34d156bf227 100644
|
||||
--- a/src/compiler/clc/clc_helpers.cpp
|
||||
+++ b/src/compiler/clc/clc_helpers.cpp
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <llvm-c/Target.h>
|
||||
#include <LLVMSPIRVLib/LLVMSPIRVLib.h>
|
||||
|
||||
+#include <clang/Config/config.h>
|
||||
#include <clang/Driver/Driver.h>
|
||||
#include <clang/CodeGen/CodeGenAction.h>
|
||||
#include <clang/Lex/PreprocessorOptions.h>
|
||||
@@ -866,7 +867,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
||||
// because we might have linked clang statically.
|
||||
auto libclang_path = fs::path(LLVM_LIB_DIR) / "libclang.so";
|
||||
auto clang_res_path =
|
||||
- fs::path(clang::driver::Driver::GetResourcesPath(libclang_path.string())) / "include";
|
||||
+ fs::path(clang::driver::Driver::GetResourcesPath(libclang_path.string(), CLANG_RESOURCE_DIR)) / "include";
|
||||
|
||||
c->getHeaderSearchOpts().UseBuiltinIncludes = true;
|
||||
c->getHeaderSearchOpts().UseStandardSystemIncludes = true;
|
||||
@@ -0,0 +1,49 @@
|
||||
https://bugs.gentoo.org/904072
|
||||
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21647
|
||||
|
||||
From 689ce66a4332524b4eb98877de6f75d05dd05c60 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||
Date: Thu, 2 Mar 2023 10:10:42 +0200
|
||||
Subject: [PATCH] vulkan/wsi/wayland: Fix destruction of event queue with
|
||||
proxies still attached.
|
||||
|
||||
Destroy the surface dmabuf feedback proxy before destroying the event
|
||||
queue that the proxy is attached to.
|
||||
|
||||
This silences a warning that libwayland 1.22 emits for programs that use
|
||||
Vulkan/Wayland:
|
||||
|
||||
warning: queue 0x557a4efbcf70 destroyed while proxies still attached:
|
||||
zwp_linux_dmabuf_feedback_v1@18 still attached
|
||||
|
||||
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21647>
|
||||
--- a/src/vulkan/wsi/wsi_common_wayland.c
|
||||
+++ b/src/vulkan/wsi/wsi_common_wayland.c
|
||||
@@ -1157,18 +1157,18 @@ wsi_wl_surface_destroy(VkIcdSurfaceBase *icd_surface, VkInstance _instance,
|
||||
struct wsi_wl_surface *wsi_wl_surface =
|
||||
wl_container_of((VkIcdSurfaceWayland *)icd_surface, wsi_wl_surface, base);
|
||||
|
||||
- if (wsi_wl_surface->surface)
|
||||
- wl_proxy_wrapper_destroy(wsi_wl_surface->surface);
|
||||
-
|
||||
- if (wsi_wl_surface->display)
|
||||
- wsi_wl_display_destroy(wsi_wl_surface->display);
|
||||
-
|
||||
if (wsi_wl_surface->wl_dmabuf_feedback) {
|
||||
zwp_linux_dmabuf_feedback_v1_destroy(wsi_wl_surface->wl_dmabuf_feedback);
|
||||
dmabuf_feedback_fini(&wsi_wl_surface->dmabuf_feedback);
|
||||
dmabuf_feedback_fini(&wsi_wl_surface->pending_dmabuf_feedback);
|
||||
}
|
||||
|
||||
+ if (wsi_wl_surface->surface)
|
||||
+ wl_proxy_wrapper_destroy(wsi_wl_surface->surface);
|
||||
+
|
||||
+ if (wsi_wl_surface->display)
|
||||
+ wsi_wl_display_destroy(wsi_wl_surface->display);
|
||||
+
|
||||
vk_free2(&instance->alloc, pAllocator, wsi_wl_surface);
|
||||
}
|
||||
|
||||
--
|
||||
GitLab
|
||||
@@ -0,0 +1,37 @@
|
||||
https://bugs.gentoo.org/904072
|
||||
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646
|
||||
|
||||
From ee5d2250fd159689aae3f7d632a6226971bea85c Mon Sep 17 00:00:00 2001
|
||||
From: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||
Date: Thu, 2 Mar 2023 09:35:08 +0200
|
||||
Subject: [PATCH] egl/wayland: Fix destruction of event queue with proxies
|
||||
still attached.
|
||||
|
||||
Destroy the display wrapper proxy before destroying the event queue that
|
||||
the proxy is attached to.
|
||||
|
||||
This silences a warning that libwayland 1.22 emits for programs that use
|
||||
EGL/Wayland:
|
||||
|
||||
warning: queue 0x562a5ed2cd20 destroyed while proxies still attached:
|
||||
wl_display@1 still attached
|
||||
|
||||
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646>
|
||||
--- a/src/egl/drivers/dri2/platform_wayland.c
|
||||
+++ b/src/egl/drivers/dri2/platform_wayland.c
|
||||
@@ -2865,10 +2865,10 @@ dri2_teardown_wayland(struct dri2_egl_display *dri2_dpy)
|
||||
wl_shm_destroy(dri2_dpy->wl_shm);
|
||||
if (dri2_dpy->wl_registry)
|
||||
wl_registry_destroy(dri2_dpy->wl_registry);
|
||||
- if (dri2_dpy->wl_queue)
|
||||
- wl_event_queue_destroy(dri2_dpy->wl_queue);
|
||||
if (dri2_dpy->wl_dpy_wrapper)
|
||||
wl_proxy_wrapper_destroy(dri2_dpy->wl_dpy_wrapper);
|
||||
+ if (dri2_dpy->wl_queue)
|
||||
+ wl_event_queue_destroy(dri2_dpy->wl_queue);
|
||||
|
||||
if (dri2_dpy->own_device)
|
||||
wl_display_disconnect(dri2_dpy->wl_dpy);
|
||||
--
|
||||
GitLab
|
||||
@@ -0,0 +1,30 @@
|
||||
From 28efca603bf11f361eb741d23ef181a3b6905f74 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Turner <mattst88@gmail.com>
|
||||
Date: Thu, 11 May 2023 13:51:25 -0400
|
||||
Subject: [PATCH] intel: Disable shader cache when executing intel_clc during
|
||||
the build
|
||||
|
||||
With the shader cache enabled, intel_clc attempts to write to ~/.cache.
|
||||
Many distributions' build systems limit file-system access, and will
|
||||
kill the process thus causing the build to fail.
|
||||
|
||||
Fixes: 639665053fa ("anv/grl: Build OpenCL kernels")
|
||||
---
|
||||
src/intel/vulkan/grl/meson.build | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/intel/vulkan/grl/meson.build b/src/intel/vulkan/grl/meson.build
|
||||
index 3d7567cfc13..c0056b3493d 100644
|
||||
--- a/src/intel/vulkan/grl/meson.build
|
||||
+++ b/src/intel/vulkan/grl/meson.build
|
||||
@@ -142,6 +142,7 @@ foreach t : [['125', 'gfx125', 'dg2']]
|
||||
# without modifying grl source code, remove
|
||||
# if fixed there
|
||||
],
|
||||
+ env: ['MESA_SHADER_CACHE_DISABLE=true'],
|
||||
depends : [prog_intel_clc]
|
||||
)
|
||||
endforeach
|
||||
--
|
||||
2.39.3
|
||||
|
||||
Reference in New Issue
Block a user