| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.37 2015/09/13 01:20:05 tnn Exp $ | | 1 | # $NetBSD: options.mk,v 1.38 2015/09/13 12:32:14 bouyer Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib |
4 | PKG_SUPPORTED_OPTIONS= llvm dri | | 4 | PKG_SUPPORTED_OPTIONS= llvm dri |
5 | PKG_SUGGESTED_OPTIONS= | | 5 | PKG_SUGGESTED_OPTIONS= |
6 | | | 6 | |
7 | # The LLVM option enables JIT accelerated software rendering and | | 7 | # The LLVM option enables JIT accelerated software rendering and |
8 | # is also required to support the latest RADEON GPUs, so enable it | | 8 | # is also required to support the latest RADEON GPUs, so enable it |
9 | # by default on platforms where such GPUs might be encountered. | | 9 | # by default on platforms where such GPUs might be encountered. |
10 | .if \ | | 10 | .if \ |
11 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \ | | 11 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \ |
12 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-x86_64) || \ | | 12 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-x86_64) || \ |
13 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-sparc64) || \ | | 13 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-sparc64) || \ |
14 | !empty(MACHINE_PLATFORM:MLinux-*-i386) || \ | | 14 | !empty(MACHINE_PLATFORM:MLinux-*-i386) || \ |
| @@ -82,51 +82,55 @@ GALLIUM_DRIVERS+= svga | | | @@ -82,51 +82,55 @@ GALLIUM_DRIVERS+= svga |
82 | PLIST.i915= yes | | 82 | PLIST.i915= yes |
83 | GALLIUM_DRIVERS+= i915 | | 83 | GALLIUM_DRIVERS+= i915 |
84 | PLIST.i915_dri= yes | | 84 | PLIST.i915_dri= yes |
85 | DRI_DRIVERS+= i915 | | 85 | DRI_DRIVERS+= i915 |
86 | | | 86 | |
87 | # Experimental Intel driver | | 87 | # Experimental Intel driver |
88 | PLIST.ilo= yes | | 88 | PLIST.ilo= yes |
89 | GALLIUM_DRIVERS+= ilo | | 89 | GALLIUM_DRIVERS+= ilo |
90 | | | 90 | |
91 | PLIST.i965_dri= yes | | 91 | PLIST.i965_dri= yes |
92 | DRI_DRIVERS+= i965 | | 92 | DRI_DRIVERS+= i965 |
93 | .endif | | 93 | .endif |
94 | | | 94 | |
95 | # AMD Radeon r600 | | 95 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) |
96 | PLIST.r600= yes | | | |
97 | GALLIUM_DRIVERS+= r600 | | | |
98 | | | | |
99 | # Qualcomm SnapDragon, libdrm_freedreno.pc | | 96 | # Qualcomm SnapDragon, libdrm_freedreno.pc |
100 | # GALLIUM_DRIVERS+= freedreno | | 97 | # GALLIUM_DRIVERS+= freedreno |
101 | | | 98 | |
102 | # Broadcom VideoCore 4 | | 99 | # Broadcom VideoCore 4 |
103 | # GALLIUM_DRIVERS+= vc4 | | 100 | # GALLIUM_DRIVERS+= vc4 |
104 | | | 101 | |
| | | 102 | .else |
| | | 103 | |
| | | 104 | # AMD Radeon r600 |
| | | 105 | PLIST.r600= yes |
| | | 106 | GALLIUM_DRIVERS+= r600 |
| | | 107 | |
105 | # nVidia | | 108 | # nVidia |
106 | PLIST.nouveau= yes | | 109 | PLIST.nouveau= yes |
107 | GALLIUM_DRIVERS+= nouveau | | 110 | GALLIUM_DRIVERS+= nouveau |
108 | | | 111 | |
109 | # classic DRI radeon | | 112 | # classic DRI radeon |
110 | PLIST.radeon_dri= yes | | 113 | PLIST.radeon_dri= yes |
111 | DRI_DRIVERS+= radeon | | 114 | DRI_DRIVERS+= radeon |
112 | | | 115 | |
113 | # classic DRI r200 | | 116 | # classic DRI r200 |
114 | PLIST.r200_dri= yes | | 117 | PLIST.r200_dri= yes |
115 | DRI_DRIVERS+= r200 | | 118 | DRI_DRIVERS+= r200 |
116 | | | 119 | |
117 | # classic DRI nouveau | | 120 | # classic DRI nouveau |
118 | PLIST.nouveau_dri= yes | | 121 | PLIST.nouveau_dri= yes |
119 | DRI_DRIVERS+= nouveau | | 122 | DRI_DRIVERS+= nouveau |
| | | 123 | .endif |
120 | | | 124 | |
121 | CONFIGURE_ARGS+= --with-egl-platforms=x11,drm | | 125 | CONFIGURE_ARGS+= --with-egl-platforms=x11,drm |
122 | CONFIGURE_ARGS+= --with-gallium-drivers=${GALLIUM_DRIVERS:ts,} | | 126 | CONFIGURE_ARGS+= --with-gallium-drivers=${GALLIUM_DRIVERS:ts,} |
123 | CONFIGURE_ARGS+= --with-dri-drivers=${DRI_DRIVERS:ts,} | | 127 | CONFIGURE_ARGS+= --with-dri-drivers=${DRI_DRIVERS:ts,} |
124 | | | 128 | |
125 | .if !empty(PKG_OPTIONS:Mllvm) | | 129 | .if !empty(PKG_OPTIONS:Mllvm) |
126 | # AMD Radeon r300 | | 130 | # AMD Radeon r300 |
127 | PLIST.r300= yes | | 131 | PLIST.r300= yes |
128 | GALLIUM_DRIVERS+= r300 | | 132 | GALLIUM_DRIVERS+= r300 |
129 | # AMD Canary Islands GPUs | | 133 | # AMD Canary Islands GPUs |
130 | PLIST.radeonsi= yes | | 134 | PLIST.radeonsi= yes |
131 | GALLIUM_DRIVERS+= radeonsi | | 135 | GALLIUM_DRIVERS+= radeonsi |
132 | CONFIGURE_ARGS+= --enable-gallium-llvm | | 136 | CONFIGURE_ARGS+= --enable-gallium-llvm |