iris: Add and use flags_to_heap
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 28 Sep 2021 00:09:02 +0000 (17:09 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Dec 2021 07:37:42 +0000 (07:37 +0000)
commitb77935a83d40746b7a6591b4ca938e5ccd4e8fec
treefa86482845d281f7fe485c0572abbeec1f3d55a6
parent14ebd81ee36318a4d26b2d4250501a8a590dfaf0
iris: Add and use flags_to_heap

Reduces duplicated calculations.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14012>
src/gallium/drivers/iris/iris_bufmgr.c