diff options
author | Sisinty Sasmita Patra <sisinty.patra@intel.com> | 2014-12-12 11:28:05 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-26 17:29:34 -0800 |
commit | 009be40b7d9e882ce95f6f76523f8f6d1c21238c (patch) | |
tree | b2d04e33c42a8b68eda1c74b854d89831c6e79e6 /src/mesa/drivers/dri/i965/Makefile.sources | |
parent | f883aac06ee9f609273722772b7dd15debaf4f11 (diff) | |
download | external_mesa3d-009be40b7d9e882ce95f6f76523f8f6d1c21238c.zip external_mesa3d-009be40b7d9e882ce95f6f76523f8f6d1c21238c.tar.gz external_mesa3d-009be40b7d9e882ce95f6f76523f8f6d1c21238c.tar.bz2 |
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 <jason.ekstrand@intel.com>
- 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 <jason.ekstrand@intel.com>
- Fixed a comment
- Move the tile size constants into the .c file
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/Makefile.sources')
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.sources | 2 |
1 files changed, 2 insertions, 0 deletions
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 |