Module: Mesa Branch: master Commit: c6244f9311d0aefc806a0fa14785b3de78312bba URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6244f9311d0aefc806a0fa14785b3de78312bba
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Apr 21 18:22:26 2020 -0400 panfrost: Assert on unimplemented fragcoord etc Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671> --- 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
