[Mesa-dev] [PATCH v2] glsls: Modify exec_list to avoid strict-aliasing violations

Eero Tamminen eero.t.tamminen at intel.com
Thu Jun 25 04:27:10 PDT 2015


Hi,

On 06/25/2015 02:48 AM, Davin McCall wrote:
> In terms of performance:
>
> (export LIBGL_ALWAYS_SOFTWARE=1; time glmark2)

For Intel driver, INTEL_NO_HW=1 could be used.

(Do other drivers have something similar?)


> -fno-strict-aliasing:
>
> glmark2 Score: 244
> real    5m34.707s
> user    11m36.192s
> sys    0m29.596s
>
> with strict aliasing:
>
> glmark2 Score: 247
> real    5m34.438s
> user    11m29.904s
> sys    0m29.556s
>
> Again, only a very small improvement when strict aliasing is enabled.
> With the above in mind it is reasonable to question whether this patch
> is worthwhile.

IMHO to evaluate that, we would need data for more drivers, not just for 
SW rendering.


> However, it's done, and it seems to work, so I offer it for review.


	- Eero




More information about the mesa-dev mailing list