diff options
author | Eric Anholt <eric@anholt.net> | 2008-05-05 14:20:18 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-05 14:20:18 -0700 |
commit | 01d1a292bf53ab949cf2075f18986b58fa468a61 (patch) | |
tree | b461cd059b6132c82efc81bf51d9b89c37907d5a /src/mesa/drivers/dri/intel | |
parent | be59d52ca0c0a5b93963297d596972fccb792b69 (diff) |
GEM: Set validate index to keep the same buffer from being duped on the list.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_bufmgr_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c index fd161cbeb8..ca0a92cfe8 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; |