[Intel-gfx] [PATCH 07/13] drm/i915: kill an no longer necessary BUG_ON
Daniel Vetter
daniel.vetter at ffwll.ch
Thu Feb 4 22:05:07 CET 2010
i915_gem_object_move_to_active can handle zero seqno's for us now.
And not emitting a request is not fatal here - we'll try to emit
a new one if we have to wait for some rendering to complete.
In case this assumption ever gets accidently broken, there's already
a BUG_ON to catch it in i915_do_wait_request.
So just silently ignore ENOMEM here instead of screwing up the whole
drm.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/i915/i915_gem.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 015c06a..6440801 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3974,7 +3974,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
* wait on when trying to clear up gtt space).
*/
seqno = i915_add_request(dev, file_priv);
- BUG_ON(seqno == 0);
for (i = 0; i < args->buffer_count; i++) {
struct drm_gem_object *obj = object_list[i];
--
1.6.6.1
More information about the Intel-gfx
mailing list