diff options
author | Eric Anholt <eric@anholt.net> | 2008-02-26 13:28:51 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-02-26 13:58:01 -0800 |
commit | 451bd1941e9791882f7931c8613643f152871e79 (patch) | |
tree | 88e3743b0a5771129d0cf296041d84577e82b822 | |
parent | 09aa4b36902194646384cccbdee8a07832aebac7 (diff) |
[965] Don't segfault on INTEL_DEBUG=batch when a surface buffer is NULL.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index 9eb27cc267..319dac8749 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -94,6 +94,10 @@ static void dump_wm_surface_state(struct brw_context *brw) struct brw_surface_state *surf; char name[20]; + if (surf_bo == NULL) { + fprintf(stderr, "WM SS%d: NULL\n", i); + continue; + } dri_bo_map(surf_bo, GL_FALSE); surfoff = surf_bo->offset; surf = (struct brw_surface_state *)(surf_bo->virtual); |