aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/sb/sb_sched.cpp
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2013-05-02 10:36:18 +0400
committerVadim Girlin <[email protected]>2013-05-03 16:53:42 +0400
commit48ba5712f579717a702b6768efde301b5dfc867a (patch)
tree532477aeb8807eefc7dec006f943f203d7a2f81b /src/gallium/drivers/r600/sb/sb_sched.cpp
parentc49b6d7f27319c423ab06ab62be46ee9628f5986 (diff)
r600g/sb: silence warnings with gcc 4.8
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/sb/sb_sched.cpp')
-rw-r--r--src/gallium/drivers/r600/sb/sb_sched.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_sched.cpp b/src/gallium/drivers/r600/sb/sb_sched.cpp
index d7c17952a4a..b21b342578d 100644
--- a/src/gallium/drivers/r600/sb/sb_sched.cpp
+++ b/src/gallium/drivers/r600/sb/sb_sched.cpp
@@ -542,6 +542,10 @@ bool alu_group_tracker::try_reserve(alu_node* n) {
assert(first_slot != ~0 && last_slot != ~0);
+ // silence "array subscript is above array bounds" with gcc 4.8
+ if (last_slot >= 5)
+ abort();
+
int i = first_nf;
alu_node *a = slots[i];
bool backtrack = false;