nir/xfb: Fix offset accounting for dvec3/4
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Dec 2018 22:49:27 +0000 (16:49 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Jan 2019 16:42:56 +0000 (10:42 -0600)
commit4f99ac9144abda9b4e7d0891571eb1691b853c25
treebcb8dbefaccb1aec4496b94ac0410a97110444c3
parent96fa23bca5ac88e0cd2dd0c45fdef71b2afe888d
nir/xfb: Fix offset accounting for dvec3/4

Before, we were double-counting the component slots when we had a dvec3
or dvec4.  Instead, just add them in once and manually offset the
recorded output offset.

Fixes: 19064b8c "nir: Add a pass for gathering transform feedback info"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/nir/nir_gather_xfb_info.c