Module: Mesa
Branch: master
Commit: 359624142dc914b35a56c167d32bed2a5d17cb2f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=359624142dc914b35a56c167d32bed2a5d17cb2f

Author: Chris Wilson <[email protected]>
Date:   Mon Apr 30 10:25:40 2018 -0700

i965: Move unmap_gtt before map_gtt

Reorder code to avoid a forward declaration in the next patch.

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>

---

 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c 
b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 93a91fd808..ccd5b4bf02 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -3066,6 +3066,12 @@ intel_miptree_unmap_raw(struct intel_mipmap_tree *mt)
 }
 
 static void
+intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt)
+{
+   intel_miptree_unmap_raw(mt);
+}
+
+static void
 intel_miptree_map_gtt(struct brw_context *brw,
                      struct intel_mipmap_tree *mt,
                      struct intel_miptree_map *map,
@@ -3113,12 +3119,6 @@ intel_miptree_map_gtt(struct brw_context *brw,
 }
 
 static void
-intel_miptree_unmap_gtt(struct intel_mipmap_tree *mt)
-{
-   intel_miptree_unmap_raw(mt);
-}
-
-static void
 intel_miptree_map_blit(struct brw_context *brw,
                       struct intel_mipmap_tree *mt,
                       struct intel_miptree_map *map,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to