[Mesa-dev] [PATCH v3 19/20] ac: add load_tess_level() to the abi
Marek Olšák
maraeo at gmail.com
Thu Jan 4 18:34:34 UTC 2018
On Wed, Jan 3, 2018 at 6:04 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> Fixes the following piglit tests in radeonsi:
>
> vs-tcs-tes-tessinner-tessouter-inputs-quads.shader_test
> vs-tcs-tes-tessinner-tessouter-inputs-tris.shader_test
> vs-tes-tessinner-tessouter-inputs-quads.shader_test
> vs-tes-tessinner-tessouter-inputs-tris.shader_test
>
> Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
> ---
> src/amd/common/ac_nir_to_llvm.c | 6 ++++++
> src/amd/common/ac_shader_abi.h | 4 ++++
> src/gallium/drivers/radeonsi/si_shader.c | 1 +
> 3 files changed, 11 insertions(+)
>
> diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
> index 02986c2a9b..1ca132850d 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -4365,6 +4365,12 @@ static void visit_intrinsic(struct ac_nir_context *ctx,
> result = ctx->abi->load_tess_coord(ctx->abi, type, instr->num_components);
> break;
> }
> + case nir_intrinsic_load_tess_level_outer:
> + result = ctx->abi->load_tess_level(ctx->abi, shader_io_get_unique_index(VARYING_SLOT_TESS_LEVEL_OUTER));
> + break;
> + case nir_intrinsic_load_tess_level_inner:
> + result = ctx->abi->load_tess_level(ctx->abi, shader_io_get_unique_index(VARYING_SLOT_TESS_LEVEL_INNER));
I'd like radeonsi to use si_shader_io_get_unique_index_patch, so patch
18 & 19 need changes.
Marek
More information about the mesa-dev
mailing list