panfrost: Fix general purpose varying handling
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 13 Jun 2019 12:56:02 +0000 (14:56 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 13 Jun 2019 17:54:18 +0000 (10:54 -0700)
commit749c544b84123627b9f7026bf9c02d10a7139465
tree1ac8471650961ea6ec156b023bc3160c243fcfd8
parent7566a9a58a7de86904b8ce1620d4f011d69090cd
panfrost: Fix general purpose varying handling

When both the fragment and vertex shaders point to the same varying
location they expect to share the same varying slot.
Make sure vertex and fragment varyings pointing to the same loc have
->src_offset set to the same value.

[Alyssa: In addition a patch implement txs, this fixes GALLIUM_HUD on
Panfrost]

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/midgard_compile.c
src/gallium/drivers/panfrost/pan_assemble.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h