[Mesa-dev] [PATCH 2/4] i965: Use atomic ops in get_new_program_id().

2017-09-23 Thread Kenneth Graunke
We have a nice utility function for this, which eliminates the need for locking stuff. This isn't really performance critical, but it's less code to use the atomic. p_atomic_inc_return does pre-increment rather than post-increment, so we change screen->program_id to be initialized to 0 instead of

Re: [Mesa-dev] [PATCH 2/4] i965: Use atomic ops in get_new_program_id().

2017-09-25 Thread Chris Wilson
Quoting Kenneth Graunke (2017-09-24 07:02:04) > We have a nice utility function for this, which eliminates the need for > locking stuff. This isn't really performance critical, but it's less > code to use the atomic. > > p_atomic_inc_return does pre-increment rather than post-increment, so we > c