mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
i965: Move unmap_movntdqa before map_movntdqa
Reorder code to avoid a forward declaration in the next patch. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f348d07a62
commit
b3ad6f5ca6
1 changed files with 12 additions and 12 deletions
|
|
@ -3193,6 +3193,18 @@ fail:
|
|||
* "Map" a buffer by copying it to an untiled temporary using MOVNTDQA.
|
||||
*/
|
||||
#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,
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue