[Mesa-dev] [PATCH] gallium/tests: fix build with clang compiler
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Nov 25 08:21:14 PST 2015
On 11/25/2015 05:16 PM, Eirik Byrkjeflot Anonsen wrote:
> Samuel Pitoiset <samuel.pitoiset at gmail.com> writes:
>
>> Nested functions are supported as an extension in GNU C, but Clang
>> don't support them.
>>
>> This fixes compilation errors when (manually) building compute.c,
>> or by setting --enable-gallium-tests to the configure script.
>>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75165
>>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>> src/gallium/tests/trivial/compute.c | 643 +++++++++++++++++++++---------------
>> 1 file changed, 370 insertions(+), 273 deletions(-)
>>
>> diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
>> index bcdfb11..4cb32e5 100644
>> --- a/src/gallium/tests/trivial/compute.c
>> +++ b/src/gallium/tests/trivial/compute.c
>> @@ -428,6 +428,35 @@ static void launch_grid(struct context *ctx, const uint *block_layout,
>> pipe->launch_grid(pipe, block_layout, grid_layout, pc, input);
>> }
>>
>> +/* test_system_values */
>> +static void test_system_values_init(void *p, int s, int x, int y)
>> +{
>> + *(uint32_t *)p = 0xdeadbeef;
>> +}
>> +
>> +static void test_sytem_values_expect(void *p, int s, int x, int y)
>
> s/sytem/system/, I assume?
Your assumption is correct. Good catch, thanks!
>
> eirik
>
More information about the mesa-dev
mailing list