[igt-dev] [PATCH i-g-t] i915/gem_ppgtt: Swap args to intel_require_memory()
Chris Wilson
chris at chris-wilson.co.uk
Mon Mar 11 14:18:01 UTC 2019
It should be (count, size)!
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_ppgtt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c
index 9409bef14..ae9869c2c 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);
--
2.20.1
More information about the igt-dev
mailing list