summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorDominik Grzegorzek <dominik.grzegorzek@intel.com>2020-10-23 09:30:09 +0200
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2021-04-13 15:44:37 +0200
commit1e0c26584a1f23f63fbb71fededba0109d005e69 (patch)
tree026c137d40eed93d76937ff941003962c859e81a /lib/intel_batchbuffer.c
parent911b17f3d4f52cde4aad99374fc504fecf141256 (diff)
lib/intel_allocator_simple: Add simple allocator
Simple allocator borrowed from Mesa adopted for IGT use. From default we prefer an allocation from the top of vm address space (we can catch addressing issues pro-actively). When function intel_allocator_simple_create() is used we exclude last page as HW tends to hang on the render engine when full 3D pipeline is executed from the last page. For more control of vm range user can specify range using intel_allocator_simple_create_full() (with the respect of the gtt size). v2: fix size calculation (don't allow to subtract number which can be negative - as we got for canonical addresses with 47 bit set - Jason) v3: change to new igt_map implementation, add refcounts in allocator (according to Jason review comments) v4: return ALLOC_INVALID_ADDRESS instead of assert for failed allocation Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.c')
0 files changed, 0 insertions, 0 deletions