swpipe: Make softpipe optional

* If we're using llvmpipe, don't reference
  softpipe. Reduce bloat.
This commit is contained in:
Alexander von Gluck IV
2012-12-21 19:23:44 -06:00
parent b9d7097111
commit 83b716e3d9
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -26,9 +26,10 @@ extern "C" {
#include "state_tracker/st_gl_api.h"
#include "state_tracker/st_manager.h"
#include "state_tracker/sw_winsys.h"
#include "softpipe/sp_public.h"
#ifdef HAVE_LLVM
#include "llvmpipe/lp_public.h"
#else
#include "softpipe/sp_public.h"
#endif
}
@@ -212,11 +213,10 @@ GalliumContext::CreateScreen()
#ifdef HAVE_LLVM
fScreen = llvmpipe_create_screen(winsys);
#else
fScreen = softpipe_create_screen(winsys);
#endif
if (fScreen == NULL)
fScreen = softpipe_create_screen(winsys);
if (fScreen == NULL) {
ERROR("%s: Couldn't create screen!\n", __FUNCTION__);
FREE(winsys);
+1 -1
View File
@@ -24,7 +24,7 @@ if $(HAIKU_LLVM_DIR) {
SubDirSysHdrs /boot/common/include ;
HAIKU_LLVM_DIR = /boot/common/lib ;
HAIKU_SWPIPE_DRIVER +=
HAIKU_SWPIPE_DRIVER =
$(HAIKU_MESA_DIR)/lib.haiku/libllvmpipe.a ;
llvmLibraries =