diff options
author | Kenneth Graunke <[email protected]> | 2019-10-07 13:20:36 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-10-07 14:10:33 -0700 |
commit | 6d9c1f30e421453bcfb5f2a3032fbc766ef634b2 (patch) | |
tree | e1cf1382b0f093c15a5a07bcd6ea97290637edf0 | |
parent | ae9c311b9a1fa7ace9789e686382208bae534d61 (diff) |
iris: Drop vtbl usage for some load_register calls
We can just call the actual functions directly.
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 1267aca268b..ed7d600c535 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -5751,15 +5751,14 @@ iris_upload_render_state(struct iris_context *ice, uint32_t mi_predicate; /* Upload the id of the current primitive to MI_PREDICATE_SRC1. */ - ice->vtbl.load_register_imm64(batch, MI_PREDICATE_SRC1, - draw->drawid); + iris_load_register_imm64(batch, MI_PREDICATE_SRC1, draw->drawid); /* Upload the current draw count from the draw parameters buffer * to MI_PREDICATE_SRC0. */ - ice->vtbl.load_register_mem32(batch, MI_PREDICATE_SRC0, - draw_count_bo, draw_count_offset); + iris_load_register_mem32(batch, MI_PREDICATE_SRC0, + draw_count_bo, draw_count_offset); /* Zero the top 32-bits of MI_PREDICATE_SRC0 */ - ice->vtbl.load_register_imm32(batch, MI_PREDICATE_SRC0 + 4, 0); + iris_load_register_imm32(batch, MI_PREDICATE_SRC0 + 4, 0); if (draw->drawid == 0) { mi_predicate = MI_PREDICATE | MI_PREDICATE_LOADOP_LOADINV | |