r600/sfn: Don't schedule GDS instructions early
authorGert Wollny <gert.wollny@collabora.com>
Tue, 23 Aug 2022 13:30:23 +0000 (15:30 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 26 Aug 2022 08:27:41 +0000 (08:27 +0000)
commit79eabb81304c0886b723371adfad07ccd7469db5
tree783ff24793b8335829f6dcdcfa1b33fcf97067e0
parentfd71cd0b6a068ce4f0187b26d4527c3e1b6dee86
r600/sfn: Don't schedule GDS instructions early

Atomic GDS instructions like inc, dec, or read will increase the
register pressure, therefore we shouldn't prioritize scheduling them.

Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6975

Fixes: 79ca456b4837b3bc21cf9ef3c03c505c4b4909f6
    r600/sfn: rewrite NIR backend

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18212>
src/gallium/drivers/r600/sfn/sfn_scheduler.cpp