diff options
author | Kenneth Graunke <[email protected]> | 2017-03-20 02:21:41 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-03-21 13:49:18 -0700 |
commit | 0c3fbf8028b6f44a341548d341fa660e6b120647 (patch) | |
tree | 053d51a803d054a3cb6f73d83ad5709141e18e46 /src/mesa/drivers/dri/i965/genX_blorp_exec.c | |
parent | 705c38e96f1ea732dd85c72c85f988171697867c (diff) |
i965: Drop AUB_TRACE_* stuff.
This was used for aubdumping (deleted a while ago) and INTEL_DEBUG=bat
decoding (deleted recently).
While we're changing parameters, delete the wrapper macro and make the
actual function brw_state_batch instead of __brw_state_batch.
This subsumes a patch by Emil Velikov to drop this from BLORP.
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/genX_blorp_exec.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_blorp_exec.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index 0224d6e43df..35310fa03df 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -91,7 +91,6 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset, static void * blorp_alloc_dynamic_state(struct blorp_batch *batch, - enum aub_state_struct_type type, uint32_t size, uint32_t alignment, uint32_t *offset) @@ -99,7 +98,7 @@ blorp_alloc_dynamic_state(struct blorp_batch *batch, assert(batch->blorp->driver_ctx == batch->driver_batch); struct brw_context *brw = batch->driver_batch; - return brw_state_batch(brw, type, size, alignment, offset); + return brw_state_batch(brw, size, alignment, offset); } static void @@ -111,12 +110,12 @@ blorp_alloc_binding_table(struct blorp_batch *batch, unsigned num_entries, assert(batch->blorp->driver_ctx == batch->driver_batch); struct brw_context *brw = batch->driver_batch; - uint32_t *bt_map = brw_state_batch(brw, AUB_TRACE_BINDING_TABLE, + uint32_t *bt_map = brw_state_batch(brw, num_entries * sizeof(uint32_t), 32, bt_offset); for (unsigned i = 0; i < num_entries; i++) { - surface_maps[i] = brw_state_batch(brw, AUB_TRACE_SURFACE_STATE, + surface_maps[i] = brw_state_batch(brw, state_size, state_alignment, &(surface_offsets)[i]); bt_map[i] = surface_offsets[i]; @@ -131,8 +130,7 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size, struct brw_context *brw = batch->driver_batch; uint32_t offset; - void *data = brw_state_batch(brw, AUB_TRACE_VERTEX_BUFFER, - size, 32, &offset); + void *data = brw_state_batch(brw, size, 32, &offset); *addr = (struct blorp_address) { .buffer = brw->batch.bo, |