diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-07-26 15:01:55 +0200 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-08-10 21:02:50 +0200 |
commit | cbdf3b1d3acc14da497259e6e8f6e0fd0632d8fd (patch) | |
tree | 58f77bb1b6cbbf931247380a4c1e709e6cc24760 /lib/intel_batchbuffer.c | |
parent | 662e9ff194b2e8872328183f4ac473e37e915644 (diff) |
lib/intel_batchbuffer: Try to avoid relocations in blitting
We're proposing not overlapping offsets in both blitter copying functions
so we can try to skip relocations.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r-- | lib/intel_batchbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 008dc78e..399d0e99 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -711,7 +711,7 @@ static void exec_blit(int fd, struct drm_i915_gem_execbuffer2 exec = { .buffers_ptr = to_user_pointer(objs), .buffer_count = count, - .flags = gen >= 6 ? I915_EXEC_BLT : 0, + .flags = gen >= 6 ? I915_EXEC_BLT : 0 | I915_EXEC_NO_RELOC, .rsvd1 = ctx, }; |