Lines Matching refs:ac
244 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_CONST_PTR, in declare_global_input_sgprs()
248 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_CONST_PTR_PTR, in declare_global_input_sgprs()
254 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_CONST_PTR, in declare_global_input_sgprs()
255 &args->ac.push_constants); in declare_global_input_sgprs()
259 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in declare_global_input_sgprs()
260 &args->ac.inline_push_consts[i]); in declare_global_input_sgprs()
262 args->ac.num_inline_push_consts = args->shader_info->num_inline_push_consts; in declare_global_input_sgprs()
263 args->ac.base_inline_push_consts = args->shader_info->base_inline_push_consts; in declare_global_input_sgprs()
266 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_CONST_DESC_PTR, in declare_global_input_sgprs()
281 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_CONST_DESC_PTR, in declare_vs_specific_input_sgprs()
284 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.base_vertex); in declare_vs_specific_input_sgprs()
285 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.start_instance); in declare_vs_specific_input_sgprs()
287 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.draw_id); in declare_vs_specific_input_sgprs()
295 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.vertex_id); in declare_vs_input_vgprs()
298 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->rel_auto_id); in declare_vs_input_vgprs()
300 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* user vgpr */ in declare_vs_input_vgprs()
301 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.instance_id); in declare_vs_input_vgprs()
303 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.instance_id); in declare_vs_input_vgprs()
304 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* unused */ in declare_vs_input_vgprs()
309 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* user vgpr */ in declare_vs_input_vgprs()
310 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* user vgpr */ in declare_vs_input_vgprs()
311 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.instance_id); in declare_vs_input_vgprs()
313 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* unused */ in declare_vs_input_vgprs()
314 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->vs_prim_id); in declare_vs_input_vgprs()
315 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.instance_id); in declare_vs_input_vgprs()
318 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.instance_id); in declare_vs_input_vgprs()
319 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->vs_prim_id); in declare_vs_input_vgprs()
320 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* unused */ in declare_vs_input_vgprs()
333 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); in declare_streamout_sgprs()
342 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->streamout_config); in declare_streamout_sgprs()
343 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->streamout_write_idx); in declare_streamout_sgprs()
345 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); in declare_streamout_sgprs()
353 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->streamout_offset[i]); in declare_streamout_sgprs()
360 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->tes_u); in declare_tes_input_vgprs()
361 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->tes_v); in declare_tes_input_vgprs()
362 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->tes_rel_patch_id); in declare_tes_input_vgprs()
363 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.tes_patch_id); in declare_tes_input_vgprs()
458 ac_add_arg(&args->ac, AC_ARG_SGPR, 2, AC_ARG_CONST_DESC_PTR, in radv_declare_shader_args()
467 ac_add_arg(&args->ac, AC_ARG_SGPR, 3, AC_ARG_INT, in radv_declare_shader_args()
468 &args->ac.num_work_groups); in radv_declare_shader_args()
473 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
474 &args->ac.workgroup_ids[i]); in radv_declare_shader_args()
479 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
480 &args->ac.tg_size); in radv_declare_shader_args()
484 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
488 ac_add_arg(&args->ac, AC_ARG_VGPR, 3, AC_ARG_INT, in radv_declare_shader_args()
489 &args->ac.local_invocation_ids); in radv_declare_shader_args()
498 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
499 &args->ac.view_index); in radv_declare_shader_args()
503 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
512 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
521 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->oc_lds); in radv_declare_shader_args()
522 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
524 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
527 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->scratch_offset); in radv_declare_shader_args()
528 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); // unknown in radv_declare_shader_args()
529 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); // unknown in radv_declare_shader_args()
538 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
539 &args->ac.view_index); in radv_declare_shader_args()
542 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
543 &args->ac.tcs_patch_id); in radv_declare_shader_args()
544 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
545 &args->ac.tcs_rel_ids); in radv_declare_shader_args()
552 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
553 &args->ac.view_index); in radv_declare_shader_args()
556 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->oc_lds); in radv_declare_shader_args()
557 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
560 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
563 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
564 &args->ac.tcs_patch_id); in radv_declare_shader_args()
565 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
566 &args->ac.tcs_rel_ids); in radv_declare_shader_args()
573 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
574 &args->ac.view_index); in radv_declare_shader_args()
577 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->oc_lds); in radv_declare_shader_args()
578 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); in radv_declare_shader_args()
579 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
583 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->oc_lds); in radv_declare_shader_args()
586 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
595 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
598 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
602 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
604 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->oc_lds); in radv_declare_shader_args()
606 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->scratch_offset); in radv_declare_shader_args()
607 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); // unknown in radv_declare_shader_args()
608 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, NULL); // unknown in radv_declare_shader_args()
619 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
620 &args->ac.view_index); in radv_declare_shader_args()
624 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
628 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
630 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
632 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
633 &args->ac.gs_prim_id); in radv_declare_shader_args()
634 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
635 &args->ac.gs_invocation_id); in radv_declare_shader_args()
636 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
648 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
649 &args->ac.view_index); in radv_declare_shader_args()
652 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->gs2vs_offset); in radv_declare_shader_args()
653 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->gs_wave_id); in radv_declare_shader_args()
655 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
658 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
660 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
662 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
663 &args->ac.gs_prim_id); in radv_declare_shader_args()
664 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
666 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
668 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
670 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
672 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
673 &args->ac.gs_invocation_id); in radv_declare_shader_args()
679 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.prim_mask); in radv_declare_shader_args()
681 ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, in radv_declare_shader_args()
684 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.persp_sample); in radv_declare_shader_args()
685 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.persp_center); in radv_declare_shader_args()
686 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.persp_centroid); in radv_declare_shader_args()
687 ac_add_arg(&args->ac, AC_ARG_VGPR, 3, AC_ARG_INT, &args->ac.pull_model); in radv_declare_shader_args()
688 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.linear_sample); in radv_declare_shader_args()
689 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.linear_center); in radv_declare_shader_args()
690 ac_add_arg(&args->ac, AC_ARG_VGPR, 2, AC_ARG_INT, &args->ac.linear_centroid); in radv_declare_shader_args()
691 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, NULL); /* line stipple tex */ in radv_declare_shader_args()
692 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->ac.frag_pos[0]); in radv_declare_shader_args()
693 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->ac.frag_pos[1]); in radv_declare_shader_args()
694 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->ac.frag_pos[2]); in radv_declare_shader_args()
695 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_FLOAT, &args->ac.frag_pos[3]); in radv_declare_shader_args()
696 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.front_face); in radv_declare_shader_args()
697 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.ancillary); in radv_declare_shader_args()
698 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->ac.sample_coverage); in radv_declare_shader_args()
699 ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, NULL); /* fixed pt */ in radv_declare_shader_args()
707 args->shader_info->num_input_sgprs += args->ac.num_sgprs_used; in radv_declare_shader_args()
708 args->shader_info->num_input_vgprs = args->ac.num_vgprs_used; in radv_declare_shader_args()
732 if (args->ac.view_index.used) in radv_declare_shader_args()
738 if (args->ac.view_index.used) in radv_declare_shader_args()
742 if (args->ac.view_index.used) in radv_declare_shader_args()
753 if (args->ac.view_index.used) in radv_declare_shader_args()