Mesa (master): i965: fix size assert for gen7 in brw_init_compaction_tables()

Matt Turner mattst88 at kemper.freedesktop.org
Wed May 14 05:33:02 UTC 2014


Module: Mesa
Branch: master
Commit: e0dc018fd5a89309611ef91adf3c40286daeb3f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0dc018fd5a89309611ef91adf3c40286daeb3f5

Author: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
Date:   Thu May  8 15:55:08 2014 +0200

i965: fix size assert for gen7 in brw_init_compaction_tables()

It should compare with it's own size.

Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
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:




More information about the mesa-commit mailing list