diff --git a/src/panfrost/shared/pan_tiling.h b/src/panfrost/shared/pan_tiling.h index d8591e6dbdd..5e35fe8dfc1 100644 --- a/src/panfrost/shared/pan_tiling.h +++ b/src/panfrost/shared/pan_tiling.h @@ -30,6 +30,19 @@ #include #include +/** + * Load a rectangular region from a tiled image to a linear staging image. + * + * @dst Linear destination + * @src Tiled source + * @x Region of interest of source in pixels, aligned to block size + * @y Region of interest of source in pixels, aligned to block size + * @z Region of interest of source in pixels, aligned to block size + * @w Region of interest of source in pixels, aligned to block size + * @dst_stride Stride in bytes of linear destination + * @src_stride Stride in bytes of tiled source + * @format Format of the source and destination image + */ void panfrost_load_tiled_image(void *dst, const void *src, unsigned x, unsigned y, unsigned w, unsigned h, @@ -37,6 +50,19 @@ void panfrost_load_tiled_image(void *dst, const void *src, uint32_t src_stride, enum pipe_format format); +/** + * Store a linear staging image to a rectangular region of a tiled image. + * + * @dst Tiled destination + * @src Linear source + * @x Region of interest of destination in pixels, aligned to block size + * @y Region of interest of destination in pixels, aligned to block size + * @z Region of interest of destination in pixels, aligned to block size + * @w Region of interest of destination in pixels, aligned to block size + * @dst_stride Stride in bytes of tiled destination + * @src_stride Stride in bytes of linear source + * @format Format of the source and destination image + */ void panfrost_store_tiled_image(void *dst, const void *src, unsigned x, unsigned y, unsigned w, unsigned h,