[igt-dev] [PATCH 1/7] lib/amdgpu: increase number of resources

vitaly.prosyak at amd.com vitaly.prosyak at amd.com
Thu Jul 21 00:39:16 UTC 2022


From: Vitaly Prosyak <vitaly.prosyak at amd.com>

Add arrays of bo's for VRAM and GTT.
Eviction test uses 4 bo resources.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
---
 lib/amdgpu/amd_ip_blocks.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/amdgpu/amd_ip_blocks.h b/lib/amdgpu/amd_ip_blocks.h
index cb7d14747..c16ad1794 100644
--- a/lib/amdgpu/amd_ip_blocks.h
+++ b/lib/amdgpu/amd_ip_blocks.h
@@ -58,11 +58,13 @@ struct amdgpu_ring_context {
 
 	amdgpu_bo_handle bo;
 	amdgpu_bo_handle bo2;
+	amdgpu_bo_handle boa_vram[2];
+	amdgpu_bo_handle boa_gtt[2];
 
 	amdgpu_context_handle context_handle;
 	struct drm_amdgpu_info_hw_ip hw_ip_info;  /* result of amdgpu_query_hw_ip_info */
 
-	amdgpu_bo_handle resources[2]; /* amdgpu_bo_alloc_and_map */
+	amdgpu_bo_handle resources[4]; /* amdgpu_bo_alloc_and_map */
 	amdgpu_va_handle va_handle;    /* amdgpu_bo_alloc_and_map */
 	amdgpu_va_handle va_handle2;   /* amdgpu_bo_alloc_and_map */
 
-- 
2.25.1



More information about the igt-dev mailing list