From 25042062215c682445a70b4527e8298b30996d93 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 3 Jan 2020 09:42:11 +0100 Subject: [PATCH] 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: --- src/panfrost/midgard/midgard_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2