Path: blob/21.2-virgl/src/intel/isl/isl_tiled_memcpy_sse41.c
4547 views
/*1* Mesa 3-D graphics library2*3* Copyright 2012 Intel Corporation4* Copyright 2013 Google5*6* Permission is hereby granted, free of charge, to any person obtaining a7* copy of this software and associated documentation files (the8* "Software"), to deal in the Software without restriction, including9* without limitation the rights to use, copy, modify, merge, publish,10* distribute, sublicense, and/or sell copies of the Software, and to11* permit persons to whom the Software is furnished to do so, subject to12* the following conditions:13*14* The above copyright notice and this permission notice (including the15* next paragraph) shall be included in all copies or substantial portions16* of the Software.17*18* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS19* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF20* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.21* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR22* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,23* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE24* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.25*26* Authors:27* Chad Versace <[email protected]>28* Frank Henigman <[email protected]>29*/3031#define INLINE_SSE413233#include "isl_tiled_memcpy.c"3435void36_isl_memcpy_linear_to_tiled_sse41(uint32_t xt1, uint32_t xt2,37uint32_t yt1, uint32_t yt2,38char *dst, const char *src,39uint32_t dst_pitch, int32_t src_pitch,40bool has_swizzling,41enum isl_tiling tiling,42isl_memcpy_type copy_type)43{44linear_to_tiled(xt1, xt2, yt1, yt2, dst, src, dst_pitch, src_pitch,45has_swizzling, tiling, copy_type);46}4748void49_isl_memcpy_tiled_to_linear_sse41(uint32_t xt1, uint32_t xt2,50uint32_t yt1, uint32_t yt2,51char *dst, const char *src,52int32_t dst_pitch, uint32_t src_pitch,53bool has_swizzling,54enum isl_tiling tiling,55isl_memcpy_type copy_type)56{57tiled_to_linear(xt1, xt2, yt1, yt2, dst, src, dst_pitch, src_pitch,58has_swizzling, tiling, copy_type);59}606162