diff options
author | Vinson Lee <vlee@vmware.com> | 2010-03-02 01:15:02 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-03-02 01:15:02 -0800 |
commit | c1c7fa5192c4fb3f51fb67c81e58713d61ff0c93 (patch) | |
tree | 975d814151bd186cec546ad247730d63be6b09cb /src | |
parent | 8462fe2bbf2aac87e6eabddc805b3d3ec63c6376 (diff) |
i915g: Add assert to check for null pointer dereference.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i915/i915_state_emit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index a3d4e3b04e5..ecbcabb4403 100644 --- 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); |