pan/midgard: Handle nir_intrinsic_load_barycentric_centroid
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 3 Jan 2020 08:42:11 +0000 (09:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 31 Jan 2020 06:02:31 +0000 (06:02 +0000)
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 <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3625>

src/panfrost/midgard/midgard_compile.c

index d66045b3551045175db0ea6a7ae5709bfd71f4de..604b7bf5f2a0699cbd53114130dfaaa1c3a034cf 100644 (file)
@@ -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;
         }