mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
radv: declare shader arguments for TCS epilogs
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24643>
This commit is contained in:
parent
d0808b22cb
commit
65191bb351
2 changed files with 14 additions and 1 deletions
|
|
@ -773,5 +773,12 @@ radv_declare_tcs_epilog_args(const struct radv_device *device, const struct radv
|
|||
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 2, AC_ARG_CONST_DESC_PTR, &args->ac.ring_offsets);
|
||||
|
||||
/* TODO: declare other arguments. */
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.tess_offchip_offset);
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.tcs_factor_offset);
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->tcs_offchip_layout);
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->patch_base);
|
||||
|
||||
ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->tcs_out_current_patch_data_offset);
|
||||
ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->invocation_id);
|
||||
ac_add_arg(&args->ac, AC_ARG_VGPR, 1, AC_ARG_INT, &args->rel_patch_id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,12 @@ struct radv_shader_args {
|
|||
struct ac_arg tcs_offchip_layout;
|
||||
struct ac_arg tcs_epilog_pc;
|
||||
|
||||
/* TCS epilogs */
|
||||
struct ac_arg patch_base;
|
||||
struct ac_arg tcs_out_current_patch_data_offset;
|
||||
struct ac_arg invocation_id;
|
||||
struct ac_arg rel_patch_id;
|
||||
|
||||
/* TES */
|
||||
/* # [0:7] = the number of tessellation patches
|
||||
* # [8:15] = the number of TCS vertices output
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue