From a397ce0f220b0095c77ed10fad2a162efd9977c7 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 6 Dec 2013 23:41:52 +0000 Subject: Change a WARN_ON into a BUG_ON to match Linux. --- sys/dev/pci/drm/i915/i915_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/drm/i915/i915_gem.c') diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index d00431c72a4..a3734d5c9f6 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_gem.c,v 1.55 2013/12/06 20:13:29 kettenis Exp $ */ +/* $OpenBSD: i915_gem.c,v 1.56 2013/12/06 23:41:51 kettenis Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth * @@ -3255,7 +3255,7 @@ i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, bool write) /* It should now be out of any other write domains, and we can update * the domain values for our changes. */ - WARN_ON((obj->base.write_domain & ~I915_GEM_DOMAIN_GTT) != 0); + BUG_ON((obj->base.write_domain & ~I915_GEM_DOMAIN_GTT) != 0); obj->base.read_domains |= I915_GEM_DOMAIN_GTT; if (write) { obj->base.read_domains = I915_GEM_DOMAIN_GTT; -- cgit v1.2.3