freedreno/a6xx: Fix VFD_CONTROL emit
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 4 Jun 2020 06:18:52 +0000 (23:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 4 Jun 2020 15:50:41 +0000 (15:50 +0000)
commitde8be1de132085c434532f3dc0d1c456109a8f2a
treec87eabb8baab5bde53303066aa3fca01a71fa814
parent202252566bf053a31a4162e99f6fef5b82efc837
freedreno/a6xx: Fix VFD_CONTROL emit

The FETCH_CNT field isn't actually the FETCH count. We don't have a
lot of data where it's different from DECODE_CNT, so there's not much
to go by. It could be number of VFD_DEST_CNTL or maybe DECODE_CNT for
binning.  For now, setting both to number of DEST_CNTL gets Google
Earth working again.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5324>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_program.c