• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    assert(ctx->base.draw_vbo);
10 }
11 
12 static inline void
zink_select_launch_grid(struct zink_context * ctx)13 zink_select_launch_grid(struct zink_context *ctx)
14 {
15    ctx->base.launch_grid = ctx->launch_grid[ctx->pipeline_changed[1]];
16    assert(ctx->base.launch_grid);
17 }
18 
19 #endif
20