https://bugs.freedesktop.org/show_bug.cgi?id=99319
--- Comment #4 from Vladislav Egorov <vegorov...@gmail.com> ---
(In reply to Thomas Helland from comment #2)
> A small update: It appears we are spending all of the time walking in a
> for-loop at the bottom of context_cleanup:
>
> for (i = 0; i < ARRAY_SIZE(cs->buffer_indices_hashlist); i++) {
> cs->buffer_indices_hashlist[i] = -1;
> }
Interesting fact that GCC with -O2 doesn't optimize loops like that to memcpy
or memset, even if they are large. It needs additional flag
-ftree-loop-distribute-patterns from -O3 or even -mtune options to do it.
Proof: https://godbolt.org/g/VwbSqK
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev