intel_be_init_context(intel, device);
- if (getenv("INTEL_SOFTPIPE"))
+ if (device->softpipe)
pipe = softpipe_create(screen);
else
pipe = i915_create_context(screen, &device->base, &intel->base);
#include "pipe/p_state.h"
#include "pipe/p_inlines.h"
#include "util/u_memory.h"
+#include "util/u_debug.h"
#include "intel_be_fence.h"
dev->pools.gem = drm_intel_bufmgr_gem_init(dev->fd, dev->max_batch_size);
+ dev->softpipe = debug_get_bool_option("INTEL_SOFTPIPE", FALSE);
+
return true;
}
intel_be_init_device(dev, drmFD, deviceID);
- if (getenv("INTEL_SOFTPIPE")) {
+ if (dev->softpipe) {
screen = softpipe_create_screen(&dev->base);
drm_api_hooks.buffer_from_texture = softpipe_get_texture_buffer;
} else