i965: Move BATCH_SZ define into intel_batchbuffer.c.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Aug 2017 08:16:23 +0000 (01:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Sep 2017 16:59:41 +0000 (09:59 -0700)
It's only used in one file.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index 38f9b5f..92fc16d 100644 (file)
@@ -449,7 +449,6 @@ struct intel_batchbuffer {
    uint32_t *map_next;
    uint32_t *map;
    uint32_t *cpu_map;
-#define BATCH_SZ (8192*sizeof(uint32_t))
 
    uint32_t state_batch_offset;
    enum brw_gpu_ring ring;
index 370400a..73cf252 100644 (file)
@@ -40,6 +40,8 @@
 
 #define FILE_DEBUG_FLAG DEBUG_BUFMGR
 
+#define BATCH_SZ (8192*sizeof(uint32_t))
+
 static void
 intel_batchbuffer_reset(struct intel_batchbuffer *batch,
                         struct brw_bufmgr *bufmgr,