[Mesa-dev] [PATCH 5/5] i965: Move BATCH_SZ define into intel_batchbuffer.c.

Kenneth Graunke kenneth at whitecape.org
Thu Aug 31 20:18:00 UTC 2017


It's only used in one file.
---
 src/mesa/drivers/dri/i965/brw_context.h       | 1 -
 src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 38f9b5fc670..92fc16de136 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index 6e67a523ca5..417c0ea949f 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -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,
-- 
2.14.1



More information about the mesa-dev mailing list