diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-10-23 06:36:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-10-23 06:36:00 +0000 |
commit | b65fcab046d3a1b6b6ac315720df220925c5322e (patch) | |
tree | ff73dcc383ac0799c655ff6194cda9dacb75dde9 /lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | |
parent | 18d6381c51e253e4c41c62619f80d9ce745b95c8 (diff) |
Merge Mesa 17.3.9
Mesa 18.x needs an ld with build-id for at least the intel code
Mesa 18.2 assumes linux only memfd syscalls in intel code
Tested by matthieu@, kettenis@ and myself on a variety of hardware and
architectures. ok kettenis@
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c index 0fbc78e38..84894c0ca 100644 --- a/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c +++ b/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c @@ -100,7 +100,7 @@ pipe_loader_sw_probe_init_common(struct pipe_loader_sw_device *sdev) if (!sdev->dd) return false; #else - sdev->lib = pipe_loader_find_module(&sdev->base, PIPE_SEARCH_DIR); + sdev->lib = pipe_loader_find_module("swrast", PIPE_SEARCH_DIR); if (!sdev->lib) return false; @@ -270,7 +270,8 @@ fail: static void pipe_loader_sw_release(struct pipe_loader_device **dev) { - struct pipe_loader_sw_device *sdev = pipe_loader_sw_device(*dev); + MAYBE_UNUSED struct pipe_loader_sw_device *sdev = + pipe_loader_sw_device(*dev); #ifndef GALLIUM_STATIC_TARGETS if (sdev->lib) @@ -282,8 +283,7 @@ pipe_loader_sw_release(struct pipe_loader_device **dev) close(sdev->fd); #endif - FREE(sdev); - *dev = NULL; + pipe_loader_base_release(dev); } static const struct drm_conf_ret * @@ -294,7 +294,8 @@ pipe_loader_sw_configuration(struct pipe_loader_device *dev, } static struct pipe_screen * -pipe_loader_sw_create_screen(struct pipe_loader_device *dev) +pipe_loader_sw_create_screen(struct pipe_loader_device *dev, + const struct pipe_screen_config *config) { struct pipe_loader_sw_device *sdev = pipe_loader_sw_device(dev); struct pipe_screen *screen; |