diff options
author | Chris Wilson <[email protected]> | 2018-04-30 10:25:42 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-04-30 14:06:23 -0700 |
commit | b3ad6f5ca69749f71987be086a97e6442bbe05fb (patch) | |
tree | a8cae8438165a71de6eb1c1e9cb3e8b227f95124 /src/mesa/drivers/dri/i965/intel_mipmap_tree.c | |
parent | f348d07a62ca9200ce7d8636942cb882fbbd471d (diff) |
i965: Move unmap_movntdqa before map_movntdqa
Reorder code to avoid a forward declaration in the next patch.
Signed-off-by: Chris Wilson <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 22947c202c2..0548ec2d8f5 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -3194,6 +3194,18 @@ fail: */ #if defined(USE_SSE41) static void +intel_miptree_unmap_movntdqa(struct brw_context *brw, + struct intel_mipmap_tree *mt, + struct intel_miptree_map *map, + unsigned int level, + unsigned int slice) +{ + _mesa_align_free(map->buffer); + map->buffer = NULL; + map->ptr = NULL; +} + +static void intel_miptree_map_movntdqa(struct brw_context *brw, struct intel_mipmap_tree *mt, struct intel_miptree_map *map, @@ -3251,18 +3263,6 @@ intel_miptree_map_movntdqa(struct brw_context *brw, intel_miptree_unmap_raw(mt); } - -static void -intel_miptree_unmap_movntdqa(struct brw_context *brw, - struct intel_mipmap_tree *mt, - struct intel_miptree_map *map, - unsigned int level, - unsigned int slice) -{ - _mesa_align_free(map->buffer); - map->buffer = NULL; - map->ptr = NULL; -} #endif static void |