From: Tomeu Vizoso Date: Fri, 3 Jan 2020 08:42:11 +0000 (+0100) Subject: pan/midgard: Handle nir_intrinsic_load_barycentric_centroid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25042062215c682445a70b4527e8298b30996d93;p=mesa.git pan/midgard: Handle nir_intrinsic_load_barycentric_centroid To avoid hitting the assert in the default case, add a nop for this intrinsic. dEQP-GLES3.functional.transform_feedback.random.interleaved.lines.3 Signed-off-by: Tomeu Vizoso Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index d66045b3551..604b7bf5f2a 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1501,6 +1501,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) /* Artefact of load_interpolated_input. TODO: other barycentric modes */ case nir_intrinsic_load_barycentric_pixel: + case nir_intrinsic_load_barycentric_centroid: break; /* Reads 128-bit value raw off the tilebuffer during blending, tasty */ @@ -1672,7 +1673,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) break; default: - printf ("Unhandled intrinsic: %d\n", instr->intrinsic); + printf ("Unhandled intrinsic %s\n", nir_intrinsic_infos[instr->intrinsic].name); assert(0); break; }