gallium/u_threaded: remove 16 bytes from tc_batch
authorMarek Olšák <marek.olsak@amd.com>
Tue, 30 May 2017 23:46:40 +0000 (01:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 5 Jun 2017 16:25:57 +0000 (18:25 +0200)
All other sentinels occupy what is otherwise unused space.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/auxiliary/util/u_threaded_context.h

index 34206bfbf40927eb88b4b895e584d3ab204deb68..71211e6a8c0fb582afd56488a78307a96001b0e7 100644 (file)
@@ -67,7 +67,6 @@ static void
 tc_batch_check(struct tc_batch *batch)
 {
    tc_assert(batch->sentinel == TC_SENTINEL);
-   tc_assert(batch->sentinel2 == TC_SENTINEL);
    tc_assert(batch->num_total_call_slots <= TC_CALLS_PER_BATCH);
 }
 
@@ -2207,7 +2206,6 @@ threaded_context_create(struct pipe_context *pipe,
 
    for (unsigned i = 0; i < TC_MAX_BATCHES; i++) {
       tc->batch_slots[i].sentinel = TC_SENTINEL;
-      tc->batch_slots[i].sentinel2 = TC_SENTINEL;
       tc->batch_slots[i].pipe = pipe;
       util_queue_fence_init(&tc->batch_slots[i].fence);
    }
index 5d2a10cb125958b66bbb7c7b0c66165526a3ca48..2e7e3012cbab689dfc27ad91663e305e7e9bfd91 100644 (file)
@@ -293,7 +293,6 @@ struct tc_batch {
    unsigned num_total_call_slots;
    struct util_queue_fence fence;
    struct tc_call call[TC_CALLS_PER_BATCH];
-   unsigned sentinel2;
 };
 
 struct threaded_context {