From 359624142dc914b35a56c167d32bed2a5d17cb2f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 30 Apr 2018 10:25:40 -0700 Subject: [PATCH] i965: Move unmap_gtt before map_gtt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reorder code to avoid a forward declaration in the next patch. Signed-off-by: Chris Wilson Reviewed-by: Samuel Iglesias Gonsálvez Acked-by: Kenneth Graunke --- 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 93a91fd8081..ccd5b4bf023 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -3065,6 +3065,12 @@ intel_miptree_unmap_raw(struct intel_mipmap_tree *mt) brw_bo_unmap(mt->bo); } +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, @@ -3112,12 +3118,6 @@ intel_miptree_map_gtt(struct brw_context *brw, x, y, map->ptr, map->stride); } -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, -- 2.30.2