Update CONTEXT_PARAM for GTT_SIZE reporting

Add the new PARAM identifier for reporting the context's GTT size.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-10-19 11:36:17 +01:00
parent a22719358d
commit 5ec54d8a21
2 changed files with 4 additions and 3 deletions

View File

@ -91,6 +91,7 @@ struct local_i915_gem_context_param {
uint64_t param;
#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);

View File

@ -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;