Commit cdd3eac6 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen Committed by Emil Velikov

ac/nir: Return frag_coord as integer.

To preserve the invariant that nir ssa defs are integers or pointers
in LLVM.

CC: <>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <>
Reviewed-by: 's avatarDave Airlie <>
(cherry picked from commit 82075e3c)
parent 7c271fd4
......@@ -3032,7 +3032,8 @@ static void visit_intrinsic(struct ac_nir_context *ctx,
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));
case nir_intrinsic_load_front_face:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment