intel: Check and propagate errors from building reloc-tree
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 13:12:39 +0000 (13:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 14:18:31 +0000 (14:18 +0000)
commit792fed1e2460f96459141b5a628dd5ab4fbb87db
treed0ddb11b1544a15285086fde496edab61f7469e2
parentb73612e4fd69565aa2c5c2e9677f3e0af1945f7d
intel: Check and propagate errors from building reloc-tree

Instead of forcing the caller to check after every emit_reloc(), we can
flag the object as being in error, propagating that error upwards through
the relocation tree, and failing the eventual batch buffer execution.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c