/* Flushes the GTT write domain for the object if it's dirty.  */
static void i915_gem_object_flush_gtt_write_domain(struct drm_gem_object *obj)
/* Flushes the GTT write domain for the object if it's dirty.  */
static void i915_gem_object_flush_gtt_write_domain(struct drm_gem_object *obj)
{
	uint32_t old_write_domain;
	if (obj->write_domain != I915_GEM_DOMAIN_GTT)
		return;
	old_write_domain = obj->write_domain;
	obj->write_domain = 0;
	trace_i915_gem_object_change_domain(obj,
					    obj->read_domains,
					    old_write_domain);
}