<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 7:18 PM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">From: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
<br>
intel_mipmap_tree.c: In function 'old_intel_miptree_unmap_raw':<br>
intel_mipmap_tree.c:726:51: warning: unused parameter 'intel' [-Wunused-parameter]<br>
 intel_miptree_unmap_raw(struct intel_context *intel,<br>
                                                   ^<br>
<br>
Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
---<br>
 src/mesa/drivers/dri/i915/intel_mipmap_tree.c  | 7 +++----<br>
 src/mesa/drivers/dri/i915/intel_mipmap_tree.h  | 3 +--<br>
 src/mesa/drivers/dri/i915/intel_tex_subimage.c | 2 +-<br>
 3 files changed, 5 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c<br>
index 1aa06c1..0fcc2b1 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c<br>
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c<br>
@@ -723,8 +723,7 @@ intel_miptree_map_raw(struct intel_context *intel, struct intel_mipmap_tree *mt)<br>
 }<br>
<br>
 void<br>
-intel_miptree_unmap_raw(struct intel_context *intel,<br>
-                        struct intel_mipmap_tree *mt)<br>
+intel_miptree_unmap_raw(struct intel_mipmap_tree *mt)<br>
 {<br>
    drm_intel_bo_unmap(mt->region->bo);<br>
 }<br>
@@ -778,7 +777,7 @@ intel_miptree_unmap_gtt(struct intel_context *intel,<br>
                        unsigned int level,<br>
                        unsigned int slice)<br>
 {<br>
-   intel_miptree_unmap_raw(intel, mt);<br>
+   intel_miptree_unmap_raw(mt);<br>
 }<br>
<br>
 static void<br>
@@ -833,7 +832,7 @@ intel_miptree_unmap_blit(struct intel_context *intel,<br>
 {<br>
    struct gl_context *ctx = &intel->ctx;<br>
<br>
-   intel_miptree_unmap_raw(intel, map->mt);<br>
+   intel_miptree_unmap_raw(map->mt);<br>
<br>
    if (map->mode & GL_MAP_WRITE_BIT) {<br>
       bool ok = intel_miptree_blit(intel,<br>
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
index f6ed717..aab30ed 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
@@ -348,8 +348,7 @@ void i945_miptree_layout(struct intel_mipmap_tree *mt);<br>
 void *intel_miptree_map_raw(struct intel_context *intel,<br>
                             struct intel_mipmap_tree *mt);<br>
<br>
-void intel_miptree_unmap_raw(struct intel_context *intel,<br>
-                             struct intel_mipmap_tree *mt);<br>
+void intel_miptree_unmap_raw(struct intel_mipmap_tree *mt);<br>
<br>
 void<br>
 intel_miptree_map(struct intel_context *intel,<br>
diff --git a/src/mesa/drivers/dri/i915/intel_tex_subimage.c b/src/mesa/drivers/dri/i915/intel_tex_subimage.c<br>
index f11ef2e..4083d69 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_tex_subimage.c<br>
+++ b/src/mesa/drivers/dri/i915/intel_tex_subimage.c<br>
@@ -102,7 +102,7 @@ intel_blit_texsubimage(struct gl_context * ctx,<br>
       _mesa_error(ctx, GL_OUT_OF_MEMORY, "intelTexSubImage");<br>
    }<br>
<br>
-   intel_miptree_unmap_raw(intel, temp_mt);<br>
+   intel_miptree_unmap_raw(temp_mt);<br>
<br>
    bool ret;<br>
<span class=""><font color="#888888"><br>
--<br>
2.1.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br>Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br></div></div>