xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/zink/zink_inlines.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 #ifndef ZINK_INLINES_H
2 #define ZINK_INLINES_H
3 
4 /* these go here to avoid include hell */
5 static inline void
zink_select_draw_vbo(struct zink_context * ctx)6 zink_select_draw_vbo(struct zink_context *ctx)
7 {
8    ctx->base.draw_vbo = ctx->draw_vbo[ctx->pipeline_changed[0]];
9    ctx->base.draw_vertex_state = ctx->draw_state[ctx->pipeline_changed[0]];
10    assert(ctx->base.draw_vbo);
11    assert(ctx->base.draw_vertex_state);
12 }
13 
14 static inline void
zink_select_launch_grid(struct zink_context * ctx)15 zink_select_launch_grid(struct zink_context *ctx)
16 {
17    ctx->base.launch_grid = ctx->launch_grid[ctx->pipeline_changed[1]];
18    assert(ctx->base.launch_grid);
19 }
20 
21 #endif
22