diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-04-08 20:59:42 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-04-09 00:43:08 +0100 |
commit | 66a7b20f4a1f95320c0d7c8c9704749001487783 (patch) | |
tree | 1ed0ecf9019f8b154a70b9e8e5d947540f7da0f3 /lib/rendercopy_gen7.c | |
parent | ab0620e555119ec55f12ba9ab9e6e9246d407648 (diff) |
lib: Show the actual error from submitting the rendercopy
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/rendercopy_gen7.c')
-rw-r--r-- | lib/rendercopy_gen7.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/rendercopy_gen7.c b/lib/rendercopy_gen7.c index b88b75e9..93b4da72 100644 --- a/lib/rendercopy_gen7.c +++ b/lib/rendercopy_gen7.c @@ -36,13 +36,12 @@ static void gen7_render_flush(struct intel_batchbuffer *batch, drm_intel_context *context, uint32_t batch_end) { - int ret; - - ret = drm_intel_bo_subdata(batch->bo, 0, 4096, batch->buffer); - if (ret == 0) - ret = drm_intel_gem_bo_context_exec(batch->bo, context, - batch_end, 0); - igt_assert(ret == 0); + igt_assert_eq(drm_intel_bo_subdata(batch->bo, + 0, 4096, batch->buffer), + 0); + igt_assert_eq(drm_intel_gem_bo_context_exec(batch->bo, context, + batch_end, 0), + 0); } static uint32_t |