diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-03-19 13:45:45 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-20 15:09:21 +0100 |
commit | 6313c20490c8ae32ffb40f45c60734db53ca85ea (patch) | |
tree | ea1ef00091bbe6f11a676e62a745bb04603245da /drivers/gpu/drm/i915/i915_gem_context.c | |
parent | 2a5913a8670a6925c04e397e0a8ebd72cb4b2d26 (diff) | |
download | blackbird-op-linux-6313c20490c8ae32ffb40f45c60734db53ca85ea.tar.gz blackbird-op-linux-6313c20490c8ae32ffb40f45c60734db53ca85ea.zip |
drm/i915: Per-process stats work better when evaluated per-process
The idea of printing objects used by each process is to judge how each
process is using them. This means that we need to evaluate whether the
object is bound for that particular process, rather than just whether it
is bound into the global GTT.
v2: Restore the non-full-ppgtt path for simplicity as we may not even
create vma with older hardware.
v3: Tweak handling of global entries and default context entries.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index b5a58372eb06..6043062ffce7 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -215,6 +215,7 @@ create_vm_for_ctx(struct drm_device *dev, struct i915_hw_context *ctx) return ERR_PTR(ret); } + ppgtt->ctx = ctx; return ppgtt; } |