i965: Drop the BRW_BATCH_STRUCT macro.

It's used in exactly one place these days, and not much simpler than
just calling intel_batchbuffer_data directly.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Kenneth Graunke 2017-08-30 01:43:34 -07:00
parent 6ec7bddb19
commit 804f78feb4
2 changed files with 1 additions and 4 deletions

View file

@ -187,9 +187,6 @@ void brw_print_program_cache(struct brw_context *brw);
/***********************************************************************
* brw_state_batch.c
*/
#define BRW_BATCH_STRUCT(brw, s) \
intel_batchbuffer_data(brw, (s), sizeof(*(s)), RENDER_RING)
void *brw_state_batch(struct brw_context *brw,
int size, int alignment, uint32_t *out_offset);
uint32_t brw_state_batch_size(struct brw_context *brw, uint32_t offset);

View file

@ -264,5 +264,5 @@ void brw_upload_urb_fence(struct brw_context *brw)
while (--pad);
}
BRW_BATCH_STRUCT(brw, &uf);
intel_batchbuffer_data(brw, &uf, sizeof(uf), RENDER_RING);
}