From: Nicolai Hähnle <nicolai.haeh...@amd.com>

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).
---
 src/gallium/drivers/radeonsi/si_state_draw.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c 
b/src/gallium/drivers/radeonsi/si_state_draw.c
index b559306..3147311 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -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);
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to