projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09aa4b3
)
[965] Don't segfault on INTEL_DEBUG=batch when a surface buffer is NULL.
author
Eric Anholt
<eric@anholt.net>
Tue, 26 Feb 2008 21:28:51 +0000
(13:28 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 26 Feb 2008 21:58:01 +0000
(13:58 -0800)
src/mesa/drivers/dri/i965/brw_state_dump.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_state_dump.c
b/src/mesa/drivers/dri/i965/brw_state_dump.c
index 9eb27cc2672e06b65bcdbeccd43bd7330a7740d1..319dac87498d68d897bc8b4705c41fd7d60eade3 100644
(file)
--- 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);