From 5ec54d8a2165f5095ec70b9bdb9ae583fead39c2 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 19 Oct 2015 11:36:17 +0100 Subject: [PATCH] Update CONTEXT_PARAM for GTT_SIZE reporting Add the new PARAM identifier for reporting the context's GTT size. Signed-off-by: Chris Wilson --- lib/ioctl_wrappers.h | 5 +++-- tests/gem_ctx_param_basic.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index 7505acbe..e575bb8d 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -89,8 +89,9 @@ struct local_i915_gem_context_param { uint32_t context; uint32_t size; uint64_t param; -#define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 -#define LOCAL_CONTEXT_PARAM_NO_ZEROMAP 0x2 +#define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 +#define LOCAL_CONTEXT_PARAM_NO_ZEROMAP 0x2 +#define LOCAL_CONTEXT_PARAM_GTT_SIZE 0x3 uint64_t value; }; void gem_context_require_ban_period(int fd); diff --git a/tests/gem_ctx_param_basic.c b/tests/gem_ctx_param_basic.c index 45a351b8..94245ce0 100644 --- a/tests/gem_ctx_param_basic.c +++ b/tests/gem_ctx_param_basic.c @@ -150,7 +150,7 @@ igt_main /* NOTE: This testcase intentionally tests for the next free parameter * to catch ABI extensions. Don't "fix" this testcase without adding all * the tests for the new param first. */ - ctx_param.param = LOCAL_CONTEXT_PARAM_NO_ZEROMAP + 1; + ctx_param.param = LOCAL_CONTEXT_PARAM_GTT_SIZE + 1; igt_subtest("invalid-param-get") { ctx_param.context = ctx;