[igt-dev] [PATCH i-g-t] intel/xe_exec_store.c: Fix the check for num of placements in store_all.

sai.gowtham.ch at intel.com sai.gowtham.ch at intel.com
Fri Oct 27 13:17:46 UTC 2023


From: Sai Gowtham Ch <sai.gowtham.ch at intel.com>

Intension is to run this test on GT's with supported engines and whose
number of placements expected to be atleast one.

Signed-off-by: Sai Gowtham Ch <sai.gowtham.ch at intel.com>
---
 tests/intel/xe_exec_store.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_exec_store.c b/tests/intel/xe_exec_store.c
index 90684b8cb..0b084eb10 100644
--- a/tests/intel/xe_exec_store.c
+++ b/tests/intel/xe_exec_store.c
@@ -147,7 +147,8 @@ static void store_all(int fd, int gt, int class)
 		eci[num_placements++] = *hwe;
 	}
 
-	igt_require(num_placements);
+	if (num_placements < 1)
+		return;
 
 	for (i = 0; i < num_placements; i++) {
 		struct drm_xe_exec_queue_create create = {
-- 
2.39.1



More information about the igt-dev mailing list