From: Eric Anholt Date: Fri, 5 Aug 2016 06:06:36 +0000 (-0700) Subject: vc4: Add VARYING_SLOT_PNTC support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdb54cdc163e8fe395b2965b8254f0f7d1c42a51;p=mesa.git vc4: Add VARYING_SLOT_PNTC support. We end up with this when doing GLSL-to-NIR. --- diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 24206980369..8b508310e75 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1427,10 +1427,11 @@ ntq_setup_inputs(struct vc4_compile *c) if (c->stage == QSTAGE_FRAG) { if (var->data.location == VARYING_SLOT_POS) { emit_fragcoord_input(c, loc); - } else if (var->data.location >= VARYING_SLOT_VAR0 && - (c->fs_key->point_sprite_mask & - (1 << (var->data.location - - VARYING_SLOT_VAR0)))) { + } else if (var->data.location == VARYING_SLOT_PNTC || + (var->data.location >= VARYING_SLOT_VAR0 && + (c->fs_key->point_sprite_mask & + (1 << (var->data.location - + VARYING_SLOT_VAR0))))) { c->inputs[loc * 4 + 0] = c->point_x; c->inputs[loc * 4 + 1] = c->point_y; } else {