-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmesa.patch
90 lines (86 loc) · 3.19 KB
/
mesa.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
diff --git meson.build meson.build
index 597a32e..5fd5a25 100644
--- meson.build
+++ meson.build
@@ -598,7 +598,7 @@ if with_dri
endif
dep_dxheaders = null_dep
-if with_gallium_d3d12 or with_microsoft_clc or with_microsoft_vk or with_gfxstream_vk and host_machine.system() == 'windows'
+if true
dep_dxheaders = dependency('directx-headers', required : false)
if not dep_dxheaders.found()
dep_dxheaders = dependency('DirectX-Headers',
@@ -946,9 +946,6 @@ except:
import mako
assert Version(mako.__version__) >= Version("0.8.0")
''', check: false)
-if has_mako.returncode() != 0
- error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
-endif
has_yaml = run_command(
prog_python, '-c',
@@ -1096,7 +1093,6 @@ if cc.get_argument_syntax() == 'msvc'
'/wd5105', # macro expansion producing 'defined' has undefined behavior (winbase.h, need Windows SDK upgrade)
'/we4020', # Error when passing the wrong number of parameters
'/we4024', # Error when passing different type of parameter
- '/we4189', # 'identifier' : local variable is initialized but not referenced
'/Zc:__cplusplus', #Set __cplusplus macro to match the /std:c++<version> on the command line
]
c_args += cc.get_supported_arguments(_trial)
diff --git src/gallium/drivers/llvmpipe/lp_tex_sample.h src/gallium/drivers/llvmpipe/lp_tex_sample.h
index 9e8baa0..e04f98a 100644
--- src/gallium/drivers/llvmpipe/lp_tex_sample.h
+++ src/gallium/drivers/llvmpipe/lp_tex_sample.h
@@ -36,7 +36,7 @@ struct lp_sampler_static_state;
/**
* Whether texture cache is used for s3tc textures.
*/
-#define LP_USE_TEXTURE_CACHE 0
+#define LP_USE_TEXTURE_CACHE 1
struct lp_build_sampler_soa *
lp_llvm_sampler_soa_create(const struct lp_sampler_static_state *static_state,
diff --git src/gallium/targets/libgl-gdi/meson.build src/gallium/targets/libgl-gdi/meson.build
index 7e1b87b..92f786a 100644
--- src/gallium/targets/libgl-gdi/meson.build
+++ src/gallium/targets/libgl-gdi/meson.build
@@ -36,8 +36,9 @@ libopengl32 = shared_library(
inc_include, inc_wgl, inc_src, inc_gallium,
],
link_with : [
- libgallium_wgl, libglapi_bridge, libglapi
+ libgallium_wgl, libglapi_bridge, libglapi, libvulkan_util
],
+ link_whole : [ libgallium_wgl ],
dependencies : [
idep_mesautil
],
diff --git src/gallium/targets/wgl/meson.build src/gallium/targets/wgl/meson.build
index 2999ee5..8b92387 100644
--- src/gallium/targets/wgl/meson.build
+++ src/gallium/targets/wgl/meson.build
@@ -29,10 +29,9 @@ wgl_def = custom_target(
)
gallium_wgl_name = get_option('gallium-wgl-dll-name')
-libgallium_wgl = shared_library(
+libgallium_wgl = static_library(
gallium_wgl_name,
['wgl.c'],
- vs_module_defs : wgl_def,
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_wgl, inc_gallium_winsys, inc_gallium_winsys_sw, inc_gallium_drivers,
],
diff --git src/meson.build src/meson.build
index ebfcf94..ce9855d 100644
--- src/meson.build
+++ src/meson.build
@@ -73,9 +73,7 @@ endif
if with_platform_wayland
subdir('egl/wayland/wayland-drm')
endif
-if with_any_vk or with_gallium_zink
- subdir('vulkan')
-endif
+subdir('vulkan')
if with_any_intel
subdir('intel')
endif