From 34b87e110fbe0d33273a1669c8b5fc6c3a891218 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 11 Mar 2019 14:17:04 +0000 Subject: i915/gem_ppgtt: Swap args to intel_require_memory() It should be (count, size)! Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala --- tests/i915/gem_ppgtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/i915') diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c index 9409bef1..ae9869c2 100644 --- a/tests/i915/gem_ppgtt.c +++ b/tests/i915/gem_ppgtt.c @@ -97,7 +97,7 @@ static void fork_rcs_copy(int timeout, uint32_t final, mem_per_child = SIZE; if (flags & CREATE_CONTEXT) mem_per_child += 2 * 128 * 1024; /* rough context sizes */ - intel_require_memory(mem_per_child, count, CHECK_RAM); + intel_require_memory(count, mem_per_child, CHECK_RAM); for (int child = 0; child < count; child++) { int fd = drm_open_driver(DRIVER_INTEL); -- cgit v1.2.3