Initialize bufmgr_gem->validate_array[i].offset.
authorEric Anholt <eric@anholt.net>
Mon, 5 May 2008 20:45:03 +0000 (13:45 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 5 May 2008 20:45:45 +0000 (13:45 -0700)
This is just cosmetic, to produce less scary values when the ioctl fails and
doesn't return values there.

src/mesa/drivers/dri/intel/intel_bufmgr_gem.c

index 37e75081ecbb7356b568cb2342f13abb60d842c9..0b136b19da184649176e468b92ddec0ecb12eff1 100644 (file)
@@ -228,6 +228,7 @@ intel_add_validate_buffer(dri_bo *bo)
     bufmgr_gem->validate_array[index].relocation_count = bo_gem->reloc_count;
     bufmgr_gem->validate_array[index].relocs_ptr = (uintptr_t)bo_gem->relocs;
     bufmgr_gem->validate_array[index].alignment = 0;
+    bufmgr_gem->validate_array[index].buffer_offset = 0;
     bufmgr_gem->validate_bo[index] = bo;
     dri_bo_reference(bo);
     bufmgr_gem->validate_count++;