iris: Drop vtbl usage for some load_register calls
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Oct 2019 20:20:36 +0000 (13:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Oct 2019 21:10:33 +0000 (14:10 -0700)
We can just call the actual functions directly.

src/gallium/drivers/iris/iris_state.c

index 1267aca268b70d6bbd4a9a178b8c61d02937f0b0..ed7d600c5353cab76a4bc904fa967f90e03be200 100644 (file)
@@ -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 |