i965: fix segfault on low memory conditions
authorRobert Ellison <papillo@vmware.com>
Fri, 8 May 2009 20:40:38 +0000 (14:40 -0600)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 17 Jun 2009 19:55:26 +0000 (12:55 -0700)
commite15aebe10e20aacce63175b68ec8daa5c1dc4e0c
tree42d69d2e49f21ab43768dcda8158585980331fe9
parenta70c45bdabd8a172de6c50167b3e9d99649db1fa
i965: fix segfault on low memory conditions

When out of memory (in at least one case, triggered by a longrunning
memory leak), this code will segfault and crash.  By checking for the
out-of-memory condition, the system can continue, and will report
the out-of-memory error later, a much preferable outcome.
(cherry picked from commit 44a4abfd4f8695809eaec07df8eeb191d6e017d7)
src/mesa/drivers/dri/i965/brw_wm.c