radv: Use compares for node type in traversal.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 1 Nov 2022 21:18:53 +0000 (22:18 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 5 Nov 2022 16:38:48 +0000 (16:38 +0000)
commit9a8453d07e754e73630d21bec8c31ff0ab6298e8
treefb1949a424c312be8d75cc59fb62ecc34d2af249
parent4770d3f0bad8162ecf5170ce3aeb9012ce8a5bbd
radv: Use compares for node type in traversal.

The HW has no bit test instruction, so we change 3 pairs of and+cmp
to a single and + 3 cmps, saving 2 VALU instructions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19454>
src/amd/vulkan/radv_rt_common.c