mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-03 19:47:15 +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 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);
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user