summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_object.h
diff options
context:
space:
mode:
authorChris Wilson2017-10-13 22:26:14 +0200
committerChris Wilson2017-10-16 21:44:19 +0200
commitbd3d2252f94da51dda96a6e2ad6fdef5f2959811 (patch)
tree9ec4d85231b23efa6caed4267a4c5addfdf13c9b /drivers/gpu/drm/i915/i915_gem_object.h
parentdrm/i915: Refactor testing obj->mm.pages (diff)
downloadkernel-qcow2-linux-bd3d2252f94da51dda96a6e2ad6fdef5f2959811.tar.gz
kernel-qcow2-linux-bd3d2252f94da51dda96a6e2ad6fdef5f2959811.tar.xz
kernel-qcow2-linux-bd3d2252f94da51dda96a6e2ad6fdef5f2959811.zip
drm/i915: Rename obj->pin_display to obj->pin_global
In the next patch, we want to extend use of the global pin counter for semi-permanent pinning of context/ring objects. Given that we plan to extend the usage to encompass a disparate set of objects, we want a name that reflects both and should entail less confusion. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171013202621.7276-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_object.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_object.h b/drivers/gpu/drm/i915/i915_gem_object.h
index d67f1cbe842d..72aa02f3a0f8 100644
--- a/drivers/gpu/drm/i915/i915_gem_object.h
+++ b/drivers/gpu/drm/i915/i915_gem_object.h
@@ -161,7 +161,8 @@ struct drm_i915_gem_object {
/** Count of VMA actually bound by this object */
unsigned int bind_count;
unsigned int active_count;
- unsigned int pin_display;
+ /** Count of how many global VMA are currently pinned for use by HW */
+ unsigned int pin_global;
struct {
struct mutex lock; /* protects the pages and their use */