Commit 82075e3c authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

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 <>
parent c7c43273
Pipeline #26369 passed with stages
in 14 minutes and 58 seconds
......@@ -3232,7 +3232,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