Path: blob/21.2-virgl/src/intel/isl/isl_tiled_memcpy_normal.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*/303132#include "isl_tiled_memcpy.c"3334void35_isl_memcpy_linear_to_tiled(uint32_t xt1, uint32_t xt2,36uint32_t yt1, uint32_t yt2,37char *dst, const char *src,38uint32_t dst_pitch, int32_t src_pitch,39bool has_swizzling,40enum isl_tiling tiling,41isl_memcpy_type copy_type)42{43linear_to_tiled(xt1, xt2, yt1, yt2, dst, src, dst_pitch, src_pitch,44has_swizzling, tiling, copy_type);45}4647void48_isl_memcpy_tiled_to_linear(uint32_t xt1, uint32_t xt2,49uint32_t yt1, uint32_t yt2,50char *dst, const char *src,51int32_t dst_pitch, uint32_t src_pitch,52bool has_swizzling,53enum isl_tiling tiling,54isl_memcpy_type copy_type)55{56tiled_to_linear(xt1, xt2, yt1, yt2, dst, src, dst_pitch, src_pitch,57has_swizzling, tiling, copy_type);58}596061