From c6244f9311d0aefc806a0fa14785b3de78312bba Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 21 Apr 2020 18:22:26 -0400 Subject: [PATCH] panfrost: Assert on unimplemented fragcoord etc Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index e207c6d9614..d07e7ae278a 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -1682,6 +1682,9 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch, if (fs->reads_frag_coord) varyings[gl_FragCoord].elements = MALI_VARYING_FRAG_COORD; + struct panfrost_device *device = pan_device(ctx->base.screen); + assert(!(device->quirks & IS_BIFROST) || !(reads_point_coord || fs->reads_face || fs->reads_frag_coord)); + /* Let's go ahead and link varying meta to the buffer in question, now * that that information is available. VARYING_SLOT_POS is mapped to * gl_FragCoord for fragment shaders but gl_Positionf or vertex shaders -- 2.30.2