radeonsi: set is_monolithic for VS prologs when the shader is really monolithic
authorMarek Olšák <marek.olsak@amd.com>
Fri, 6 Dec 2019 02:29:32 +0000 (21:29 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Dec 2019 20:06:07 +0000 (20:06 +0000)
commitdb67e51903521f03fc772761368266e2c2174f6b
treed6c2df12692918c7f577f60788907730a13c59d8
parent451bc911583b691a677da4b1bd0c60ca3ed9e54a
radeonsi: set is_monolithic for VS prologs when the shader is really monolithic

This fixes a bug with NGG that is probably harmless.

Basically, !is_monolithic makes the VS prolog emit
llvm.amdgcn.init.exec.from.input, which sets the EXEC mask to only enable
ES threads. In the NGG non-GS case, the GS threads <= ES threads, so it was
never an issue.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>
src/gallium/drivers/radeonsi/si_shader.c