Skip to content

Commit

Permalink
swpipe: Make softpipe optional
Browse files Browse the repository at this point in the history
* If we're using llvmpipe, don't reference
  softpipe. Reduce bloat.
  • Loading branch information
kallisti5 committed Dec 22, 2012
1 parent b9d7097 commit 83b716e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/add-ons/opengl/swpipe/GalliumContext.cpp
Expand Up @@ -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
}

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/add-ons/opengl/swpipe/Jamfile
Expand Up @@ -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 =
Expand Down

0 comments on commit 83b716e

Please sign in to comment.