Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358199
b: refs/heads/master
c: 07ea0d8
h: refs/heads/master
i:
  358197: f7ae139
  358195: 1e82c1e
  358191: 548ee1f
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Feb 15, 2013
1 parent f7d402f commit 3a11809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: cf0a6584aa6d382f802f2c3cacac23ccbccde0cd
refs/heads/master: 07ea0d85ac8adb87b817913d9720e3c76171b1f6
7 changes: 2 additions & 5 deletions trunk/drivers/gpu/drm/i915/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ static int create_default_context(struct drm_i915_private *dev_priv)
void i915_gem_context_init(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
uint32_t ctx_size;

if (!HAS_HW_CONTEXTS(dev)) {
dev_priv->hw_contexts_disabled = true;
Expand All @@ -254,11 +253,9 @@ void i915_gem_context_init(struct drm_device *dev)
dev_priv->ring[RCS].default_context)
return;

ctx_size = get_context_size(dev);
dev_priv->hw_context_size = get_context_size(dev);
dev_priv->hw_context_size = round_up(dev_priv->hw_context_size, 4096);
dev_priv->hw_context_size = round_up(get_context_size(dev), 4096);

if (ctx_size <= 0 || ctx_size > (1<<20)) {
if (dev_priv->hw_context_size > (1<<20)) {
dev_priv->hw_contexts_disabled = true;
return;
}
Expand Down

0 comments on commit 3a11809

Please sign in to comment.