mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
ac/nir: Return frag_coord as integer.
To preserve the invariant that nir ssa defs are integers or pointers in LLVM. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c7c432738a
commit
82075e3c42
1 changed files with 2 additions and 1 deletions
|
|
@ -3232,7 +3232,8 @@ static void visit_intrinsic(struct ac_nir_context *ctx,
|
|||
ctx->abi->frag_pos[2],
|
||||
ac_build_fdiv(&ctx->ac, ctx->ac.f32_1, ctx->abi->frag_pos[3])
|
||||
};
|
||||
result = ac_build_gather_values(&ctx->ac, values, 4);
|
||||
result = ac_to_integer(&ctx->ac,
|
||||
ac_build_gather_values(&ctx->ac, values, 4));
|
||||
break;
|
||||
}
|
||||
case nir_intrinsic_load_front_face:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue