From: Eric Anholt Date: Tue, 13 May 2008 18:30:18 +0000 (-0700) Subject: [GEM] Actually include the presumed offset in initial relocations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cba90d4a778ab5202f2f7547ad7ffeb84216d07b;p=mesa.git [GEM] Actually include the presumed offset in initial relocations. This avoids kernel relocations for most batchbuffer relocs. --- 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);