mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
lib/os: Pust igt_require into memory check function
More in line with the usual igt pattern and simplifies the code - every called just wrapped it in igt_require. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -169,7 +169,7 @@ igt_simple_main
|
||||
(long)intel_get_avail_ram_mb(),
|
||||
(long)intel_get_total_ram_mb(),
|
||||
(long)intel_get_total_swap_mb());
|
||||
igt_require(intel_check_memory(count, 1024*1024, CHECK_RAM | CHECK_SWAP));
|
||||
intel_require_memory(count, 1024*1024, CHECK_RAM | CHECK_SWAP);
|
||||
|
||||
for (n = 0; n < count; n++) {
|
||||
bo_handles[n] = create_bo_and_fill(fd);
|
||||
|
||||
Reference in New Issue
Block a user