Browse Source

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>
tags/17.3-branchpoint
Kenneth Graunke 8 years ago
parent
commit
804f78feb4
2 changed files with 1 additions and 4 deletions
  1. 0
    3
      src/mesa/drivers/dri/i965/brw_state.h
  2. 1
    1
      src/mesa/drivers/dri/i965/brw_urb.c

+ 0
- 3
src/mesa/drivers/dri/i965/brw_state.h View File

/*********************************************************************** /***********************************************************************
* brw_state_batch.c * 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, void *brw_state_batch(struct brw_context *brw,
int size, int alignment, uint32_t *out_offset); int size, int alignment, uint32_t *out_offset);
uint32_t brw_state_batch_size(struct brw_context *brw, uint32_t offset); uint32_t brw_state_batch_size(struct brw_context *brw, uint32_t offset);

+ 1
- 1
src/mesa/drivers/dri/i965/brw_urb.c View File

while (--pad); while (--pad);
} }


BRW_BATCH_STRUCT(brw, &uf);
intel_batchbuffer_data(brw, &uf, sizeof(uf), RENDER_RING);
} }

Loading…
Cancel
Save