mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
radv: only enable one channel when exporting prim id
It's a 32-bit integer like the layer. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
5770e1d89e
commit
4e9b0b39b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue