[igt-dev] [PATCH i-g-t] lib/i915: Fix gem_has_execlists to match description
Ashutosh Dixit
ashutosh.dixit at intel.com
Fri Oct 15 23:38:45 UTC 2021
Driver is using execlists if it is not using GuC submission.
GEM_SUBMISSION_EXECLISTS flag indicates if execlist submission is
available, not if it is being used by the driver.
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
lib/i915/gem_submission.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/i915/gem_submission.c b/lib/i915/gem_submission.c
index 2627b802cfb..4312a73bd85 100644
--- a/lib/i915/gem_submission.c
+++ b/lib/i915/gem_submission.c
@@ -153,7 +153,7 @@ bool gem_has_semaphores(int fd)
*/
bool gem_has_execlists(int fd)
{
- return gem_submission_method(fd) & GEM_SUBMISSION_EXECLISTS;
+ return !gem_has_guc_submission(fd);
}
/**
--
2.33.0
More information about the igt-dev
mailing list