From: Nicolai Hähnle Date: Mon, 12 Jun 2017 19:31:43 +0000 (+0200) Subject: r600: fix off-by-one in egd_tables.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d5bb1b9877aecaefec53fca231a3df25e101e9a;p=mesa.git r600: fix off-by-one in egd_tables.py Port of the corresponding fix in sid_tables.py. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/r600/egd_tables.py b/src/gallium/drivers/r600/egd_tables.py index 4c606025ba7..d7b78c7fb16 100644 --- a/src/gallium/drivers/r600/egd_tables.py +++ b/src/gallium/drivers/r600/egd_tables.py @@ -110,7 +110,7 @@ class IntTable: [static] const typename name[] = { ... }; to filp. """ - idxs = sorted(self.idxs) + [-1] + idxs = sorted(self.idxs) + [len(self.table)] fragments = [ ('\t/* %s */ %s' % (