diff options
author | Keith Packard <keithp@keithp.com> | 2008-05-08 10:44:02 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-05-08 10:44:02 -0700 |
commit | 9af4c497433398fa4576a7c1c31036448cf4f24c (patch) | |
tree | 796775f0bebcdedc7b28dbc2511bfc00797786fc /shared-core/i915_drv.h | |
parent | effc6d998f080ba6f9c81d1b4b0e75a42be0238e (diff) |
[intel-gem] Move domains to relocation records. add set_domain ioctl.
Domain information is about buffer relationships, not buffer contents. That
means a relocation contains the domain information as it knows how the
source buffer references the target buffer.
This also adds the set_domain ioctl so that user space can move buffers to
the cpu domain.
Diffstat (limited to 'shared-core/i915_drv.h')
-rw-r--r-- | shared-core/i915_drv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h index daa77f72..96257ab6 100644 --- a/shared-core/i915_drv.h +++ b/shared-core/i915_drv.h @@ -383,6 +383,9 @@ int i915_gem_unpin_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); int i915_gem_init_object(struct drm_gem_object *obj); void i915_gem_free_object(struct drm_gem_object *obj); +int i915_gem_set_domain_ioctl (struct drm_gem_object *obj, + uint32_t read_domains, + uint32_t write_domain); #endif |