i965: Fix segfaults from 45a28a927ab7f29ff325b9326d386a39ba538c18
authorEric Anholt <eric@anholt.net>
Mon, 4 Feb 2013 17:32:06 +0000 (09:32 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 4 Feb 2013 21:58:55 +0000 (13:58 -0800)
commit5751d0cb2dd6d1682d2a954e3f008be61b4ab7e2
tree09d60528f23ba4d49c5be28c4ed03a652f19f96a
parent4161d70bba567e6e73d5e9e993a74d81930d0e72
i965: Fix segfaults from 45a28a927ab7f29ff325b9326d386a39ba538c18

If you look up a level that isn't in the miptree, you crash.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c