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

@ -89,8 +89,9 @@ struct local_i915_gem_context_param {
uint32_t context; uint32_t context;
uint32_t size; uint32_t size;
uint64_t param; uint64_t param;
#define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1 #define LOCAL_CONTEXT_PARAM_BAN_PERIOD 0x1
#define LOCAL_CONTEXT_PARAM_NO_ZEROMAP 0x2 #define LOCAL_CONTEXT_PARAM_NO_ZEROMAP 0x2
#define LOCAL_CONTEXT_PARAM_GTT_SIZE 0x3
uint64_t value; uint64_t value;
}; };
void gem_context_require_ban_period(int fd); 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 /* NOTE: This testcase intentionally tests for the next free parameter
* to catch ABI extensions. Don't "fix" this testcase without adding all * to catch ABI extensions. Don't "fix" this testcase without adding all
* the tests for the new param first. */ * 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") { igt_subtest("invalid-param-get") {
ctx_param.context = ctx; ctx_param.context = ctx;