summaryrefslogtreecommitdiff
path: root/tests/i915/gem_ctx_create.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2022-05-21 10:57:02 -0700
committerRob Clark <robdclark@chromium.org>2022-05-31 14:05:16 -0700
commit5857938d4d3539deb43ecb03604b7c664b75e57d (patch)
treecdf66e4b2ed29d192503e81291dd35cf0ae38fbc /tests/i915/gem_ctx_create.c
parent9ce1c981ab12b2036cce6eeaa725e724c8e51668 (diff)
igt: Promote/rename OS helpers
Promote intel_os.c helpers to igt_os.c, so that I can re-use them for some additional msm tests. Just big churny rename, no functional change. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_create.c')
-rw-r--r--tests/i915/gem_ctx_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_ctx_create.c b/tests/i915/gem_ctx_create.c
index 814beb4a..39f070af 100644
--- a/tests/i915/gem_ctx_create.c
+++ b/tests/i915/gem_ctx_create.c
@@ -283,9 +283,9 @@ static unsigned context_size(int fd)
static uint64_t total_avail_mem(unsigned mode)
{
- uint64_t total = intel_get_avail_ram_mb();
+ uint64_t total = igt_get_avail_ram_mb();
if (mode & CHECK_SWAP)
- total += intel_get_total_swap_mb();
+ total += igt_get_total_swap_mb();
return total << 20;
}