summaryrefslogtreecommitdiff
path: root/lib/gpu_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gpu_cmds.c')
-rw-r--r--lib/gpu_cmds.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c
index 79412725a..dc0ae96c6 100644
--- a/lib/gpu_cmds.c
+++ b/lib/gpu_cmds.c
@@ -39,13 +39,12 @@ gen7_render_flush(struct intel_batchbuffer *batch, uint32_t batch_end)
void
gen7_render_context_flush(struct intel_batchbuffer *batch, 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, batch->ctx,
- 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, batch->ctx,
+ batch_end, 0),
+ 0);
}
uint32_t