[Mesa-dev] [PATCH] i965: Use __attribute__((flatten)) on fast tiled teximage code.
Chad Versace
chad.versace at linux.intel.com
Mon Nov 25 11:23:25 PST 2013
On 11/23/2013 01:41 PM, Kenneth Graunke wrote:
> The fast tiled texture upload code does not compile with GCC 4.8's -Og
> optimization flag.
>
> memcpy() has the always_inline attribute set. This poses a problem,
> since {x,y}tile_copy_faster calls it indirectly via {x,y}tile_copy,
> and {x,y}tile_copy normally aren't inlined at -Og.
>
> Using __attribute__((flatten)) tells GCC to inline every function call
> inside the function, which I believe was the author's intent.
>
> Fix suggested by Alexander Monakov.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/intel_tex_subimage.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
More information about the mesa-dev
mailing list