summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-12-07 10:48:36 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-12-07 10:48:36 +0000
commitc1ad8e6c1115467502c029128b9fdbe47ad60072 (patch)
treec92d95095cc906a338bc99e13a39ce37d2fb0084 /sys/dev/pci/drm
parentf4272e614f461da014565ab49d408327cf2d3a23 (diff)
Now that we properly flush caches, we can enable cpu relocations.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem_execbuffer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem_execbuffer.c b/sys/dev/pci/drm/i915/i915_gem_execbuffer.c
index 4e33cb132ce..daba146d72c 100644
--- a/sys/dev/pci/drm/i915/i915_gem_execbuffer.c
+++ b/sys/dev/pci/drm/i915/i915_gem_execbuffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_gem_execbuffer.c,v 1.23 2013/12/07 10:46:26 kettenis Exp $ */
+/* $OpenBSD: i915_gem_execbuffer.c,v 1.24 2013/12/07 10:48:35 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -132,13 +132,9 @@ eb_destroy(struct eb_objects *eb)
static inline int use_cpu_reloc(struct drm_i915_gem_object *obj)
{
-#ifdef notyet
return (obj->base.write_domain == I915_GEM_DOMAIN_CPU ||
!obj->map_and_fenceable ||
obj->cache_level != I915_CACHE_NONE);
-#else
- return 0;
-#endif
}
static int