batch: Specify number of relocations to accommodate
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 30 Aug 2014 10:44:51 +0000 (11:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 30 Aug 2014 10:44:51 +0000 (11:44 +0100)
commit10552b5ca6c193e0c696e96c9f5e0d6142f4d8ee
tree3444d7c434189df481759c8419c6c092155fc872
parent255bade1ea98e642fe6d01c9dee8d5e8661bd816
batch: Specify number of relocations to accommodate

Since relocations are variable size, depending upon generation, it is
easier to handle the resizing of the batch request inside the
BEGIN_BATCH macro. This still leaves us with having to resize commands
in a few places - which still need adaption for gen8+.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
45 files changed:
benchmarks/intel_upload_blit_large.c
benchmarks/intel_upload_blit_large_gtt.c
benchmarks/intel_upload_blit_large_map.c
benchmarks/intel_upload_blit_small.c
lib/intel_batchbuffer.c
lib/intel_batchbuffer.h
tests/drm_vma_limiter_cached.c
tests/gem_bad_address.c
tests/gem_bad_batch.c
tests/gem_bad_blit.c
tests/gem_caching.c
tests/gem_cs_prefetch.c
tests/gem_double_irq_loop.c
tests/gem_dummy_reloc_loop.c
tests/gem_exec_bad_domains.c
tests/gem_fenced_exec_thrash.c
tests/gem_hang.c
tests/gem_hangcheck_forcewake.c
tests/gem_multi_bsd_sync_loop.c
tests/gem_non_secure_batch.c
tests/gem_partial_pwrite_pread.c
tests/gem_persistent_relocs.c
tests/gem_pipe_control_store_loop.c
tests/gem_reloc_vs_gpu.c
tests/gem_ring_sync_loop.c
tests/gem_ringfill.c
tests/gem_set_tiling_vs_blt.c
tests/gem_storedw_loop_blt.c
tests/gem_storedw_loop_bsd.c
tests/gem_storedw_loop_render.c
tests/gem_storedw_loop_vebox.c
tests/gem_stress.c
tests/gem_tiled_partial_pwrite_pread.c
tests/gem_unfence_active_buffers.c
tests/gem_unref_active_buffers.c
tests/gem_wait_render_timeout.c
tests/gem_write_read_ring_switch.c
tests/kms_fbc_crc.c
tests/kms_fence_pin_leak.c
tests/kms_flip.c
tests/kms_mmio_vs_cs_flip.c
tests/kms_psr_sink_crc.c
tests/pm_rps.c
tests/prime_nv_pcopy.c
tools/intel_perf_counters.c