i965: Drop some reserved space remnants.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 07:52:33 +0000 (23:52 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Nov 2017 17:37:32 +0000 (09:37 -0800)
BATCH_RESERVED was deleted in commit 2c46a67b4138631217 (i965: Delete
BATCH_RESERVED handling.)  The reserved_space field is dead code, and
the comments aren't useful these days.

src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index 66483fbf7d085569bce0ad20b674719fc1dc65fa..b3d7c6baf8ae62c71913d0e025e9ed5e6350b4f3 100644 (file)
@@ -451,7 +451,6 @@ struct intel_batchbuffer {
 #ifdef DEBUG
    uint16_t emit, total;
 #endif
-   uint16_t reserved_space;
    uint32_t *map_next;
    uint32_t *map;
    uint32_t *batch_cpu_map;
index 33c79a2b54d64b7641493d981cf40c9865ccd11d..bbe13f34cefe514d17d3e9150a8615ef7e733865 100644 (file)
@@ -622,9 +622,7 @@ brw_new_batch(struct brw_context *brw)
  * sending it off.
  *
  * This function can emit state (say, to preserve registers that aren't saved
- * between batches).  All of this state MUST fit in the reserved space at the
- * end of the batchbuffer.  If you add more GPU state, increase the reserved
- * space by updating the BATCH_RESERVED macro.
+ * between batches).
  */
 static void
 brw_finish_batch(struct brw_context *brw)