On Tue, Dec 13, 2016 at 4:16 PM, David Herrmann <[email protected]> wrote:
> On Mon, Dec 12, 2016 at 12:53 PM, Chris Wilson <[email protected]> 
> wrote:
> for (i = 0; i < count; ++i)
>         swap(order[i], order[drm_lcg_random(state) % count]);
>
> Much simpler and I cannot see why it wouldn't work.

Hint: swap() does multiple evaluations. So this needs to be:
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to