[PATCH i-g-t] lib/intel_compute: Fix incorrect check for opencl kernel support

janga.rahul.kumar at intel.com janga.rahul.kumar at intel.com
Wed Jan 10 06:53:53 UTC 2024


From: Janga Rahul Kumar <janga.rahul.kumar at intel.com>

Skip compute tests on platforms which doesn't have a opencl
kernel defined in the library.

Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
---
 lib/intel_compute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 1f1c79fd3..b092e5d85 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1430,7 +1430,7 @@ static bool __run_intel_compute_kernel(int fd,
 		kernels++;
 	}
 	if (!kernels->kernel)
-		return 1;
+		return 0;
 
 	intel_compute_batches[batch].compute_exec(fd, kernels->kernel,
 						  kernels->size, eci);
-- 
2.25.1



More information about the igt-dev mailing list