Lines Matching refs:tcs
72 debug_printf("%d) tcs vertex index = %d (prim idx = %d)\n",
123 debug_printf("%d) tcs store vertex index = %d (prim idx = %d)\n",
423 struct draw_tess_ctrl_shader *tcs;
432 tcs = &llvm_tcs->base;
438 tcs = CALLOC_STRUCT(draw_tess_ctrl_shader);
441 if (!tcs)
444 tcs->draw = draw;
445 tcs->state = *state;
447 nir_tgsi_scan_shader(state->ir.nir, &tcs->info, true);
449 tcs->vector_length = 4;
450 tcs->vertices_out = tcs->info.properties[TGSI_PROPERTY_TCS_VERTICES_OUT];
454 tcs->tcs_input = align_malloc(sizeof(struct draw_tcs_inputs), 16);
455 memset(tcs->tcs_input, 0, sizeof(struct draw_tcs_inputs));
457 tcs->tcs_output = align_malloc(sizeof(struct draw_tcs_outputs), 16);
458 memset(tcs->tcs_output, 0, sizeof(struct draw_tcs_outputs));
460 tcs->jit_context = &draw->llvm->tcs_jit_context;
463 tcs->info.file_max[TGSI_FILE_SAMPLER]+1,
464 tcs->info.file_max[TGSI_FILE_SAMPLER_VIEW]+1,
465 tcs->info.file_max[TGSI_FILE_IMAGE]+1);
468 return tcs;
476 draw->tcs.tess_ctrl_shader = dtcs;
478 draw->tcs.tess_ctrl_shader = NULL;