[Mesa-dev] [PATCH 1/1] i965: Do not overwrite optimizer dumps

Juan A. Suarez Romero jasuarez at igalia.com
Thu Nov 26 04:03:39 PST 2015


On Wed, 2015-11-25 at 11:05 -0800, Jason Ekstrand wrote:
> Right.  I didn't pay that much attention to the exact implementation.
> But we could do something like.
> 
> atomic int global_iteration_atomic = 0;
> 
> const int global_iteration = atomic_inc(global_iteration_atomic);
> 
> // use global_iteration everywhere
> 
> That wouldn't have the threading issues.  (Note, the above is pseudo-
> code)

I'll go with this solution, and it is more similar to the one I had in
mind.

Thanks.

	J.A.



More information about the mesa-dev mailing list