summaryrefslogtreecommitdiff
path: root/tests/i915/gem_softpin.c
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-24 08:54:14 +0100
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2022-02-25 13:56:46 +0100
commit92972b3fa35dcaa752a6220582ce2a277eb4c7c1 (patch)
tree014b6e4defc005294be9b63f3a5d23e410a2e053 /tests/i915/gem_softpin.c
parent6546304ecf053b9c5ec278ee3c210d2c6d50a3a6 (diff)
lib/intel_allocator: Add safe alignment as a default
For DG2 and beyond regions alignment may vary so many tests would need to be rewritten to handle this constraint. As Ashutosh noticed most of tests can use safe alignment as a default. Adopt intel-allocator to use safe or user defined power-of-two alignment. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Suggested-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/gem_softpin.c')
-rw-r--r--tests/i915/gem_softpin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c
index 2778a90b..34fc9983 100644
--- a/tests/i915/gem_softpin.c
+++ b/tests/i915/gem_softpin.c
@@ -991,7 +991,7 @@ static void test_allocator_evict(int fd, const intel_ctx_t *ctx,
intel_allocator_multiprocess_start();
ahnd = intel_allocator_open_full(fd, 0, 0, size / 16,
INTEL_ALLOCATOR_RELOC,
- ALLOC_STRATEGY_NONE);
+ ALLOC_STRATEGY_NONE, 0);
intel_require_memory(count, BATCH_SIZE, CHECK_RAM);
intel_detect_and_clear_missed_interrupts(fd);
@@ -1038,7 +1038,7 @@ static void test_allocator_evict(int fd, const intel_ctx_t *ctx,
/* We need to open the allocator again in the new process */
ahnd = intel_allocator_open_full(fd, 0, 0, size / 16,
INTEL_ALLOCATOR_RELOC,
- ALLOC_STRATEGY_NONE);
+ ALLOC_STRATEGY_NONE, 0);
igt_until_timeout(timeout) {
submit(fd, gen, &execbuf, batches, count, ahnd);