diff options
author | Eric Anholt <[email protected]> | 2008-05-13 11:30:18 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-05-13 11:30:18 -0700 |
commit | cba90d4a778ab5202f2f7547ad7ffeb84216d07b (patch) | |
tree | c5653b94c047cfaffbd198ecf15fe3516f8b4823 /src/mesa/drivers | |
parent | 145523ba3acb95a9ff390430a9e0a3fa958cae1b (diff) |
[GEM] Actually include the presumed offset in initial relocations.
This avoids kernel relocations for most batchbuffer relocs.
Diffstat (limited to 'src/mesa/drivers')
-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 2de08f6529e..a14f7830f98 100644 --- a/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/intel/intel_bufmgr_gem.c @@ -657,6 +657,7 @@ dri_gem_emit_reloc(dri_bo *bo, uint32_t read_domains, uint32_t write_domain, target_bo_gem->gem_handle; bo_gem->relocs[bo_gem->reloc_count].read_domains = read_domains; bo_gem->relocs[bo_gem->reloc_count].write_domain = write_domain; + bo_gem->relocs[bo_gem->reloc_count].presumed_offset = target_bo->offset; bo_gem->reloc_target_bo[bo_gem->reloc_count] = target_bo; dri_bo_reference(target_bo); |