From e0dc018fd5a89309611ef91adf3c40286daeb3f5 Mon Sep 17 00:00:00 2001 From: Samuel Iglesias Gonsalvez Date: Thu, 8 May 2014 15:55:08 +0200 Subject: [PATCH] i965: fix size assert for gen7 in brw_init_compaction_tables() It should compare with it's own size. Reviewed-by: Eric Anholt Reviewed-by: Matt Turner Signed-off-by: Samuel Iglesias Gonsalvez --- src/mesa/drivers/dri/i965/brw_eu_compact.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c index 3004843d040..fbee942aa31 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_compact.c +++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c @@ -637,10 +637,10 @@ brw_init_compaction_tables(struct brw_context *brw) assert(gen6_datatype_table[ARRAY_SIZE(gen6_datatype_table) - 1] != 0); assert(gen6_subreg_table[ARRAY_SIZE(gen6_subreg_table) - 1] != 0); assert(gen6_src_index_table[ARRAY_SIZE(gen6_src_index_table) - 1] != 0); - assert(gen7_control_index_table[ARRAY_SIZE(gen6_control_index_table) - 1] != 0); - assert(gen7_datatype_table[ARRAY_SIZE(gen6_datatype_table) - 1] != 0); - assert(gen7_subreg_table[ARRAY_SIZE(gen6_subreg_table) - 1] != 0); - assert(gen7_src_index_table[ARRAY_SIZE(gen6_src_index_table) - 1] != 0); + assert(gen7_control_index_table[ARRAY_SIZE(gen7_control_index_table) - 1] != 0); + assert(gen7_datatype_table[ARRAY_SIZE(gen7_datatype_table) - 1] != 0); + assert(gen7_subreg_table[ARRAY_SIZE(gen7_subreg_table) - 1] != 0); + assert(gen7_src_index_table[ARRAY_SIZE(gen7_src_index_table) - 1] != 0); switch (brw->gen) { case 7: -- 2.30.2