diff options
author | Ian Romanick <[email protected]> | 2010-08-17 12:57:28 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-08-17 13:00:03 -0700 |
commit | 664364052f362af2789e6b0fa88b6a5ba66ba936 (patch) | |
tree | 3439eafb015486f929730450d75b02d5fa51e333 /include | |
parent | 1b708d8f4dd1a853de8537e81e6d5bf8c9f2aed1 (diff) |
ir_constant: Don't assert on out-of-bounds array accesses
Several optimization paths, including constant folding, can lead to
accessing an ir_constant array with an out of bounds index. The GLSL
spec lets us produce "undefined" results, but it does not let us
crash.
Fixes piglit test case glsl-array-bounds-01 and glsl-array-bounds-03.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions