[Intel-gfx] [igt-dev] [PATCH i-g-t 14/15] gem_wsim: Fix prng usage

Chris Wilson chris at chris-wilson.co.uk
Wed May 22 16:51:24 UTC 2019


Quoting Tvrtko Ursulin (2019-05-22 16:57:19)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Back when gem_wsim used forking it was safe to use the common storage
> prng, but after converting to threads it no longer is.
> 
> Fix by storing and using a new per workload seed for batch buffer
> duration randomness.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

But I suggest squashing this with the following patch as this introduces
a variable random seed; and the next patch allows it to be
pre-determined again.
-Chris


More information about the Intel-gfx mailing list