radeonsi/ngg: try GS multi-cycling mode if default mode failed
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 9 Jun 2020 10:24:41 +0000 (12:24 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 10 Jun 2020 07:33:58 +0000 (09:33 +0200)
commit24ceb6a5946a9c76de5f9bd3009ed26bf0ca25dc
tree79fa9ba42132b73f8397b0b7eaafe166c17a3446
parentce7692fc1957145c83b59080baf9ec24aae71b4d
radeonsi/ngg: try GS multi-cycling mode if default mode failed

If gsprim_lds_size is larger than target_lds_size then gfx10_ngg_calculate_subgroup_info
will fail.

This commit adds a logic to try the multi-cycling in this case because it's
using less memory.

This fix glsl-1.50-gs-max-output when using NGG.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5401>
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c