[igt-dev] [RFT i-g-t] lib/intel_batchbuffer: Gen9 media spin function can work on newer gens?
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Mon Feb 25 11:49:42 UTC 2019
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
... lets see ...
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109288
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: Tony Ye <tony.ye at intel.com>
---
lib/intel_batchbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 22697c94fb13..b2169a1aa145 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -920,7 +920,7 @@ igt_media_spinfunc_t igt_get_media_spinfunc(int devid)
{
igt_media_spinfunc_t spin = NULL;
- if (IS_GEN9(devid))
+ if (intel_gen(devid) >= 9)
spin = gen9_media_spinfunc;
else if (IS_GEN8(devid))
spin = gen8_media_spinfunc;
--
2.19.1
More information about the igt-dev
mailing list