radeonsi: handle lowered ps in scan_io_usage
authorQiang Yu <yuq825@gmail.com>
Fri, 3 Mar 2023 11:33:42 +0000 (19:33 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 02:11:56 +0000 (02:11 +0000)
commitfbedbad0dd97afee7f4397f41f5598d903a60132
treec23cee7f0326ccc26b2f75a099fc962c43b728b5
parentb8bd186788f361c184a4346c52359286e476599f
radeonsi: handle lowered ps in scan_io_usage

si_update_shader_binary_info() will call into this function
to collect memory usage info after shader has been lowered
finally. To avoid assertion failure in nir_instr_as_intrinsic()
we have to check instruction type first.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21683>
src/gallium/drivers/radeonsi/si_shader_info.c