From 882ca6dfb0f3d17e0f8bc917307d915ab1718069 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 27 Jun 2019 15:05:31 -0700 Subject: util: Move gallium's PIPE_FORMAT utils to /util/format/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make PIPE_FORMATs usable from non-gallium parts of Mesa, I want to move their helpers out of gallium. Since u_format used util_copy_rect(), I moved that in there, too. I've put it in a separate directory in util/ because it's a big chunk of related code, and it's not clear to me whether we might want it as a separate library from libmesa_util at some point. Closes: #1905 Acked-by: Marek Olšák Reviewed-by: Kristian H. Kristensen Reviewed-by: Alyssa Rosenzweig --- src/gallium/auxiliary/util/u_surface.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/gallium/auxiliary/util/u_surface.h') diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h index f764abb04e5..f6149563e81 100644 --- a/src/gallium/auxiliary/util/u_surface.h +++ b/src/gallium/auxiliary/util/u_surface.h @@ -44,12 +44,6 @@ extern void u_surface_default_template(struct pipe_surface *view, const struct pipe_resource *texture); -extern void -util_copy_rect(ubyte * dst, enum pipe_format format, - unsigned dst_stride, unsigned dst_x, unsigned dst_y, - unsigned width, unsigned height, const ubyte * src, - int src_stride, unsigned src_x, unsigned src_y); - extern void util_copy_box(ubyte * dst, enum pipe_format format, -- cgit v1.2.3