r600g/compute: Fixing a typo and some indentation
authorBruno Jiménez <brunojimen@gmail.com>
Mon, 19 May 2014 16:14:51 +0000 (18:14 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 19:29:56 +0000 (15:29 -0400)
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/compute_memory_pool.c

index 2f0d4c86c99af704783a1eb5d9064a8ddb4d1a10..ccbb21197e2903c24f092b992e198038b4c2362f 100644 (file)
@@ -263,7 +263,7 @@ void compute_memory_finalize_pending(struct compute_memory_pool* pool,
                        unallocated += item->size_in_dw+1024;
                }
                else {
-                       /* The item is not pendng, so update the amount of space
+                       /* The item is not pending, so update the amount of space
                         * that has already been allocated. */
                        allocated += item->size_in_dw;
                }
@@ -451,7 +451,7 @@ void compute_memory_transfer(
                map = pipe->transfer_map(pipe, gart, 0, PIPE_TRANSFER_READ,
                        &(struct pipe_box) { .width = aligned_size * 4,
                        .height = 1, .depth = 1 }, &xfer);
-                assert(xfer);
+               assert(xfer);
                assert(map);
                memcpy(data, map + internal_offset, size);
                pipe->transfer_unmap(pipe, xfer);