Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Also need to flush an ob...
details: https://anonhg.NetBSD.org/src/rev/ced06538ef6e
branches: trunk
changeset: 335218:ced06538ef6e
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Dec 30 09:58:53 2014 +0000
description:
Also need to flush an object from CPU domain.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 45ad684519f5 -r ced06538ef6e sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Tue Dec 30 07:39:15 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Tue Dec 30 09:58:53 2014 +0000
@@ -2851,6 +2851,13 @@
#endif
i915_gem_object_flush_gtt_write_domain(obj);
}
+ if ((obj->base.write_domain & I915_GEM_DOMAIN_CPU) != 0) {
+#if 0
+ printk(KERN_ERR "%s: %p 0x%x flushing cpu\n", __func__, obj,
+ obj->base.write_domain);
+#endif
+ i915_gem_object_flush_cpu_write_domain(obj, false);
+ }
BUG_ON(obj->base.write_domain & ~I915_GEM_GPU_DOMAINS);
BUG_ON(!obj->active);
Home |
Main Index |
Thread Index |
Old Index