Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
The v4 version of the patch that was committed still has regressed build for me. Reverting and applying v2 still builds OK. I now get - Making all in targets/opencl make[4]: Entering directory '/mnt/sdb1/Gits/mesa/src/gallium/targets/opencl' CXXLDlibOpenCL.la ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driParseOptionInfo': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:719: multiple definition of `driParseOptionInfo' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:719: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driParseConfigFiles': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:990: multiple definition of `driParseConfigFiles' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:990: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driDestroyOptionCache': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1056: multiple definition of `driDestroyOptionCache' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1056: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driDestroyOptionInfo': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1040: multiple definition of `driDestroyOptionInfo' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1040: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driCheckOption': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1070: multiple definition of `driCheckOption' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1070: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driQueryOptionb': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1077: multiple definition of `driQueryOptionb' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1077: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driQueryOptioni': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1087: multiple definition of `driQueryOptioni' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1087: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driQueryOptionf': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1097: multiple definition of `driQueryOptionf' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1097: first defined here ../../../../src/util/.libs/libxmlconfig.a(libxmlconfig_la-xmlconfig.o): In function `driQueryOptionstr': /mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1107: multiple definition of `driQueryOptionstr' ../../../../src/gallium/auxiliary/pipe-loader/.libs/libpipe_loader_dynamic.a(libxmlconfig_la-xmlconfig.o):/mnt/sdb1/Gits/mesa/src/util/xmlconfig.c:1107: first defined here collect2: error: ld returned 1 exit status Makefile:686: recipe for target 'libOpenCL.la' failed Nicolai Hähnle wrote: Thanks! I'll take that as a Tested-by. On 02.08.2017 18:43, Andy Furniss wrote: Building OK with this. Nicolai Hähnle wrote: From: Nicolai Hähnle v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014 -- I believe this is the right place to add it; the error reported by Andy was missing driQueryOptionb, which makes sense since this is now used in si_pipe.c. --- src/gallium/targets/pipe-loader/Makefile.am | 1 + src/gallium/targets/pipe-loader/pipe_r300.c | 2 +- src/gallium/targets/pipe-loader/pipe_r600.c | 2 +- src/gallium/targets/pipe-loader/pipe_radeonsi.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 400b198..db492c5 100644 --- a/src/gallium/targets/pipe-loader/Makefile.am +++ b/src/gallium/targets/pipe-loader/Makefile.am @@ -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 \ +
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
On 02.08.2017 22:44, Jan Vesely wrote: probably. The original changeset passes NULL(which is then unconditionally accessed) at least in: src/gallium/auxiliary/vl/vl_winsys_dri.c src/gallium/auxiliary/vl/vl_winsys_dri3.c src/gallium/auxiliary/vl/vl_winsys_drm.c src/gallium/state_trackers/xa/xa_tracker.c src/gallium/targets/d3dadapter9/drm.c src/gallium/tests/trivial/compute.c src/gallium/tests/trivial/quad-tex.c src/gallium/tests/trivial/tri.c Not sure if the original idea was to handle NULL gracefully, but it looks like the change broke almost everything other than GL. Yeah, my bad. I went back and forth on the interface a few times, but then didn't keep other state trackers up-to-date. I'll have a patch for this shortly. Cheers, Nicolai Jan On Wed, 2017-08-02 at 21:28 +0100, Andy Furniss wrote: Hmm, been AFK, but now have actually installed as well as just testing build. Testing with this and the patch that avoids segfaults for cl. I am getting segfaults when using vdpau for video, so maybe that needs something similar. Jan Vesely wrote: The patch still causes segfaults because you pass NULL at core/device.cpp:45 yet unconditionally access the pointer at pipe_loader.c:130 Jan On Wed, 2017-08-02 at 18:44 +0200, Nicolai Hähnle wrote: Thanks! I'll take that as a Tested-by. On 02.08.2017 18:43, Andy Furniss wrote: Building OK with this. -- Lerne, wie die Welt wirklich ist, Aber vergiss niemals, wie sie sein sollte. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
probably. The original changeset passes NULL(which is then unconditionally accessed) at least in: src/gallium/auxiliary/vl/vl_winsys_dri.c src/gallium/auxiliary/vl/vl_winsys_dri3.c src/gallium/auxiliary/vl/vl_winsys_drm.c src/gallium/state_trackers/xa/xa_tracker.c src/gallium/targets/d3dadapter9/drm.c src/gallium/tests/trivial/compute.c src/gallium/tests/trivial/quad-tex.c src/gallium/tests/trivial/tri.c Not sure if the original idea was to handle NULL gracefully, but it looks like the change broke almost everything other than GL. Jan On Wed, 2017-08-02 at 21:28 +0100, Andy Furniss wrote: > Hmm, been AFK, but now have actually installed as well as just testing > build. > > Testing with this and the patch that avoids segfaults for cl. > > I am getting segfaults when using vdpau for video, so maybe that needs > something similar. > > Jan Vesely wrote: > > The patch still causes segfaults because you pass NULL at > > core/device.cpp:45 > > yet unconditionally access the pointer at pipe_loader.c:130 > > > > Jan > > > > On Wed, 2017-08-02 at 18:44 +0200, Nicolai Hähnle wrote: > > > Thanks! I'll take that as a Tested-by. > > > > > > On 02.08.2017 18:43, Andy Furniss wrote: > > > > Building OK with this. signature.asc Description: This is a digitally signed message part ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
Hmm, been AFK, but now have actually installed as well as just testing build. Testing with this and the patch that avoids segfaults for cl. I am getting segfaults when using vdpau for video, so maybe that needs something similar. Jan Vesely wrote: The patch still causes segfaults because you pass NULL at core/device.cpp:45 yet unconditionally access the pointer at pipe_loader.c:130 Jan On Wed, 2017-08-02 at 18:44 +0200, Nicolai Hähnle wrote: Thanks! I'll take that as a Tested-by. On 02.08.2017 18:43, Andy Furniss wrote: Building OK with this. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
The patch still causes segfaults because you pass NULL at core/device.cpp:45 yet unconditionally access the pointer at pipe_loader.c:130 Jan On Wed, 2017-08-02 at 18:44 +0200, Nicolai Hähnle wrote: > Thanks! I'll take that as a Tested-by. > > On 02.08.2017 18:43, Andy Furniss wrote: > > Building OK with this. > > > > > > Nicolai Hähnle wrote: > > > From: Nicolai Hähnle > > > > > > v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver > > > > > > Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create > > > functions") > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014 > > > -- > > > I believe this is the right place to add it; the error reported by > > > Andy was missing driQueryOptionb, which makes sense since this is now > > > used in si_pipe.c. > > > --- > > > src/gallium/targets/pipe-loader/Makefile.am | 1 + > > > src/gallium/targets/pipe-loader/pipe_r300.c | 2 +- > > > src/gallium/targets/pipe-loader/pipe_r600.c | 2 +- > > > src/gallium/targets/pipe-loader/pipe_radeonsi.c | 4 ++-- > > > 4 files changed, 5 insertions(+), 4 deletions(-) > > > > > > diff --git a/src/gallium/targets/pipe-loader/Makefile.am > > > b/src/gallium/targets/pipe-loader/Makefile.am > > > index 400b198..db492c5 100644 > > > --- a/src/gallium/targets/pipe-loader/Makefile.am > > > +++ b/src/gallium/targets/pipe-loader/Makefile.am > > > @@ -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) > > > diff --git a/src/gallium/targets/pipe-loader/pipe_r300.c > > > b/src/gallium/targets/pipe-loader/pipe_r300.c > > > index 0dcc019..8aa1ba8 100644 > > > --- a/src/gallium/targets/pipe-loader/pipe_r300.c > > > +++ b/src/gallium/targets/pipe-loader/pipe_r300.c > > > @@ -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; > > > } > > > diff --git a/src/gallium/targets/pipe-loader/pipe_r600.c > > > b/src/gallium/targets/pipe-loader/pipe_r600.c > > > index 0eedde7..a6051aa 100644 > > > --- a/src/gallium/targets/pipe-loader/pipe_r600.c > > > +++ b/src/gallium/targets/pipe-loader/pipe_r600.c > > > @@ -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; > > > } > > > diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c > > > b/src/gallium/targets/pipe-loader/pipe_radeonsi.c > > > index 2d33d0e..2defc52 100644 > > > --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c > > > +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c > > > @@ -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; > > > } > > > > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev signature.asc Description: This is a digitally signed message part ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
Thanks! I'll take that as a Tested-by. On 02.08.2017 18:43, Andy Furniss wrote: Building OK with this. Nicolai Hähnle wrote: From: Nicolai Hähnle v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014 -- I believe this is the right place to add it; the error reported by Andy was missing driQueryOptionb, which makes sense since this is now used in si_pipe.c. --- src/gallium/targets/pipe-loader/Makefile.am | 1 + src/gallium/targets/pipe-loader/pipe_r300.c | 2 +- src/gallium/targets/pipe-loader/pipe_r600.c | 2 +- src/gallium/targets/pipe-loader/pipe_radeonsi.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 400b198..db492c5 100644 --- a/src/gallium/targets/pipe-loader/Makefile.am +++ b/src/gallium/targets/pipe-loader/Makefile.am @@ -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) diff --git a/src/gallium/targets/pipe-loader/pipe_r300.c b/src/gallium/targets/pipe-loader/pipe_r300.c index 0dcc019..8aa1ba8 100644 --- a/src/gallium/targets/pipe-loader/pipe_r300.c +++ b/src/gallium/targets/pipe-loader/pipe_r300.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_r600.c b/src/gallium/targets/pipe-loader/pipe_r600.c index 0eedde7..a6051aa 100644 --- a/src/gallium/targets/pipe-loader/pipe_r600.c +++ b/src/gallium/targets/pipe-loader/pipe_r600.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c b/src/gallium/targets/pipe-loader/pipe_radeonsi.c index 2d33d0e..2defc52 100644 --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c @@ -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; } ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
Building OK with this. Nicolai Hähnle wrote: From: Nicolai Hähnle v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014 -- I believe this is the right place to add it; the error reported by Andy was missing driQueryOptionb, which makes sense since this is now used in si_pipe.c. --- src/gallium/targets/pipe-loader/Makefile.am | 1 + src/gallium/targets/pipe-loader/pipe_r300.c | 2 +- src/gallium/targets/pipe-loader/pipe_r600.c | 2 +- src/gallium/targets/pipe-loader/pipe_radeonsi.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 400b198..db492c5 100644 --- a/src/gallium/targets/pipe-loader/Makefile.am +++ b/src/gallium/targets/pipe-loader/Makefile.am @@ -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) diff --git a/src/gallium/targets/pipe-loader/pipe_r300.c b/src/gallium/targets/pipe-loader/pipe_r300.c index 0dcc019..8aa1ba8 100644 --- a/src/gallium/targets/pipe-loader/pipe_r300.c +++ b/src/gallium/targets/pipe-loader/pipe_r300.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_r600.c b/src/gallium/targets/pipe-loader/pipe_r600.c index 0eedde7..a6051aa 100644 --- a/src/gallium/targets/pipe-loader/pipe_r600.c +++ b/src/gallium/targets/pipe-loader/pipe_r600.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c b/src/gallium/targets/pipe-loader/pipe_radeonsi.c index 2d33d0e..2defc52 100644 --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c @@ -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; } ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH v2] pipe-loader: fix build of dynamic pipe-drivers
From: Nicolai Hähnle v2: add libxmlconfig.la to the dynamic pipe_radeonsi driver Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102014 -- I believe this is the right place to add it; the error reported by Andy was missing driQueryOptionb, which makes sense since this is now used in si_pipe.c. --- src/gallium/targets/pipe-loader/Makefile.am | 1 + src/gallium/targets/pipe-loader/pipe_r300.c | 2 +- src/gallium/targets/pipe-loader/pipe_r600.c | 2 +- src/gallium/targets/pipe-loader/pipe_radeonsi.c | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 400b198..db492c5 100644 --- a/src/gallium/targets/pipe-loader/Makefile.am +++ b/src/gallium/targets/pipe-loader/Makefile.am @@ -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) diff --git a/src/gallium/targets/pipe-loader/pipe_r300.c b/src/gallium/targets/pipe-loader/pipe_r300.c index 0dcc019..8aa1ba8 100644 --- a/src/gallium/targets/pipe-loader/pipe_r300.c +++ b/src/gallium/targets/pipe-loader/pipe_r300.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_r600.c b/src/gallium/targets/pipe-loader/pipe_r600.c index 0eedde7..a6051aa 100644 --- a/src/gallium/targets/pipe-loader/pipe_r600.c +++ b/src/gallium/targets/pipe-loader/pipe_r600.c @@ -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; } diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c b/src/gallium/targets/pipe-loader/pipe_radeonsi.c index 2d33d0e..2defc52 100644 --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c @@ -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; } -- 2.9.3 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev