pipe-loader: fix build of dynamic pipe-drivers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 2 Aug 2017 15:26:46 +0000 (17:26 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 3 Aug 2017 13:40:41 +0000 (15:40 +0200)
v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver
v3: add libxmlconfig.la to targets/opencl build
v4: add EXPAT_LIBS to opencl build
    (note: for only-opencl builds, Emil's configure.ac changes
     are also needed)

Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014
Tested-by: Andy Furniss <adf.lists@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
src/gallium/targets/opencl/Makefile.am
src/gallium/targets/pipe-loader/Makefile.am
src/gallium/targets/pipe-loader/pipe_r300.c
src/gallium/targets/pipe-loader/pipe_r600.c
src/gallium/targets/pipe-loader/pipe_radeonsi.c

index 99532f06d8123996500efe6f0c8edb8acdaa5c62..e88fa0fd382999986b27294e7ece2b5a8d5711f2 100644 (file)
@@ -19,6 +19,8 @@ lib@OPENCL_LIBNAME@_la_LIBADD = \
        $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \
        $(top_builddir)/src/gallium/auxiliary/libgallium.la \
        $(top_builddir)/src/util/libmesautil.la \
+       $(top_builddir)/src/util/libxmlconfig.la \
+       $(EXPAT_LIBS) \
        $(LIBELF_LIBS) \
        $(DLOPEN_LIBS) \
        -lclangCodeGen \
index 400b198fe29ed4508905f4b073cdaba0ee1d1bcd..db492c5023d9143e8ac47b232808a9e2fb5ce14a 100644 (file)
@@ -146,6 +146,7 @@ pipe_radeonsi_la_LIBADD = \
        $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
        $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
        $(top_builddir)/src/amd/common/libamd_common.la \
+       $(top_builddir)/src/util/libxmlconfig.la \
        $(LIBDRM_LIBS) \
        $(RADEON_LIBS) \
        $(AMDGPU_LIBS)
index 0dcc0191dfb806c5263126e322ff33cfe34398df..8aa1ba8735ca8040d0bf3811aad64b12e5025f89 100644 (file)
@@ -9,7 +9,7 @@ create_screen(int fd, const struct pipe_screen_config *config)
 {
    struct radeon_winsys *sws;
 
-   sws = radeon_drm_winsys_create(fd, flags, r300_screen_create);
+   sws = radeon_drm_winsys_create(fd, config, r300_screen_create);
    return sws ? debug_screen_wrap(sws->screen) : NULL;
 }
 
index 0eedde76bef4418f8cbb948b1219105a4c35410f..a6051aa225851c87f83a5e4f280630d955bbfd20 100644 (file)
@@ -9,7 +9,7 @@ create_screen(int fd, const struct pipe_screen_config *config)
 {
    struct radeon_winsys *rw;
 
-   rw = radeon_drm_winsys_create(fd, flags, r600_screen_create);
+   rw = radeon_drm_winsys_create(fd, config, r600_screen_create);
    return rw ? debug_screen_wrap(rw->screen) : NULL;
 }
 
index 2d33d0e336cb59a2fb2e58bbec9942132f47f0f4..2defc521b248da1521d303de82851554e1bded61 100644 (file)
@@ -12,10 +12,10 @@ create_screen(int fd, const struct pipe_screen_config *config)
    struct radeon_winsys *rw;
 
    /* First, try amdgpu. */
-   rw = amdgpu_winsys_create(fd, flags, radeonsi_screen_create);
+   rw = amdgpu_winsys_create(fd, config, radeonsi_screen_create);
 
    if (!rw)
-      rw = radeon_drm_winsys_create(fd, flags, radeonsi_screen_create);
+      rw = radeon_drm_winsys_create(fd, config, radeonsi_screen_create);
 
    return rw ? debug_screen_wrap(rw->screen) : NULL;
 }