aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-22 09:24:13 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-22 20:10:38 -0400
commitbb6baf76f45708dbba651ed76a7ad94462f30c0b (patch)
treea58c54d10d9f35f32799d59189467607a84c1b4c /include/drm
parent9731129c5e3077d0c2da13479f91c3a07e341f70 (diff)
drm/i915: Track purged state.
In order to correctly prevent the invalid reuse of a purged buffer, we need to track such events and warn the user before something bad happens. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/i915_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index 607c9da061e8..7e0cb1da92e6 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -671,6 +671,7 @@ struct drm_i915_get_pipe_from_crtc_id {
671 671
672#define I915_MADV_WILLNEED 0 672#define I915_MADV_WILLNEED 0
673#define I915_MADV_DONTNEED 1 673#define I915_MADV_DONTNEED 1
674#define __I915_MADV_PURGED 2 /* internal state */
674 675
675struct drm_i915_gem_madvise { 676struct drm_i915_gem_madvise {
676 /** Handle of the buffer to change the backing store advice */ 677 /** Handle of the buffer to change the backing store advice */