diff options
author | Kenneth Graunke <[email protected]> | 2017-08-30 01:16:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-09-01 09:59:41 -0700 |
commit | 01f29366e3c764c6f5cf8721233280bec52a775e (patch) | |
tree | e2e25da16302eecdc7ab4ebf4735afda0da8e9d2 /src/mesa/drivers/dri | |
parent | 5ae631c544ffa8f66a54bda40814eab39ee54144 (diff) |
i965: Move BATCH_SZ define into intel_batchbuffer.c.
It's only used in one file.
Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 |
2 files changed, 2 insertions, 1 deletions
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, |