From: Samuel Iglesias Gonsalvez Date: Thu, 8 May 2014 13:55:08 +0000 (+0200) Subject: i965: fix size assert for gen7 in brw_init_compaction_tables() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0dc018fd5a89309611ef91adf3c40286daeb3f5;p=mesa.git 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 --- 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: