Re: [Mesa-dev] [PATCH] i965: Make intel_texsubimage_tiled_memcpy compile with Clang.

2014-04-29 Thread Matt Turner
On Tue, Apr 29, 2014 at 8:38 AM, Kenneth Graunke wrote: > Apparently Clang needs an extra #include, and doesn't understand > __attribute__((flatten)). Marking the helper functions as > always_inline works just as well, and actually compiles with Clang. > > Signed-off-by: Kenneth Graunke > --- >

Re: [Mesa-dev] [PATCH] i965: Make intel_texsubimage_tiled_memcpy compile with Clang.

2014-04-29 Thread Ilia Mirkin
On Tue, Apr 29, 2014 at 11:38 AM, Kenneth Graunke wrote: > Apparently Clang needs an extra #include, and doesn't understand > __attribute__((flatten)). Marking the helper functions as > always_inline works just as well, and actually compiles with Clang. > > Signed-off-by: Kenneth Graunke > --- >

[Mesa-dev] [PATCH] i965: Make intel_texsubimage_tiled_memcpy compile with Clang.

2014-04-29 Thread Kenneth Graunke
Apparently Clang needs an extra #include, and doesn't understand __attribute__((flatten)). Marking the helper functions as always_inline works just as well, and actually compiles with Clang. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/intel_tex_subimage.c | 17 ++---