[Mesa-dev] [PATCH 2/5] i965: Drop the BRW_BATCH_STRUCT macro.

Kenneth Graunke kenneth at whitecape.org
Thu Aug 31 20:17:57 UTC 2017


It's used in exactly one place these days, and not much simpler than
just calling intel_batchbuffer_data directly.
---
 src/mesa/drivers/dri/i965/brw_state.h | 3 ---
 src/mesa/drivers/dri/i965/brw_urb.c   | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index a07e70341df..1cbddaba786 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -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);
diff --git a/src/mesa/drivers/dri/i965/brw_urb.c b/src/mesa/drivers/dri/i965/brw_urb.c
index af68b9706b4..a86fa78acaf 100644
--- a/src/mesa/drivers/dri/i965/brw_urb.c
+++ b/src/mesa/drivers/dri/i965/brw_urb.c
@@ -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);
 }
-- 
2.14.1



More information about the mesa-dev mailing list