n50/compute: submit initial compute state in nv50_screen_create
authorKarol Herbst <git@karolherbst.de>
Fri, 4 Aug 2023 14:56:23 +0000 (16:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 15:31:24 +0000 (15:31 +0000)
commita9a30a7e09c4107c1f81a2515c0eb6a4c0daec97
tree9f4d48e63d352bb1ac9fd829cf0fe831d500bc79
parent23082347bd70d4b869a07417cf1071a38f77ccd4
n50/compute: submit initial compute state in nv50_screen_create

This fixes some CACHE_ERROR caused by proper multi-threading support. The
bug is a bit older though, just never triggered because there was only one
push buffer to begin with.

Without this change the compute initialization stayed unpushed in the
screen push buffer causing random issues.

Fixes: ff72440b402 ("nv50: implement a basic compute support")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24496>
src/gallium/drivers/nouveau/nv50/nv50_screen.c