~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/freedreno/a6xx/fd6_context.cc

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
      BIT(FD6_GROUP_NON_GROUP));
229
229
}
230
230
 
 
231
template <chip CHIP>
231
232
struct pipe_context *
232
233
fd6_context_create(struct pipe_screen *pscreen, void *priv,
233
234
                   unsigned flags) disable_thread_safety_analysis
253
254
   pctx->create_depth_stencil_alpha_state = fd6_zsa_state_create;
254
255
   pctx->create_vertex_elements_state = fd6_vertex_state_create;
255
256
 
256
 
   fd6_draw_init(pctx);
257
 
   fd6_compute_init(pctx);
258
 
   fd6_gmem_init(pctx);
 
257
   fd6_draw_init<CHIP>(pctx);
 
258
   fd6_compute_init<CHIP>(pctx);
 
259
   fd6_gmem_init<CHIP>(pctx);
259
260
   fd6_texture_init(pctx);
260
 
   fd6_prog_init(pctx);
 
261
   fd6_prog_init<CHIP>(pctx);
261
262
   fd6_query_context_init(pctx);
262
263
 
263
264
   setup_state_map(&fd6_ctx->base);
299
300
 
300
301
   fd_context_setup_common_vbos(&fd6_ctx->base);
301
302
 
302
 
   fd6_blitter_init(pctx);
 
303
   fd6_blitter_init<CHIP>(pctx);
303
304
 
304
305
   return fd_context_init_tc(pctx, flags);
305
306
}
 
307
 
 
308
/* Teach the compiler about needed variants: */
 
309
template struct pipe_context *fd6_context_create<A6XX>(struct pipe_screen *pscreen, void *priv, unsigned flags);
 
310
template struct pipe_context *fd6_context_create<A7XX>(struct pipe_screen *pscreen, void *priv, unsigned flags);