[Mesa-dev] [PATCH] i965: fix size assert for gen7 in brw_init_compaction_tables()
Samuel Iglesias Gonsalvez
siglesias at igalia.com
Thu May 8 06:55:08 PDT 2014
It should compare with it's own size.
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
---
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 3004843..fbee942 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.0.0.rc0
More information about the mesa-dev
mailing list