1 /* 2 * Copyright (c) 2011-2013 Luc Verhaegen <libv@skynet.be> 3 * Copyright (c) 2018 Alyssa Rosenzweig <alyssa@rosenzweig.io> 4 * Copyright (c) 2018 Vasily Khoruzhick <anarsoul@gmail.com> 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 9 * the rights to use, copy, modify, merge, publish, distribute, sub license, 10 * and/or sell copies of the Software, and to permit persons to whom the 11 * Software is furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice (including the 14 * next paragraph) shall be included in all copies or substantial portions 15 * of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 * DEALINGS IN THE SOFTWARE. 24 * 25 */ 26 27 #ifndef H_PANFROST_TILING 28 #define H_PANFROST_TILING 29 30 #include <stdint.h> 31 #include <util/format/u_format.h> 32 33 void panfrost_load_tiled_image(void *dst, const void *src, 34 unsigned x, unsigned y, 35 unsigned w, unsigned h, 36 uint32_t dst_stride, 37 uint32_t src_stride, 38 enum pipe_format format); 39 40 void panfrost_store_tiled_image(void *dst, const void *src, 41 unsigned x, unsigned y, 42 unsigned w, unsigned h, 43 uint32_t dst_stride, 44 uint32_t src_stride, 45 enum pipe_format format); 46 47 #endif 48