From: Eric Anholt Date: Mon, 5 May 2008 21:20:18 +0000 (-0700) Subject: GEM: Set validate index to keep the same buffer from being duped on the list. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01d1a292bf53ab949cf2075f18986b58fa468a61;p=mesa.git GEM: Set validate index to keep the same buffer from being duped on the list. --- diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c index fd161cbeb8e..ca0a92cfe84 100644 --- a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c @@ -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;