diff options
author | Keith Packard <keithp@keithp.com> | 2008-06-13 15:43:02 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-06-13 15:43:02 -0700 |
commit | 217beb9c8de01417ac6219b54bd25046da6d4c7a (patch) | |
tree | e3842518d2861cfd61e5e0b278b75bba8ec72f0d /linux-core/drmP.h | |
parent | 4086cdb6550a4e957fd436c77a6260204e026538 (diff) |
[intel-gem] add gtt and pin counts to /proc/dri/*/gem_objects
Not quite portable, but these are useful for intel. Some more general
mechanism could be done...
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 02826c8d..ba25f3a8 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -965,6 +965,11 @@ struct drm_device { spinlock_t object_name_lock; struct idr object_name_idr; atomic_t object_count; + atomic_t object_memory; + atomic_t pin_count; + atomic_t pin_memory; + atomic_t gtt_count; + atomic_t gtt_memory; uint32_t invalidate_domains; /* domains pending invalidation */ uint32_t flush_domains; /* domains pending flush */ /*@} */ |