summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-12 21:31:43 +0200
committerNicolai Hähnle <[email protected]>2017-06-19 12:05:12 +0200
commit4d5bb1b9877aecaefec53fca231a3df25e101e9a (patch)
treee051856c798a806971db78f4f1c2833ace90e090
parent67e49a7f6570b8691d9405cb65f263b87817fe71 (diff)
r600: fix off-by-one in egd_tables.py
Port of the corresponding fix in sid_tables.py. Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/r600/egd_tables.py2
1 files changed, 1 insertions, 1 deletions
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' % (