summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-04-01 17:42:40 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-04-25 21:09:09 +0100
commit5c6a1445d530d5c070d1c5288dddf59884c7fca8 (patch)
tree1247afac39bd85541486358f622a9c72e063077a /src/gallium/auxiliary/pipe-loader
parenta7a03d84fc1a7a1721b4a0338258b3b8687743e8 (diff)
downloadexternal_mesa3d-5c6a1445d530d5c070d1c5288dddf59884c7fca8.zip
external_mesa3d-5c6a1445d530d5c070d1c5288dddf59884c7fca8.tar.gz
external_mesa3d-5c6a1445d530d5c070d1c5288dddf59884c7fca8.tar.bz2
pipe-loader: conditionally build and use pipe_loader_sw_probe_dri
The function relies on the sw/dri winsys which is build only when --enable-dri is set. Fixes build issues with the following config ./configure --disable-dri --with-gallium-drivers=svga --enable-xa Issue can be reproduced with any hw gallium driver + st that uses the pipe-loader. Cc: Brian Paul <brianp@vmware.com> Reported-by: Brian Paul <brianp@vmware.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader.h4
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.h b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
index a5e49fc..caef6c1 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.h
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.h
@@ -119,6 +119,9 @@ pipe_loader_sw_probe_xlib(struct pipe_loader_device **devs, Display *display);
#endif
+
+#ifdef HAVE_PIPE_LOADER_DRI
+
/**
* Initialize sw dri device give the drisw_loader_funcs.
*
@@ -130,6 +133,7 @@ bool
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs,
struct drisw_loader_funcs *drisw_lf);
+#endif
/**
* Initialize a null sw device.
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
index 35ec37f..08d4353 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
@@ -75,6 +75,7 @@ pipe_loader_sw_probe_xlib(struct pipe_loader_device **devs, Display *display)
}
#endif
+#ifdef HAVE_PIPE_LOADER_DRI
bool
pipe_loader_sw_probe_dri(struct pipe_loader_device **devs, struct drisw_loader_funcs *drisw_lf)
{
@@ -95,6 +96,7 @@ pipe_loader_sw_probe_dri(struct pipe_loader_device **devs, struct drisw_loader_f
return true;
}
+#endif
bool
pipe_loader_sw_probe_null(struct pipe_loader_device **devs)