From 009be40b7d9e882ce95f6f76523f8f6d1c21238c Mon Sep 17 00:00:00 2001 From: Sisinty Sasmita Patra Date: Fri, 12 Dec 2014 11:28:05 -0800 Subject: i965: Refactor tiled memcpy functions and move them into their own file This commit refactors the tiled_memcpy code in intel_tex_subimage.c and moves it into its own file intel_tiled_memcpy files. Also, xtile_copy and ytile_copy are renamed to linear_to_xtiled and linear_to_ytiled respectively. The *_faster functions are similarly renamed. There was also a bit of logic to select between the the libc provided memcpy function and our custom memcpy that does an RGBA -> BGRA swizzle. This was moved into an intel_get_memcpy function so that rgba8_copy can live (and be inlined) in intel_tiled_memcpy.c. v2: Jason Ekstrand - Better commit message - Fix up the copyright on the intel_tiled_memcpy files - Various whitespace fixes - Moved a bunch of stuff that did not need to be exposed from intel_tiled_memcpy.h to intel_tiled_memcpy.c - Added proper documentation for intel_get_memcpy - Incorperated the ptrdiff_t tweaks from commit 225a09790 v3: Jason Ekstrand - Fixed a comment - Move the tile size constants into the .c file Signed-off-by: Jason Ekstrand Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/Makefile.sources | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/i965/Makefile.sources') diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources index da48455..37697f3 100644 --- a/src/mesa/drivers/dri/i965/Makefile.sources +++ b/src/mesa/drivers/dri/i965/Makefile.sources @@ -209,4 +209,6 @@ i965_FILES = \ intel_tex_obj.h \ intel_tex_subimage.c \ intel_tex_validate.c \ + intel_tiled_memcpy.c \ + intel_tiled_memcpy.h \ intel_upload.c -- cgit v1.1