GEM: Set validate index to keep the same buffer from being duped on the list.
authorEric Anholt <eric@anholt.net>
Mon, 5 May 2008 21:20:18 +0000 (14:20 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 5 May 2008 21:20:18 +0000 (14:20 -0700)
src/mesa/drivers/dri/intel/intel_bufmgr_gem.c

index fd161cbeb8ee3726d43bb829d7649c5773f5f306..ca0a92cfe844f189a1b3985832b3e402a292b8d1 100644 (file)
@@ -223,6 +223,7 @@ intel_add_validate_buffer(dri_bo *bo)
     }
 
     index = bufmgr_gem->validate_count;
+    bo_gem->validate_index = index;
     /* Fill in array entry */
     bufmgr_gem->validate_array[index].buffer_handle = bo_gem->gem_handle;
     bufmgr_gem->validate_array[index].relocation_count = bo_gem->reloc_count;