summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-09-26 16:57:17 -0700
committerEric Anholt <[email protected]>2013-10-10 16:34:30 -0700
commit18a8f31070def704ad65c86166eaadc6e1c3349c (patch)
tree32ac71aab9beccc78209bea5e3b22ef31d46d46b /src/mesa/drivers/dri/i915
parent083f66fdd6451648fe355b64b02b29a6a4389f0d (diff)
intel: Remove silly check for !bufmgr.
If bufmgr didn't get created, then screen creation failed, and we never should have got here in the first place. This was added by Chris Wilson in 2010 with no explanation for why it would be needed. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r--src/mesa/drivers/dri/i915/intel_context.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c
index aff51e82540..d25358b39a7 100644
--- a/src/mesa/drivers/dri/i915/intel_context.c
+++ b/src/mesa/drivers/dri/i915/intel_context.c
@@ -385,12 +385,6 @@ intelInitContext(struct intel_context *intel,
int bo_reuse_mode;
struct gl_config visual;
- /* we can't do anything without a connection to the device */
- if (intelScreen->bufmgr == NULL) {
- *dri_ctx_error = __DRI_CTX_ERROR_NO_MEMORY;
- return false;
- }
-
/* Can't rely on invalidate events, fall back to glViewport hack */
if (!driContextPriv->driScreenPriv->dri2.useInvalidate) {
intel->saved_viewport = functions->Viewport;