Path: blob/21.2-virgl/src/panfrost/shared/pan_tiling.h
4560 views
/*1* Copyright (c) 2011-2013 Luc Verhaegen <[email protected]>2* Copyright (c) 2018 Alyssa Rosenzweig <[email protected]>3* Copyright (c) 2018 Vasily Khoruzhick <[email protected]>4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the "Software"),7* to deal in the Software without restriction, including without limitation8* the rights to use, copy, modify, merge, publish, distribute, sub license,9* and/or sell copies of the Software, and to permit persons to whom the10* Software is furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial portions14* of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL19* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING21* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER22* DEALINGS IN THE SOFTWARE.23*24*/2526#ifndef H_PANFROST_TILING27#define H_PANFROST_TILING2829#include <stdint.h>30#include <util/format/u_format.h>3132void panfrost_load_tiled_image(void *dst, const void *src,33unsigned x, unsigned y,34unsigned w, unsigned h,35uint32_t dst_stride,36uint32_t src_stride,37enum pipe_format format);3839void panfrost_store_tiled_image(void *dst, const void *src,40unsigned x, unsigned y,41unsigned w, unsigned h,42uint32_t dst_stride,43uint32_t src_stride,44enum pipe_format format);4546#endif474849