<div dir="ltr">Whoops, forgot to add the description. This is another trivial patch for ilo, all the frameworks were already implemented. In hindsight, I should have included this with my previous patch.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 4:08 PM, Nick Sarnie <span dir="ltr"><<a href="mailto:commendsarnex@gmail.com" target="_blank">commendsarnex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">diff --git a/src/gallium/targets/pipe-loader/pipe_i965.c b/src/gallium/targets/pipe-loader/pipe_i965.c<br>
index f4d447c..810dffc 100644<br>
--- a/src/gallium/targets/pipe-loader/pipe_i965.c<br>
+++ b/src/gallium/targets/pipe-loader/pipe_i965.c<br>
@@ -21,6 +21,27 @@ create_screen(int fd)<br>
<br>
    return screen;<br>
 }<br>
+static const struct drm_conf_ret throttle_ret = {<br>
+   .type = DRM_CONF_INT,<br>
+   .val.val_int = 2,<br>
+};<br>
<br>
+static const struct drm_conf_ret share_fd_ret = {<br>
+   .type = DRM_CONF_BOOL,<br>
+   .val.val_int = true,<br>
+};<br>
+<br>
+static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)<br>
+{<br>
+   switch (conf) {<br>
+   case DRM_CONF_THROTTLE:<br>
+      return &throttle_ret;<br>
+   case DRM_CONF_SHARE_FD:<br>
+      return &share_fd_ret;<br>
+   default:<br>
+      break;<br>
+   }<br>
+   return NULL;<br>
+}<br>
 PUBLIC<br>
-DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, NULL)<br>
+DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, drm_configuration)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
</font></span></blockquote></div><br></div>