freedreno/a6xx: fix vsc assert
authorRob Clark <robdclark@chromium.org>
Mon, 18 May 2020 21:14:51 +0000 (14:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 May 2020 19:35:08 +0000 (19:35 +0000)
commit11470fcde266aa8b864b6a114fc923b2b8e5907a
tree8c71a7e9c05e556db2bb41eb7f7b25463184eb20
parentf6f7bc2979926faff3abecfb52533e7043fc05a5
freedreno/a6xx: fix vsc assert

Fixes a debug build assert seeing with an android app.  Not quite sure
which path was passing us draw_info w/ instance_count==0.  But we should
just treat non-instanced draws as having a single instance.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5091>
src/gallium/drivers/freedreno/a6xx/fd6_vsc.c