<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 'intel_miptree_unmap_gtt':<br>
intel_mipmap_tree.c:777:34: warning: unused parameter 'map' [-Wunused-parameter]<br>
    struct intel_miptree_map *map,<br>
                                  ^<br>
intel_mipmap_tree.c:778:17: warning: unused parameter 'level' [-Wunused-parameter]<br>
    unsigned int level,<br>
                 ^<br>
intel_mipmap_tree.c:779:17: warning: unused parameter 'slice' [-Wunused-parameter]<br>
    unsigned int slice)<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 | 8 ++------<br>
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 ++------<br>
 2 files changed, 4 insertions(+), 12 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 0fcc2b1..307ad4d 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c<br>
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c<br>
@@ -771,11 +771,7 @@ intel_miptree_map_gtt(struct intel_context *intel,<br>
 }<br>
<br>
 static void<br>
-intel_miptree_unmap_gtt(struct intel_context *intel,<br>
-                       struct intel_mipmap_tree *mt,<br>
-                       struct intel_miptree_map *map,<br>
-                       unsigned int level,<br>
-                       unsigned int slice)<br>
+intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt)<br>
 {<br>
    intel_miptree_unmap_raw(mt);<br>
 }<br>
@@ -948,7 +944,7 @@ intel_miptree_unmap(struct intel_context *intel,<br>
    if (map->mt) {<br>
       intel_miptree_unmap_blit(intel, mt, map, level, slice);<br>
    } else {<br>
-      intel_miptree_unmap_gtt(intel, mt, map, level, slice);<br>
+      intel_miptree_unmap_gtt(mt);<br>
    }<br>
<br>
    intel_miptree_release_map(mt, level, slice);<br>
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c<br>
index f68aba2..61c49de 100644<br>
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c<br>
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c<br>
@@ -2128,11 +2128,7 @@ intel_miptree_map_gtt(struct brw_context *brw,<br>
 }<br>
<br>
 static void<br>
-intel_miptree_unmap_gtt(struct brw_context *brw,<br>
-                       struct intel_mipmap_tree *mt,<br>
-                       struct intel_miptree_map *map,<br>
-                       unsigned int level,<br>
-                       unsigned int slice)<br>
+intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt)<br>
 {<br>
    intel_miptree_unmap_raw(mt);<br>
 }<br>
@@ -2738,7 +2734,7 @@ intel_miptree_unmap(struct brw_context *brw,<br>
       intel_miptree_unmap_movntdqa(brw, mt, map, level, slice);<br>
 #endif<br>
    } else {<br>
-      intel_miptree_unmap_gtt(brw, mt, map, level, slice);<br>
+      intel_miptree_unmap_gtt(mt);<br>
    }<br>
<br>
    intel_miptree_release_map(mt, level, slice);<br>
<span class=""><font color="#888888">--<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></div><div class="gmail_extra">Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br></div></div>