From e85613b47c3ca40eeecd436dab3d6c660298d559 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 19 Mar 2016 14:01:38 +0000 Subject: igt/gem_concurrent_blit: dmabuf requires twice the number of files In order to keep the dmabuf mmap around whilst we keep the object alive, we need a file descriptor for each. Check that the VFS supports that many fd. Signed-off-by: Chris Wilson --- lib/igt_aux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index eabeefd2..101fad12 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -97,6 +97,7 @@ uint64_t intel_get_total_swap_mb(void); int __intel_check_memory(uint64_t count, uint64_t size, unsigned mode, uint64_t *out_required, uint64_t *out_total); void intel_require_memory(uint64_t count, uint64_t size, unsigned mode); +void intel_require_files(uint64_t count); #define CHECK_RAM 0x1 #define CHECK_SWAP 0x2 -- cgit v1.2.3