From: Kenneth Graunke Date: Wed, 30 Aug 2017 08:16:23 +0000 (-0700) Subject: i965: Move BATCH_SZ define into intel_batchbuffer.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01f29366e3c764c6f5cf8721233280bec52a775e;p=mesa.git i965: Move BATCH_SZ define into intel_batchbuffer.c. It's only used in one file. Reviewed-by: Chris Wilson --- 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,