diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-26 15:03:40 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-26 15:03:40 +0200 |
commit | baa6f8b34f54b68c15fc86d86de77d954e458aac (patch) | |
tree | b39cd958b373974d5812579a252b49d960841078 /lib/rendercopy_gen8.c | |
parent | 4428151960b71a2ca4c83e8da3f4b0b826a8a26c (diff) |
lib/rendercopy*: Use igt_assert
Diffstat (limited to 'lib/rendercopy_gen8.c')
-rw-r--r-- | lib/rendercopy_gen8.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index ff0b0c83..6d196316 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -107,7 +107,7 @@ static void annotation_add_state(struct annotations_context *ctx, uint32_t start_offset, size_t size) { - assert(ctx->index < MAX_ANNOTATIONS); + igt_assert(ctx->index < MAX_ANNOTATIONS); add_annotation(&ctx->annotations[ctx->index++], AUB_TRACE_TYPE_NOTYPE, 0, @@ -174,7 +174,7 @@ gen6_render_flush(struct intel_batchbuffer *batch, if (ret == 0) ret = drm_intel_gem_bo_context_exec(batch->bo, context, batch_end, 0); - assert(ret == 0); + igt_assert(ret == 0); } /* Mostly copy+paste from gen6, except height, width, pitch moved */ @@ -213,7 +213,7 @@ gen8_bind_buf(struct intel_batchbuffer *batch, struct igt_buf *buf, batch_offset(batch, ss) + 8 * 4, buf->bo, 0, read_domain, write_domain); - assert(ret == 0); + igt_assert(ret == 0); ss->ss2.height = igt_buf_height(buf) - 1; ss->ss2.width = igt_buf_width(buf) - 1; @@ -944,7 +944,7 @@ void gen8_render_copyfunc(struct intel_batchbuffer *batch, scissor_state = gen6_create_scissor_rect(batch); /* TODO: theree is other state which isn't setup */ - assert(batch->ptr < &batch->buffer[4095]); + igt_assert(batch->ptr < &batch->buffer[4095]); batch->ptr = batch->buffer; @@ -1007,7 +1007,7 @@ void gen8_render_copyfunc(struct intel_batchbuffer *batch, OUT_BATCH(MI_BATCH_BUFFER_END); batch_end = batch_align(batch, 8); - assert(batch_end < BATCH_STATE_SPLIT); + igt_assert(batch_end < BATCH_STATE_SPLIT); annotation_add_batch(&aub_annotations, batch_end); dump_batch(batch); |