radv: Don't generate GS copy shader when the pipeline has NGG.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 31 May 2021 15:43:23 +0000 (17:43 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Jun 2021 22:05:42 +0000 (22:05 +0000)
commit7e664a538355018a16ef60ecf8aaef304a25aa59
tree5ff2d208d1bb9eb376b6847885eafa85b996e8b4
parent93b1089d195135cdc926c772af231e472179312a
radv: Don't generate GS copy shader when the pipeline has NGG.

Previously the code used radv_pipeline_has_ngg but that always
returned false because the pipeline->shaders was all NULL at the
time when the GS copy shader was created.

Fixes: ca783612e721bc66af545075d76dc578ddbf7666
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11092>
src/amd/vulkan/radv_pipeline.c