projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8462fe2
)
i915g: Add assert to check for null pointer dereference.
author
Vinson Lee
<vlee@vmware.com>
Tue, 2 Mar 2010 09:15:02 +0000
(
01:15
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 2 Mar 2010 09:15:02 +0000
(
01:15
-0800)
src/gallium/drivers/i915/i915_state_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i915/i915_state_emit.c
b/src/gallium/drivers/i915/i915_state_emit.c
index a3d4e3b04e524ad55ff3aeda0a58df3fef31f83a..ecbcabb4403e9d0e66f7b8d75e4ff4f9975e340f 100644
(file)
--- a/
src/gallium/drivers/i915/i915_state_emit.c
+++ b/
src/gallium/drivers/i915/i915_state_emit.c
@@
-244,6
+244,7
@@
i915_emit_hardware_state(struct i915_context *i915 )
OUT_BATCH(_3DSTATE_BUF_INFO_CMD);
+ assert(tex);
OUT_BATCH(BUF_3D_ID_DEPTH |
BUF_3D_PITCH(tex->stride) | /* pitch in bytes */
ztile);