radeonsi: remove an incorrect assertion
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 Aug 2016 15:50:42 +0000 (17:50 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 9 Aug 2016 13:56:03 +0000 (15:56 +0200)
Byte indices don't need any alignment, so remove this assertion (it got moved
into a path where a piglit test hit it during the refactoring of
commit 64ff23a58c).

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index b55930641315c8533e69eb0e699d8ffc0de35277..314731164c9a6cedd26e2d9b5ad6051defe321ee 100644 (file)
@@ -574,8 +574,6 @@ static void si_emit_draw_packets(struct si_context *sctx,
                                  ib->index_size;
                index_va = r600_resource(ib->buffer)->gpu_address + ib->offset;
 
-               assert(index_va % 2 == 0);
-
                radeon_add_to_buffer_list(&sctx->b, &sctx->b.gfx,
                                      (struct r600_resource *)ib->buffer,
                                      RADEON_USAGE_READ, RADEON_PRIO_INDEX_BUFFER);