intel: some initialization for dri_bufmgr_ttm
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 Jan 2008 06:22:23 +0000 (14:22 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 Jan 2008 06:22:23 +0000 (14:22 +0800)
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c

index bd37efa98794b328e8fb866dfe8bf6b8bb116b1d..bbb2412a49a215c1f1e951f1aa30e52843bd7d7a 100644 (file)
@@ -835,6 +835,8 @@ intel_bufmgr_ttm_init(int fd, unsigned int fence_type,
     bufmgr_ttm->fd = fd;
     bufmgr_ttm->fence_type = fence_type;
     bufmgr_ttm->fence_type_flush = fence_type_flush;
+    bufmgr_ttm->cached_reloc_buf = NULL;
+    bufmgr_ttm->cached_reloc_buf_data = NULL;
 
     /* lets go with one relocation per every four dwords - purely heuristic */
     bufmgr_ttm->max_relocs = batch_size / sizeof(uint32_t) / 4;