anv/allocator: Rework a comment
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 26 Apr 2017 09:28:24 +0000 (02:28 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 May 2017 02:07:54 +0000 (19:07 -0700)
This commit just fixes up the English a bit and re-flows the comment.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/intel/vulkan/anv_allocator.c

index e90689d7f09248160e50b06df4f4cbb094703033..7532c406eefc0f7fcce9625e19e8a9a7a5c56ea1 100644 (file)
@@ -566,10 +566,11 @@ anv_block_pool_alloc_new(struct anv_block_pool *pool,
          assert(pool->map);
          return state.next;
       } else if (state.next == state.end) {
-         /* We allocated the first block outside the pool, we have to grow it.
-          * pool_state->next acts a mutex: threads who try to allocate now will
-          * get block indexes above the current limit and hit futex_wait
-          * below. */
+         /* We allocated the first block outside the pool so we have to grow
+          * the pool.  pool_state->next acts a mutex: threads who try to
+          * allocate now will get block indexes above the current limit and
+          * hit futex_wait below.
+          */
          new.next = state.next + block_size;
          new.end = anv_block_pool_grow(pool, pool_state, block_size);
          old.u64 = __sync_lock_test_and_set(&pool_state->u64, new.u64);