[Mesa-dev] [PATCH] radv: only enable one channel when exporting prim id
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Mar 28 10:20:49 UTC 2018
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Tue, Mar 20, 2018 at 10:07 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> It's a 32-bit integer like the layer.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_nir_to_llvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
> index ad046adfdb..c8d383e021 100644
> --- a/src/amd/vulkan/radv_nir_to_llvm.c
> +++ b/src/amd/vulkan/radv_nir_to_llvm.c
> @@ -2357,7 +2357,7 @@ handle_vs_outputs_post(struct radv_shader_context *ctx,
> for (unsigned j = 1; j < 4; j++)
> values[j] = ctx->ac.f32_0;
>
> - radv_export_param(ctx, param_count, values, 0xf);
> + radv_export_param(ctx, param_count, values, 0x1);
>
> outinfo->vs_output_param_offset[VARYING_SLOT_PRIMITIVE_ID] = param_count++;
> outinfo->export_prim_id = true;
> --
> 2.16.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list