meson: fix pl111 dependency on vc4
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 4 Dec 2017 15:06:03 +0000 (15:06 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 7 Dec 2017 17:21:03 +0000 (17:21 +0000)
src/gallium/winsys/pl111/drm/libpl111winsys.a(pl111_drm_winsys.c.o): In function `pl111_drm_screen_create':
pl111_drm_winsys.c:(.text+0x33): undefined reference to `vc4_drm_screen_create_renderonly'

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build
src/gallium/meson.build
src/gallium/winsys/pl111/drm/meson.build

index 3e8ea7d17e06e9ededb0a7b045e06f63ac169dee..1ea63fb12915c93a67d5e3a6f8d277451039205f 100644 (file)
@@ -190,6 +190,9 @@ endif
 if with_gallium_imx and not with_gallium_etnaviv
   error('IMX driver requires etnaviv driver')
 endif
+if with_gallium_pl111 and not with_gallium_vc4
+  error('pl111 driver requires vc4 driver')
+endif
 
 dep_libdrm_intel = []
 if with_dri_i915 or with_gallium_i915
index 7e841633a9c837658370810922e60b26df2e73a2..2baca8a97ca3cfe36ff11b8391647b633c1c247f 100644 (file)
@@ -72,17 +72,17 @@ if with_gallium_freedreno
 else
   driver_freedreno = declare_dependency()
 endif
-if with_gallium_pl111
-  subdir('winsys/pl111/drm')
-else
-  driver_pl111 = declare_dependency()
-endif
 if with_gallium_vc4
   subdir('winsys/vc4/drm')
   subdir('drivers/vc4')
 else
   driver_vc4 = declare_dependency()
 endif
+if with_gallium_pl111
+  subdir('winsys/pl111/drm')
+else
+  driver_pl111 = declare_dependency()
+endif
 if with_gallium_vc5
   subdir('winsys/vc5/drm')
   subdir('drivers/vc5')
index 8ba03e3f9795009c725da534a6f95bc404fa4828..9cb6faf31e21e57bd6ab65803025f6899bcbc8ff 100644 (file)
@@ -27,6 +27,7 @@ libpl111winsys = static_library(
   ],
   c_args : [c_vis_args],
   dependencies: dep_libdrm,
+  link_with : libvc4winsys,
 )
 
 driver_pl111 = declare_dependency(