Re: [Mesa-dev] [PATCH] ralloc: don't leave out the alignment factor

2017-03-04 Thread Jonas Pfeil
Tested on the Raspberry Pi, works as intended. So Tested by: Jonas Pfeil -Ursprüngliche Nachricht- From: Grazvydas Ignotas Sent: Saturday, March 4, 2017 1:49 AM To: mesa-dev@lists.freedesktop.org Cc: Grazvydas Ignotas ; Jonas Pfeil Subject: [PATCH] ralloc: don't leave out the alignmen

Re: [Mesa-dev] [PATCH] ralloc: don't leave out the alignment factor

2017-03-03 Thread Mike Lothian
I've spent the whole night tracking down this bug I thought it was an issue with a recent upgrade of binutils Please add my: Tested by: Mike Lothian On Sat, 4 Mar 2017 at 00:49 Grazvydas Ignotas wrote: > Experimentation shows that without alignment factor gcc and clang choose > a factor of 1

[Mesa-dev] [PATCH] ralloc: don't leave out the alignment factor

2017-03-03 Thread Grazvydas Ignotas
Experimentation shows that without alignment factor gcc and clang choose a factor of 16 even on IA-32, which doesn't match what malloc() uses (8). The problem is it makes gcc assume the pointer is 16 byte aligned, so with -O3 it starts using aligned SSE instructions that later fault, so always spec