From 01f29366e3c764c6f5cf8721233280bec52a775e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 30 Aug 2017 01:16:23 -0700 Subject: [PATCH] i965: Move BATCH_SZ define into intel_batchbuffer.c. It's only used in one file. Reviewed-by: Chris Wilson --- 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 370400ab484..73cf2528272 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.30.2