i965: Drop the BRW_BATCH_STRUCT macro.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Aug 2017 08:43:34 +0000 (01:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Sep 2017 16:59:36 +0000 (09:59 -0700)
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>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_urb.c

index a07e70341df601135c5fb8bb54134d79f0cd1ea6..1cbddaba7861ebe2dec46c63963242b167ded27d 100644 (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);
index af68b9706b4a55a158b561ea96b3e8e2ad8e6101..a86fa78acafedaa0630ca4d710d7b6177f47b0d7 100644 (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);
 }