r600/sfn: Count only literals that are not inline to split instruction groups
authorGert Wollny <gert.wollny@collabora.com>
Sun, 12 Apr 2020 14:52:57 +0000 (16:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 15:10:43 +0000 (15:10 +0000)
commit50b66622f19aa5e3d7c393e9bbff847d16d788de
tree2b4e432b8673a05b06423b09189d31cd10bbc249
parent9c7ce4d76e7b772e9d51dda2532a94d69bd4bee1
r600/sfn: Count only literals that are not inline to split instruction groups

An instruction group can only support 4 distinct literals, but inline
constants count into this number, so skip them when counting.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>
src/gallium/drivers/r600/sfn/sfn_ir_to_assembly.cpp