etnaviv: initialize vertex attributes on context reset
authorLucas Stach <l.stach@pengutronix.de>
Tue, 21 Dec 2021 20:58:07 +0000 (21:58 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Jan 2022 18:39:20 +0000 (18:39 +0000)
commitc1f8bc67e29e9b05d60e1354fa04927fce5f396b
tree7742e08507cb2e27ca54aeae89017c4e4bb07065
parent105b48c85c2be2970bbe9c9185af98ec9c8ff674
etnaviv: initialize vertex attributes on context reset

It seems that at least some GC400 come out of reset with random vertex
attributes enabled and also don't disable them on the write to the first
config register as normal. Enabling all attributes seems to provide the
GPU with the required edge to actually disable the unused attributes on
the next draw.

Cc: mesa-stable
Reported-by: Steven Walter
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14285>
src/gallium/drivers/etnaviv/etnaviv_context.c