aco/ngg: Refactor gs_alloc_req in preparation for NGG GS.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 4 Sep 2020 11:38:25 +0000 (13:38 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 9 Oct 2020 13:26:14 +0000 (15:26 +0200)
commitb08ced08a225250c00f814e7fb4518329ce36f59
tree1f0a61b1356f146bd1a4338cfd579a4852d2042c
parentecfabfd606903a4ccbc8235ab3503bb149debcf0
aco/ngg: Refactor gs_alloc_req in preparation for NGG GS.

Previously, this function inferred the vertex and primitive counts
from the gs_tg_info shader argument, but in case of NGG GS, it will
need to be calculated in runtime.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6964>
src/amd/compiler/aco_instruction_selection.cpp