[Mesa-dev] [PATCH 1/2] i965/tiled_memcpy: Add alignment assumption decorations

Chad Versace chad.versace at intel.com
Tue Apr 5 23:22:51 UTC 2016


On 04/04/2016 06:04 PM, Jason Ekstrand wrote:
> This should help GCC when inlining memcpy to be able to better choose an
> aligned version.  It should also fix potential performance issues in the
> next commit.
> ---
>  src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 30 +++++++++++++++++++-------
>  1 file changed, 22 insertions(+), 8 deletions(-)

Simple enough. GCC has supported __builtin_assume_aligned since 2011-ish,
so the builtin is safe to use IMO.

Reviewed-by: Chad Versace <chad.versace at intel.com>

(I'm really back from parental leave! I'm reviewing code!)



More information about the mesa-dev mailing list