<div dir="ltr">I think I had more clear patch in bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=98090">https://bugs.freedesktop.org/show_bug.cgi?id=98090</a></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 9, 2016 at 6:54 PM Armin K <<a href="mailto:krejzi@email.com">krejzi@email.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">libdrm-2.4.71 contains drm_intel_get_pooled_eu and<br class="gmail_msg">
drm_intel_get_min_eu_in_pool with different<br class="gmail_msg">
signatures.<br class="gmail_msg">
<br class="gmail_msg">
v2:<br class="gmail_msg">
<br class="gmail_msg">
- Fix conditional not to include 0.<br class="gmail_msg">
<br class="gmail_msg">
Signed-off-by: Armin K <<a href="mailto:krejzi@email.com" class="gmail_msg" target="_blank">krejzi@email.com</a>><br class="gmail_msg">
---<br class="gmail_msg">
src/intel/intel_driver.c | 9 ++++++---<br class="gmail_msg">
1 file changed, 6 insertions(+), 3 deletions(-)<br class="gmail_msg">
<br class="gmail_msg">
diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c<br class="gmail_msg">
index f503b55..cf35f40 100644<br class="gmail_msg">
--- a/src/intel/intel_driver.c<br class="gmail_msg">
+++ b/src/intel/intel_driver.c<br class="gmail_msg">
@@ -958,13 +958,16 @@ intel_update_device_info(cl_device_id device)<br class="gmail_msg">
#ifdef HAS_POOLED_EU<br class="gmail_msg">
/* BXT pooled eu, 3*6 to 2*9, like sub slice count is 2 */<br class="gmail_msg">
unsigned int has_pooled_eu = 0;<br class="gmail_msg">
- if(!drm_intel_get_pooled_eu(driver->fd, &has_pooled_eu) && has_pooled_eu)<br class="gmail_msg">
+ if (drm_intel_get_pooled_eu(driver->fd) > 0) {<br class="gmail_msg">
device->sub_slice_count = 2;<br class="gmail_msg">
+ has_pooled_eu = 1;<br class="gmail_msg">
+ }<br class="gmail_msg">
<br class="gmail_msg">
#ifdef HAS_MIN_EU_IN_POOL<br class="gmail_msg">
- unsigned int min_eu;<br class="gmail_msg">
+ int min_eu;<br class="gmail_msg">
/* for fused down 2x6 devices, beignet don't support. */<br class="gmail_msg">
- if (has_pooled_eu && !drm_intel_get_min_eu_in_pool(driver->fd, &min_eu)) {<br class="gmail_msg">
+ if (has_pooled_eu) {<br class="gmail_msg">
+ min_eu = drm_intel_get_min_eu_in_pool(driver->fd);<br class="gmail_msg">
assert(min_eu == 9); //don't support fuse down device.<br class="gmail_msg">
}<br class="gmail_msg">
#endif //HAS_MIN_EU_IN_POOL<br class="gmail_msg">
--<br class="gmail_msg">
2.10.1<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Beignet mailing list<br class="gmail_msg">
<a href="mailto:Beignet@lists.freedesktop.org" class="gmail_msg" target="_blank">Beignet@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/beignet" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/beignet</a><br class="gmail_msg">
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">-Igor Gnatenko</p>
</div></div>