mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 15:26:21 +00:00
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:
parent
a22719358d
commit
5ec54d8a21
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user