Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318755
b: refs/heads/master
c: 67b1b57
h: refs/heads/master
i:
  318753: 378da9c
  318751: ee0e879
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Jul 20, 2012
1 parent ca75d2e commit 1b63cd0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0232e927f8b0b37f5c82648f9bc45e55fb245068
refs/heads/master: 67b1b57182972f3c89c1ff9a58951582cb6bcca7
18 changes: 17 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3726,6 +3726,22 @@ void i915_gem_init_ppgtt(struct drm_device *dev)
}
}

static bool
intel_enable_blt(struct drm_device *dev)
{
if (!HAS_BLT(dev))
return false;

/* The blitter was dysfunctional on early prototypes */
if (IS_GEN6(dev) && dev->pdev->revision < 8) {
DRM_INFO("BLT not supported on this pre-production hardware;"
" graphics performance will be degraded.\n");
return false;
}

return true;
}

int
i915_gem_init_hw(struct drm_device *dev)
{
Expand All @@ -3749,7 +3765,7 @@ i915_gem_init_hw(struct drm_device *dev)
goto cleanup_render_ring;
}

if (HAS_BLT(dev)) {
if (intel_enable_blt(dev)) {
ret = intel_init_blt_ring_buffer(dev);
if (ret)
goto cleanup_bsd_ring;
Expand Down

0 comments on commit 1b63cd0

Please sign in to comment.