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 38f9b5fc67061bb4313918bb9a78ab13af78e841..92fc16de136eefe382ce16b1376c66959d86b3dc 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 370400ab484167c540e5640859487426a10ee3aa..73cf2528272d57db49de35940161a91e3cdd63d5 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,