diff options
author | Eric Anholt <eric@anholt.net> | 2008-05-13 11:30:18 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-13 11:30:18 -0700 |
commit | cba90d4a778ab5202f2f7547ad7ffeb84216d07b (patch) | |
tree | c5653b94c047cfaffbd198ecf15fe3516f8b4823 /src/mesa | |
parent | 145523ba3acb95a9ff390430a9e0a3fa958cae1b (diff) | |
download | external_mesa3d-cba90d4a778ab5202f2f7547ad7ffeb84216d07b.zip external_mesa3d-cba90d4a778ab5202f2f7547ad7ffeb84216d07b.tar.gz external_mesa3d-cba90d4a778ab5202f2f7547ad7ffeb84216d07b.tar.bz2 |
[GEM] Actually include the presumed offset in initial relocations.
This avoids kernel relocations for most batchbuffer relocs.
Diffstat (limited to 'src/mesa')
-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 2de08f6..a14f783 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); |