summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-05-05 13:45:03 -0700
committerEric Anholt <[email protected]>2008-05-05 13:45:45 -0700
commit5290ec4756eb33ec27e06bb68d64c33472276ac3 (patch)
treea670fd2beaa1104ba57bd8749e79f4b51acccfe5 /src/mesa/drivers/dri/intel
parent1f810b85b1e9393c8e606d2f28250cbb19cf916b (diff)
Initialize bufmgr_gem->validate_array[i].offset.
This is just cosmetic, to produce less scary values when the ioctl fails and doesn't return values there.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_bufmgr_gem.c1
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 37e75081ecb..0b136b19da1 100644
--- a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
+++ b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c
@@ -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++;