aboutsummaryrefslogtreecommitdiff
path: root/shared-core/i915_drv.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-11 00:10:16 -0700
committerKeith Packard <keithp@keithp.com>2008-05-11 00:10:16 -0700
commitff39db099b9ca6c8feee68101a2269345b7bd798 (patch)
treef991f1bdb260d90c60823f1427f93f4c423c64c4 /shared-core/i915_drv.h
parent1b0bf301431e76712de1ee43681bc818383b2e56 (diff)
[GEM] Make pread/pwrite manage memory domains. No luck with movnti though.
pread and pwrite must update the memory domains to ensure consistency with the GPU. At some point, it should be possible to avoid clflush through this path, but that isn't working for me.
Diffstat (limited to 'shared-core/i915_drv.h')
-rw-r--r--shared-core/i915_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h
index 413fca89..78c5d3df 100644
--- a/shared-core/i915_drv.h
+++ b/shared-core/i915_drv.h
@@ -391,6 +391,8 @@ 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);
+int i915_gem_flush_pwrite(struct drm_gem_object *obj,
+ uint64_t offset, uint64_t size);
void i915_gem_lastclose(struct drm_device *dev);
#endif