diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 5870e5e20e4..5c1c506d737 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -521,7 +521,7 @@ iris_batch_reset(struct iris_batch *batch) batch->total_chained_batch_size = 0; batch->contains_draw = false; batch->contains_fence_signal = false; - batch->decoder.surface_base = batch->last_surface_base_address; + batch->decoder.surface_base = batch->last_binder_address; create_batch(batch); assert(batch->bo->index == 0); diff --git a/src/gallium/drivers/iris/iris_batch.h b/src/gallium/drivers/iris/iris_batch.h index 82f576d47a4..cf59a2fda9e 100644 --- a/src/gallium/drivers/iris/iris_batch.h +++ b/src/gallium/drivers/iris/iris_batch.h @@ -80,8 +80,8 @@ struct iris_batch { /** Total size of all chained batches (in bytes). */ unsigned total_chained_batch_size; - /** Last Surface State Base Address set in this hardware context. */ - uint64_t last_surface_base_address; + /** Last binder address set in this hardware context. */ + uint64_t last_binder_address; uint32_t ctx_id; uint32_t exec_flags; diff --git a/src/gallium/drivers/iris/iris_blorp.c b/src/gallium/drivers/iris/iris_blorp.c index 123e47c6993..b4d344ef0bf 100644 --- a/src/gallium/drivers/iris/iris_blorp.c +++ b/src/gallium/drivers/iris/iris_blorp.c @@ -177,7 +177,7 @@ blorp_alloc_binding_table(struct blorp_batch *blorp_batch, iris_use_pinned_bo(batch, binder->bo, false, IRIS_DOMAIN_NONE); - batch->screen->vtbl.update_surface_base_address(batch, binder); + batch->screen->vtbl.update_binder_address(batch, binder); } static uint32_t diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index e2ea72827ad..3b45e7342f8 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -83,7 +83,7 @@ iris_lost_context_state(struct iris_batch *batch) memset(&ice->shaders.urb, 0, sizeof(ice->shaders.urb)); memset(ice->state.last_block, 0, sizeof(ice->state.last_block)); memset(ice->state.last_grid, 0, sizeof(ice->state.last_grid)); - batch->last_surface_base_address = ~0ull; + batch->last_binder_address = ~0ull; batch->last_aux_map_state = 0; batch->screen->vtbl.lost_genx_state(ice, batch); } diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c index 68b6465023a..00d672ffec4 100644 --- a/src/gallium/drivers/iris/iris_draw.c +++ b/src/gallium/drivers/iris/iris_draw.c @@ -305,7 +305,7 @@ iris_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info, iris_binder_reserve_3d(ice); - batch->screen->vtbl.update_surface_base_address(batch, &ice->state.binder); + batch->screen->vtbl.update_binder_address(batch, &ice->state.binder); iris_handle_always_flush_cache(batch); @@ -411,7 +411,7 @@ iris_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info *grid) iris_update_grid_size_resource(ice, grid); iris_binder_reserve_compute(ice); - batch->screen->vtbl.update_surface_base_address(batch, &ice->state.binder); + batch->screen->vtbl.update_binder_address(batch, &ice->state.binder); if (ice->state.compute_predicate) { batch->screen->vtbl.load_register_mem64(batch, MI_PREDICATE_RESULT, diff --git a/src/gallium/drivers/iris/iris_screen.h b/src/gallium/drivers/iris/iris_screen.h index 88d2fe6ebdc..92b77e9cb86 100644 --- a/src/gallium/drivers/iris/iris_screen.h +++ b/src/gallium/drivers/iris/iris_screen.h @@ -67,8 +67,8 @@ struct iris_vtable { unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, const struct pipe_draw_start_count_bias *sc); - void (*update_surface_base_address)(struct iris_batch *batch, - struct iris_binder *binder); + void (*update_binder_address)(struct iris_batch *batch, + struct iris_binder *binder); void (*upload_compute_state)(struct iris_context *ice, struct iris_batch *batch, const struct pipe_grid_info *grid); diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d7edb94a49e..29bdbc46d22 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -5447,10 +5447,10 @@ iris_restore_compute_saved_bos(struct iris_context *ice, * Possibly emit STATE_BASE_ADDRESS to update Surface State Base Address. */ static void -iris_update_surface_base_address(struct iris_batch *batch, - struct iris_binder *binder) +iris_update_binder_address(struct iris_batch *batch, + struct iris_binder *binder) { - if (batch->last_surface_base_address == binder->bo->address) + if (batch->last_binder_address == binder->bo->address) return; struct isl_device *isl_dev = &batch->screen->isl_dev; @@ -5514,7 +5514,7 @@ iris_update_surface_base_address(struct iris_batch *batch, flush_after_state_base_change(batch); iris_batch_sync_region_end(batch); - batch->last_surface_base_address = binder->bo->address; + batch->last_binder_address = binder->bo->address; } static inline void @@ -8328,7 +8328,7 @@ genX(init_screen_state)(struct iris_screen *screen) screen->vtbl.init_render_context = iris_init_render_context; screen->vtbl.init_compute_context = iris_init_compute_context; screen->vtbl.upload_render_state = iris_upload_render_state; - screen->vtbl.update_surface_base_address = iris_update_surface_base_address; + screen->vtbl.update_binder_address = iris_update_binder_address; screen->vtbl.upload_compute_state = iris_upload_compute_state; screen->vtbl.emit_raw_pipe_control = iris_emit_raw_pipe_control; screen->vtbl.emit_mi_report_perf_count = iris_emit_mi_report_perf_count;