aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_blorp.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-06 11:59:17 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit9ea05ccf1f20691cde6911762bce8207c7283714 (patch)
tree750f9b06da700a9d7b26e4fdaa1b7f59fb75c634 /src/gallium/drivers/iris/iris_blorp.c
parent26cc609927825aa72a1faa77701ac2359484084a (diff)
iris: completely rewrite binder
now we get a new one per batch, and flush if it fills up
Diffstat (limited to 'src/gallium/drivers/iris/iris_blorp.c')
-rw-r--r--src/gallium/drivers/iris/iris_blorp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_blorp.c b/src/gallium/drivers/iris/iris_blorp.c
index 06ba830de75..8def4619e8c 100644
--- a/src/gallium/drivers/iris/iris_blorp.c
+++ b/src/gallium/drivers/iris/iris_blorp.c
@@ -134,10 +134,8 @@ blorp_alloc_binding_table(struct blorp_batch *blorp_batch,
struct iris_context *ice = blorp_batch->blorp->driver_ctx;
struct iris_batch *batch = blorp_batch->driver_batch;
- uint32_t *bt_map = iris_binder_reserve(&ice->state.binder,
- num_entries * sizeof(uint32_t),
- bt_offset);
- iris_use_pinned_bo(batch, ice->state.binder.bo, false);
+ *bt_offset = iris_binder_reserve(batch, num_entries * sizeof(uint32_t));
+ uint32_t *bt_map = batch->binder.map + *bt_offset;
for (unsigned i = 0; i < num_entries; i++) {
surface_maps[i] = stream_state(batch, ice->state.surface_uploader,